Changelog¶
0.10.0¶
Added¶
- Automatic date and time detection. See Dates and Times.
time,timetzandtimestamptzcolumn types.- Optional
datetime_format(Pythonstrptimeformat) on columns, primary keys and filename mappings. - Filename values can be part of a compound primary key: reference a filename
placeholder from
id_mappingwith{source: filename}; the placeholder needs nocolumnsentry. Upserts use the full key; stale-row cleanup still uses only the columns markeduse_to_delete_old_rows. See Compound Key with Filename Values. zero_row_files_used_to_delete_old_rowsonfilename_to_column(defaultfalse): whentrue, a file with no data rows deletes every row matching itsuse_to_delete_old_rowsvalues. See Automatic Cleanup.
Upgrading¶
- Columns without a
typemay now be detected as dates or times. Existing non-temporal columns (e.g. PostgreSQLTEXTorBIGINT) are left as they are and keep raw values. 03/04/2024always means 3 April; US month-first dates need an explicitdatetime_formatsuch as%m/%d/%Y.- Crump refuses to change an existing PostgreSQL temporal column's type or timezone handling; migrate it explicitly.
- Date/time primary keys are stored in one canonical form. If an existing text key
column (e.g. SQLite) holds another spelling such as
20240229, sync stops before writing so rows are not duplicated; migrate the keys first. - An invalid or missing filename key value stops the sync before anything is written.
- Crump never changes an existing table's primary key; a sync whose key does not match stops with an error.
0.9.0¶
- Accept common PostgreSQL connection string formats:
postgres://, driver-qualified URLs such aspostgresql+psycopg://, and libpq keyword/value andservice=strings. Crump still uses psycopg 3 whatever driver suffix is given.
0.8.0¶
- Bounded CDF reads:
read_cdf_variables(..., max_records=N)reads at mostNrecords per variable, and reports unreadable variables throughskipped. - New public
read_cdf_global_attributesandgroup_variables_by_record_count;CDFVariableand the CDF reading functions are exported fromcrump. - Dependency updates (pygments, urllib3, certifi).
Earlier versions¶
See the GitHub releases.