Releases: simonw/sqlite-utils
Releases · simonw/sqlite-utils
3.9.1
3.9
- New 
sqlite-utils schemacommand showing the full SQL schema for a database, see Showing the schema (CLI). (#268) db.schemaintrospection property exposing the same feature to the Python library, see Showing the schema (Python library).
3.8
3.7
- New 
table.pks_and_rows_where()method returning(primary_key, row_dictionary)tuples - see Listing rows with their primary keys. (#240) - Fixed bug with table.add_foreign_key() against columns containing spaces. (#238)
 table_or_view.drop(ignore=True)option for avoiding errors if the table or view does not exist. (#237)sqlite-utils drop-view --ignoreandsqlite-utils drop-table --ignoreoptions. (#237)- Fixed a bug with inserts of nested JSON containing non-ascii strings - thanks, Dylan Wu. (#257)
 - Suggest 
--alterif an error occurs caused by a missing column. (#259) - Support creating indexes with columns in descending order, see API documentation and CLI documentation. (#260)
 - Correctly handle CSV files that start with a UTF-8 BOM. (#250)
 
3.6
This release adds the ability to execute queries joining data from more than one database file - similar to the cross database querying feature introduced in Datasette 0.55.
- The 
db.attach(alias, filepath)Python method can be used to attach extra databases to the same connection, see db.attach() in the Python API documentation. (#113) - The 
--attachoption attaches extra aliased databases to run SQL queries against directly on the command-line, see attaching additional databases in the CLI documentation. (#236) 
3.5
sqlite-utils insert --sniffoption for detecting the delimiter and quote character used by a CSV file, see Alternative delimiters and quote characters. (#230)- The 
table.rows_where(),table.search()andtable.search_sql()methods all now take optionaloffset=andlimit=arguments. (#231) - New 
--no-headersoption forsqlite-utils insert --csvto handle CSV files that are missing the header row, see CSV files without a header row. (#228) - Fixed bug where inserting data with extra columns in subsequent chunks would throw an error. Thanks @nieuwenhoven for the fix. (#234)
 - Fixed bug importing CSV files with columns containing more than 128KB of data. (#229)
 - Test suite now runs in CI against Ubuntu, macOS and Windows. Thanks @nieuwenhoven for the Windows test fixes. (#232)