sqlite-utils

Python CLI utility and library for manipulating SQLite databases

APACHE-2.0 License

Downloads
798.7K
Stars
1.6K
Committers
38

Bot releases are hidden (Show)

sqlite-utils - 2.16

Published by simonw about 4 years ago

  • --load-extension option for sqlite-utils query for loading SQLite extensions. (#134)
  • New sqlite_utils.utils.find_spatialite() function for finding SpatiaLite in common locations. (#135)
sqlite-utils - 2.15.1

Published by simonw about 4 years ago

  • Now available as a sdist package on PyPI in addition to a wheel. (#133)
sqlite-utils - 2.15

Published by simonw about 4 years ago

  • New db.enable_wal() and db.disable_wal() methods for enabling and disabling Write-Ahead Logging for a database file - see WAL mode in the Python API documentation.
  • Also sqlite-utils enable-wal file.db and sqlite-utils disable-wal file.db commands for doing the same thing on the command-line, see WAL mode (CLI). (#132)
sqlite-utils - 2.14.1

Published by simonw about 4 years ago

  • Documentation improvements
sqlite-utils - 2.14

Published by simonw about 4 years ago

  • The insert-files command can now read from standard input: cat dog.jpg | sqlite-utils insert-files dogs.db pics - --name=dog.jpg. (#127)
  • You can now specify a full-text search tokenizer using the new tokenize= parameter to enable_fts(). This means you can enable Porter stemming on a table by running db["articles"].enable_fts(["headline", "body"], tokenize="porter"). (#130)
  • You can also set a custom tokenizer using the sqlite-utils enable-fts CLI command, via the new --tokenize option.
sqlite-utils - 2.13

Published by simonw about 4 years ago

  • memoryview and uuid.UUID objects are now supported. memoryview objects will be stored using BLOB and uuid.UUID objects will be stored using TEXT. (#128)
sqlite-utils - 2.12

Published by simonw about 4 years ago

The theme of this release is better tools for working with binary data. The new insert-files command can be used to insert binary files directly into a database table, and other commands have been improved with better support for BLOB columns.

sqlite-utils - 2.11

Published by simonw over 4 years ago

  • New --truncate option to sqlite-utils insert, and truncate=True argument to .insert_all(). Thanks, Thomas Sibley. (#118)
  • The sqlite-utils query command now runs updates in a transaction. Thanks, Thomas Sibley. (#120)
sqlite-utils - 2.10.1

Published by simonw over 4 years ago

  • Added documentation for the table.pks introspection property. #116
sqlite-utils - 2.10

Published by simonw over 4 years ago

  • The sqlite-utils command now supports UPDATE/INSERT/DELETE in addition to SELECT. #115
sqlite-utils - 2.9.1

Published by simonw over 4 years ago

sqlite-utils - 2.9

Published by simonw over 4 years ago

  • New sqlite-utils drop-table command, see Dropping tables. (#111)
  • New sqlite-utils drop-view command, see Dropping views.
  • Python decimal.Decimal objects are now stored as FLOAT. (#110)
sqlite-utils - 2.8

Published by simonw over 4 years ago

sqlite-utils - 2.7.2

Published by simonw over 4 years ago

  • db.create_view(...) now has additional parameters ignore=True or replace=True, see Creating views. (#106)
sqlite-utils - 2.7.1

Published by simonw over 4 years ago

  • New sqlite-utils views my.db command for listing views in a database, see Listing views. (#105)
  • sqlite-utils tables (and views) has a new --schema option which outputs the table/view schema, see Listing tables. (#104)
  • Nested structures containing invalid JSON values (e.g. Python bytestrings) are now serialized using repr() instead of throwing an error. (#102)
sqlite-utils - 2.7

Published by simonw over 4 years ago

  • New columns= argument for the .insert(), .insert_all(), .upsert() and .upsert_all() methods, for over-riding the auto-detected types for columns and specifying additional columns that should be added when the table is created. See Custom column order and column types. (#100)
sqlite-utils - 2.6

Published by simonw over 4 years ago

  • New table.rows_where(..., order_by="age desc") argument, see Listing rows. (#76)
sqlite-utils - 2.5

Published by simonw over 4 years ago

  • Panda’s Timestamp is now stored as a SQLite TEXT column. Thanks, b0b5h4rp13! (#96)
  • table.last_pk is now only available for inserts or upserts of a single record. (#98)
  • New Database(filepath, recreate=True) parameter for deleting and recreating the database. (#97)
sqlite-utils - 2.4.4

Published by simonw over 4 years ago

  • Fixed bug where columns with only null values were not correctly created. (#95)
sqlite-utils - 2.4.3

Published by simonw over 4 years ago

  • Column type suggestion code is no longer confused by null values. (#94)