home / content

releases

104 rows where repo = 140912432

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: target_commitish, prerelease, created_at (date), published_at (date)

id ▼ html_url author node_id tag_name target_commitish name draft prerelease created_at published_at body repo reactions mentions_count
15175633 https://github.com/simonw/sqlite-utils/releases/tag/0.7 simonw 9599 MDc6UmVsZWFzZTE1MTc1NjMz 0.7 master 0.7 0 0 2019-01-25T07:20:49Z 2019-01-25T07:27:57Z Release notes are here: https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v0-7 sqlite-utils 140912432    
15208430 https://github.com/simonw/sqlite-utils/releases/tag/0.8 simonw 9599 MDc6UmVsZWFzZTE1MjA4NDMw 0.8 master 0.8 0 0 2019-01-26T02:13:29Z 2019-01-28T06:28:12Z Two new commands: `sqlite-utils csv` and `sqlite-utils json` https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v0-8 sqlite-utils 140912432    
15243253 https://github.com/simonw/sqlite-utils/releases/tag/0.9 simonw 9599 MDc6UmVsZWFzZTE1MjQzMjUz 0.9 master 0.9 0 0 2019-01-28T06:34:33Z 2019-01-29T15:30:48Z https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v0-9 sqlite-utils 140912432    
15439849 https://github.com/simonw/sqlite-utils/releases/tag/0.10 simonw 9599 MDc6UmVsZWFzZTE1NDM5ODQ5 0.10 master 0.10 0 0 2019-02-07T05:17:52Z 2019-02-08T05:19:33Z https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v0-10 sqlite-utils 140912432    
15731282 https://github.com/simonw/sqlite-utils/releases/tag/0.11 simonw 9599 MDc6UmVsZWFzZTE1NzMxMjgy 0.11 master 0.11 0 0 2019-02-08T05:23:50Z 2019-02-23T02:15:34Z https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v0-11 sqlite-utils 140912432    
15731354 https://github.com/simonw/sqlite-utils/releases/tag/0.12 simonw 9599 MDc6UmVsZWFzZTE1NzMxMzU0 0.12 master 0.12 0 0 2019-02-23T02:22:28Z 2019-02-23T02:31:29Z https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v0-12 sqlite-utils 140912432    
15739051 https://github.com/simonw/sqlite-utils/releases/tag/0.13 simonw 9599 MDc6UmVsZWFzZTE1NzM5MDUx 0.13 master 0.13 0 0 2019-02-24T06:54:43Z 2019-02-24T07:00:14Z https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v0-13 sqlite-utils 140912432    
15744513 https://github.com/simonw/sqlite-utils/releases/tag/0.14 simonw 9599 MDc6UmVsZWFzZTE1NzQ0NTEz 0.14 master 0.14 0 0 2019-02-24T23:11:51Z 2019-02-24T23:15:16Z https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v0-14 sqlite-utils 140912432    
17583581 https://github.com/simonw/sqlite-utils/releases/tag/1.0 simonw 9599 MDc6UmVsZWFzZTE3NTgzNTgx 1.0 master 1.0 0 0 2019-05-25T01:06:38Z 2019-05-25T01:19:21Z https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v1-0 sqlite-utils 140912432    
17616531 https://github.com/simonw/sqlite-utils/releases/tag/1.0.1 simonw 9599 MDc6UmVsZWFzZTE3NjE2NTMx 1.0.1 master 1.0.1 0 0 2019-05-28T00:50:28Z 2019-05-28T00:51:21Z https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v1-0-1 sqlite-utils 140912432    
17645877 https://github.com/simonw/sqlite-utils/releases/tag/1.1 simonw 9599 MDc6UmVsZWFzZTE3NjQ1ODc3 1.1 master 1.1 0 0 2019-05-29T05:12:03Z 2019-05-29T05:15:22Z https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v1-1 * Support for `ignore=True` / `--ignore` for ignoring inserted records if the primary key alread exists (#21) * Ability to add a column that is a foreign key reference using `fk=...` / `--fk` (#16) sqlite-utils 140912432    
17961871 https://github.com/simonw/sqlite-utils/releases/tag/1.2 simonw 9599 MDc6UmVsZWFzZTE3OTYxODcx 1.2 master 1.2 0 0 2019-06-13T06:39:59Z 2019-06-13T06:42:21Z https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v1-2 sqlite-utils 140912432    
18132566 https://github.com/simonw/sqlite-utils/releases/tag/1.2.1 simonw 9599 MDc6UmVsZWFzZTE4MTMyNTY2 1.2.1 master 1.2.1 0 0 2019-06-21T00:01:24Z 2019-06-21T00:06:29Z https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v1-2-1 sqlite-utils 140912432    
18226656 https://github.com/simonw/sqlite-utils/releases/tag/1.2.2 simonw 9599 MDc6UmVsZWFzZTE4MjI2NjU2 1.2.2 master 1.2.2 0 0 2019-06-26T04:20:55Z 2019-06-26T04:24:33Z https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v1-2-2 sqlite-utils 140912432    
18307928 https://github.com/simonw/sqlite-utils/releases/tag/1.3 simonw 9599 MDc6UmVsZWFzZTE4MzA3OTI4 1.3 master 1.3 0 0 2019-06-29T06:32:36Z 2019-06-29T06:39:32Z https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v1-3 sqlite-utils 140912432    
18723202 https://github.com/simonw/sqlite-utils/releases/tag/1.6 simonw 9599 MDc6UmVsZWFzZTE4NzIzMjAy 1.6 master 1.6 0 0 2019-07-19T04:51:21Z 2019-07-19T05:36:48Z - `sqlite-utils insert` can now accept TSV data via the new `--tsv` option (#41) sqlite-utils 140912432    
18911392 https://github.com/simonw/sqlite-utils/releases/tag/1.7 simonw 9599 MDc6UmVsZWFzZTE4OTExMzky 1.7 master 1.7 0 0 2019-07-24T06:50:41Z 2019-07-28T12:03:21Z https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v1-7 sqlite-utils 140912432    
18911404 https://github.com/simonw/sqlite-utils/releases/tag/1.7.1 simonw 9599 MDc6UmVsZWFzZTE4OTExNDA0 1.7.1 master 1.7.1 0 0 2019-07-28T12:00:51Z 2019-07-28T12:05:36Z https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v1-7-1 sqlite-utils 140912432    
19704736 https://github.com/simonw/sqlite-utils/releases/tag/1.8 simonw 9599 MDc6UmVsZWFzZTE5NzA0NzM2 1.8 master 1.8 0 0 2019-07-28T15:41:42Z 2019-09-03T00:45:42Z https://sqlite-utils.readthedocs.io/en/stable/changelog.html#v1-8 sqlite-utils 140912432    
19704739 https://github.com/simonw/sqlite-utils/releases/tag/1.9 simonw 9599 MDc6UmVsZWFzZTE5NzA0NzM5 1.9 master 1.9 0 0 2019-08-04T03:35:30Z 2019-09-03T00:46:02Z https://sqlite-utils.readthedocs.io/en/stable/changelog.html#v1-9 sqlite-utils 140912432    
19704743 https://github.com/simonw/sqlite-utils/releases/tag/1.10 simonw 9599 MDc6UmVsZWFzZTE5NzA0NzQz 1.10 master 1.10 0 0 2019-08-23T12:24:04Z 2019-09-03T00:46:27Z https://sqlite-utils.readthedocs.io/en/stable/changelog.html#v1-10 sqlite-utils 140912432    
19704889 https://github.com/simonw/sqlite-utils/releases/tag/1.11 simonw 9599 MDc6UmVsZWFzZTE5NzA0ODg5 1.11 master 1.11 0 0 2019-09-03T00:58:41Z 2019-09-03T01:03:27Z https://sqlite-utils.readthedocs.io/en/stable/changelog.html#v1-11 sqlite-utils 140912432    
21276745 https://github.com/simonw/sqlite-utils/releases/tag/1.12 simonw 9599 MDc6UmVsZWFzZTIxMjc2NzQ1 1.12 master 1.12 0 0 2019-11-04T16:28:52Z 2019-11-07T05:00:24Z https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v1-12 sqlite-utils 140912432    
21276749 https://github.com/simonw/sqlite-utils/releases/tag/1.12.1 simonw 9599 MDc6UmVsZWFzZTIxMjc2NzQ5 1.12.1 master 1.12.1 0 0 2019-11-07T04:58:47Z 2019-11-07T05:00:55Z https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v1-12-1 sqlite-utils 140912432    
22509033 https://github.com/simonw/sqlite-utils/releases/tag/2.0 simonw 9599 MDc6UmVsZWFzZTIyNTA5MDMz 2.0 master 2.0 0 0 2019-12-30T06:18:58Z 2019-12-30T06:26:09Z This release changes the behaviour of `upsert`. It’s a breaking change, hence 2.0. The `upsert` command-line utility and the `.upsert()` and `.upsert_all()` Python API methods have had their behaviour altered. They used to completely replace the affected records: now, they update the specified values on existing records but leave other columns unaffected. See [Upserting data using the Python API](https://sqlite-utils.readthedocs.io/en/stable/python-api.html#python-api-upsert) and [Upserting data using the CLI](https://sqlite-utils.readthedocs.io/en/stable/cli.html#upserting-data) for full details. If you want the old behaviour - where records were completely replaced - you can use `$ sqlite-utils insert ... --replace` on the command-line and `.insert(..., replace=True)` and `.insert_all(..., replace=True)` in the Python API. See [Insert-replacing data using the Python API](https://sqlite-utils.readthedocs.io/en/stable/python-api.html#python-api-insert-replace) and [Insert-replacing data using the CLI](https://sqlite-utils.readthedocs.io/en/stable/cli.html#cli-insert-replace) for more. For full background on this change, see issue #66. sqlite-utils 140912432    
22603380 https://github.com/simonw/sqlite-utils/releases/tag/2.0.1 simonw 9599 MDc6UmVsZWFzZTIyNjAzMzgw 2.0.1 master 2.0.1 0 0 2020-01-05T17:23:02Z 2020-01-05T17:33:15Z The `.upsert()` and `.upsert_all()` methods now raise a `sqlite_utils.db.PrimaryKeyRequired` exception if you call them without specifying the primary key column using `pk=` (#73). sqlite-utils 140912432    
23274412 https://github.com/simonw/sqlite-utils/releases/tag/2.1 simonw 9599 MDc6UmVsZWFzZTIzMjc0NDEy 2.1 master 2.1 0 0 2020-01-31T00:25:20Z 2020-01-31T00:30:40Z New feature: `conversions={...}` can be passed to the `.insert()` family of functions to specify SQL conversions that should be applied to values that are being inserted or updated. See [Converting column values using SQL functions](https://sqlite-utils.readthedocs.io/en/stable/python-api.html#python-api-conversions). (#77). sqlite-utils 140912432    
23471014 https://github.com/simonw/sqlite-utils/releases/tag/2.2 simonw 9599 MDc6UmVsZWFzZTIzNDcxMDE0 2.2 master 2.2 0 0 2020-02-01T21:59:08Z 2020-02-07T07:18:12Z New feature: `sqlite_utils.suggest_column_types([records])` returns the suggested column types for a list of records. See [Suggesting column types](https://sqlite-utils.readthedocs.io/en/stable/python-api.html#python-api-suggest-column-types). (#81). This replaces the undocumented `table.detect_column_types()` method. sqlite-utils 140912432    
23471112 https://github.com/simonw/sqlite-utils/releases/tag/2.2.1 simonw 9599 MDc6UmVsZWFzZTIzNDcxMTEy 2.2.1 master 2.2.1 0 0 2020-02-07T07:20:03Z 2020-02-07T07:24:54Z Fixed a bug where `.upsert(..., hash_id="pk")` threw an error (#84). sqlite-utils 140912432    
23508352 https://github.com/simonw/sqlite-utils/releases/tag/2.3 simonw 9599 MDc6UmVsZWFzZTIzNTA4MzUy 2.3 master 2.3 0 0 2020-02-08T23:56:16Z 2020-02-08T23:59:20Z `table.exists()` is now a method, not a property. This was not a documented part of the API before so I’m considering this a non-breaking change. (#83) sqlite-utils 140912432    
23556494 https://github.com/simonw/sqlite-utils/releases/tag/2.3.1 simonw 9599 MDc6UmVsZWFzZTIzNTU2NDk0 2.3.1 master 2.3.1 0 0 2020-02-11T05:52:23Z 2020-02-11T05:59:43Z `table.create_index()` now works for columns that contain spaces. (#85) sqlite-utils 140912432    
24026132 https://github.com/simonw/sqlite-utils/releases/tag/2.4 simonw 9599 MDc6UmVsZWFzZTI0MDI2MTMy 2.4 master 2.4 0 0 2020-02-27T04:55:58Z 2020-02-27T04:58:25Z * `table.disable_fts()` can now be used to remove FTS tables and triggers that were created using `table.enable_fts(...)`. (#88) * The `sqlite-utils disable-fts` command can be used to remove FTS tables and triggers from the command-line. (#88) * Trying to create table columns with square braces ([ or ]) in the name now raises an error. (#86) * Subclasses of `dict`, `list` and `tuple` are now detected as needing a JSON column. (#87) sqlite-utils 140912432    
24530295 https://github.com/simonw/sqlite-utils/releases/tag/2.4.1 simonw 9599 MDc6UmVsZWFzZTI0NTMwMjk1 2.4.1 master 2.4.1 0 0 2020-03-02T06:12:21Z 2020-03-14T20:06:08Z * `table.enable_fts()` now works with columns that contain spaces. (#90) sqlite-utils 140912432    
24530387 https://github.com/simonw/sqlite-utils/releases/tag/2.4.2 simonw 9599 MDc6UmVsZWFzZTI0NTMwMzg3 2.4.2 master 2.4.2 0 0 2020-03-14T20:09:56Z 2020-03-14T20:13:18Z * `table.column_dicts` now works with all column types - previously it would throw errors on types other than `TEXT`, `BLOB`, `INTEGER` or `FLOAT`. (#92) * Documentation for `NotFoundError` thrown by `table.get(pk)` - see [Retrieving a specific record](https://sqlite-utils.readthedocs.io/en/latest/python-api.html#python-api-get). sqlite-utils 140912432    
24786773 https://github.com/simonw/sqlite-utils/releases/tag/2.4.3 simonw 9599 MDc6UmVsZWFzZTI0Nzg2Nzcz 2.4.3 master 2.4.3 0 0 2020-03-23T19:58:55Z 2020-03-23T20:00:25Z * Column type suggestion code is no longer confused by null values. (#94) sqlite-utils 140912432    
24787721 https://github.com/simonw/sqlite-utils/releases/tag/2.4.4 simonw 9599 MDc6UmVsZWFzZTI0Nzg3NzIx 2.4.4 master 2.4.4 0 0 2020-03-23T20:32:09Z 2020-03-23T20:34:18Z * Fixed bug where columns with only null values were not correctly created. (#95) sqlite-utils 140912432    
25436265 https://github.com/simonw/sqlite-utils/releases/tag/2.5 simonw 9599 MDc6UmVsZWFzZTI1NDM2MjY1 2.5 master 2.5 0 0 2020-04-13T03:52:19Z 2020-04-13T03:54:08Z * 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 140912432    
25554617 https://github.com/simonw/sqlite-utils/releases/tag/2.6 simonw 9599 MDc6UmVsZWFzZTI1NTU0NjE3 2.6 master 2.6 0 0 2020-04-16T03:13:13Z 2020-04-16T03:14:48Z * New `table.rows_where(..., order_by="age desc")` argument, see [Listing rows](https://sqlite-utils.readthedocs.io/en/stable/python-api.html#listing-rows). (#76) sqlite-utils 140912432    
26059545 https://github.com/simonw/sqlite-utils/releases/tag/2.7 simonw 9599 MDc6UmVsZWFzZTI2MDU5NTQ1 2.7 master 2.7 0 0 2020-04-18T00:04:50Z 2020-04-30T18:33:20Z * 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](https://sqlite-utils.readthedocs.io/en/stable/python-api.html#python-api-custom-columns). (#100) sqlite-utils 140912432    
26096691 https://github.com/simonw/sqlite-utils/releases/tag/2.7.1 simonw 9599 MDc6UmVsZWFzZTI2MDk2Njkx 2.7.1 master 2.7.1 0 0 2020-05-01T22:08:37Z 2020-05-01T22:11:19Z * New `sqlite-utils views my.db` command for listing views in a database, see [Listing views](https://sqlite-utils.readthedocs.io/en/latest/cli.html#cli-views). (#105) * `sqlite-utils tables` (and `views`) has a new `--schema` option which outputs the table/view schema, see [Listing tables](https://sqlite-utils.readthedocs.io/en/latest/cli.html#cli-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 140912432    
26107311 https://github.com/simonw/sqlite-utils/releases/tag/2.7.2 simonw 9599 MDc6UmVsZWFzZTI2MTA3MzEx 2.7.2 master 2.7.2 0 0 2020-05-02T16:05:27Z 2020-05-02T16:10:11Z * `db.create_view(...)` now has additional parameters `ignore=True` or `replace=True`, see [Creating views](https://sqlite-utils.readthedocs.io/en/latest/python-api.html#creating-views). (#106) sqlite-utils 140912432    
26120136 https://github.com/simonw/sqlite-utils/releases/tag/2.8 simonw 9599 MDc6UmVsZWFzZTI2MTIwMTM2 2.8 master 2.8 0 0 2020-05-03T15:39:56Z 2020-05-03T15:41:31Z * New `sqlite-utils create-table` command, see [Creating tables](https://sqlite-utils.readthedocs.io/en/latest/cli.html#creating-tables). (#27) * New `sqlite-utils create-view` command, see [Creating views](https://sqlite-utils.readthedocs.io/en/latest/cli.html#creating-views). (#107) sqlite-utils 140912432    
26362623 https://github.com/simonw/sqlite-utils/releases/tag/2.9 simonw 9599 MDc6UmVsZWFzZTI2MzYyNjIz 2.9 master 2.9 0 0 2020-05-11T01:54:56Z 2020-05-11T01:57:11Z - New `sqlite-utils drop-table` command, see [Dropping tables](https://sqlite-utils.readthedocs.io/en/2.9/cli.html#cli-drop-table). ([#111](https://github.com/simonw/sqlite-utils/issues/111)) - New `sqlite-utils drop-view` command, see [Dropping views](https://sqlite-utils.readthedocs.io/en/2.9/cli.html#cli-drop-view). - Python `decimal.Decimal` objects are now stored as `FLOAT`. ([#110](https://github.com/simonw/sqlite-utils/issues/110)) sqlite-utils 140912432    
26395903 https://github.com/simonw/sqlite-utils/releases/tag/2.9.1 simonw 9599 MDc6UmVsZWFzZTI2Mzk1OTAz 2.9.1 master 2.9.1 0 0 2020-05-11T19:20:29Z 2020-05-11T19:21:24Z * Added custom project links to the [PyPI listing](https://pypi.org/project/sqlite-utils/). sqlite-utils 140912432    
27504516 https://github.com/simonw/sqlite-utils/releases/tag/2.10 simonw 9599 MDc6UmVsZWFzZTI3NTA0NTE2 2.10 master 2.10 0 0 2020-06-12T17:43:45Z 2020-06-12T17:44:32Z - The `sqlite-utils` command now supports UPDATE/INSERT/DELETE in addition to SELECT. #115 sqlite-utils 140912432    
27847716 https://github.com/simonw/sqlite-utils/releases/tag/2.10.1 simonw 9599 MDc6UmVsZWFzZTI3ODQ3NzE2 2.10.1 master 2.10.1 0 0 2020-06-23T21:04:07Z 2020-06-23T21:04:50Z * Added documentation for the `table.pks` introspection property. #116 sqlite-utils 140912432    
28369250 https://github.com/simonw/sqlite-utils/releases/tag/2.11 simonw 9599 MDc6UmVsZWFzZTI4MzY5MjUw 2.11 master 2.11 0 0 2020-07-08T17:36:07Z 2020-07-08T17:36:45Z - New `--truncate` option to `sqlite-utils insert`, and `truncate=True` argument to `.insert_all()`. Thanks, Thomas Sibley. ([#118](https://github.com/simonw/sqlite-utils/pull/118)) - The `sqlite-utils query` command now runs updates in a transaction. Thanks, Thomas Sibley. ([#120](https://github.com/simonw/sqlite-utils/pull/120)) sqlite-utils 140912432    
28975119 https://github.com/simonw/sqlite-utils/releases/tag/2.12 simonw 9599 MDc6UmVsZWFzZTI4OTc1MTE5 2.12 master 2.12 0 0 2020-07-27T07:21:26Z 2020-07-27T07:24:10Z 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 insert-files my.db gifs *.gif` can now insert the contents of files into a specified table. The columns in the table can be customized to include different pieces of metadata derived from the files. See [Inserting binary data from files](https://sqlite-utils.readthedocs.io/en/stable/cli.html#cli-insert-files). ([#122](https://github.com/simonw/sqlite-utils/issues/122)) - `--raw` option to `sqlite-utils query` - for outputting just a single raw column value - see [Returning raw data from a query, such as binary content](https://sqlite-utils.readthedocs.io/en/stable/cli.html#cli-query-raw). ([#123](https://github.com/simonw/sqlite-utils/issues/123)) - JSON output now encodes BLOB values as special base64 obects - see [Running queries and returning JSON](https://sqlite-utils.readthedocs.io/en/stable/cli.html#cli-query-json). ([#125](https://github.com/simonw/sqlite-utils/issues/125)) - The same format of JSON base64 objects can now be used to insert binary data - see [Inserting JSON data](https://sqlite-utils.readthedocs.io/en/stable/cli.html#cli-inserting-data). ([#126](https://github.com/simonw/sqlite-utils/issues/126)) - The `sqlite-utils query` command can now accept named parameters, e.g. `sqlite-utils :memory: "select :num * :num2" -p num 5 -p num2 6` - see [Running queries and returning JSON](https://sqlite-utils.readthedocs.io/en/stable/cli.html#cli-query-json). ([#124](https://github.com/simonw/sqlite-utils/issues/124)) sqlite-utils 140912432    
29096810 https://github.com/simonw/sqlite-utils/releases/tag/2.13 simonw 9599 MDc6UmVsZWFzZTI5MDk2ODEw 2.13 master 2.13 0 0 2020-07-30T01:13:53Z 2020-07-30T01:15:55Z - `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 140912432    
29196241 https://github.com/simonw/sqlite-utils/releases/tag/2.14 simonw 9599 MDc6UmVsZWFzZTI5MTk2MjQx 2.14 master 2.14 0 0 2020-08-01T20:58:47Z 2020-08-01T21:00:31Z - The [insert-files command](https://sqlite-utils.readthedocs.io/en/stable/cli.html#cli-insert-files) can now read from standard input: `cat dog.jpg | sqlite-utils insert-files dogs.db pics - --name=dog.jpg`. ([#127](https://github.com/simonw/sqlite-utils/issues/127)) - You can now specify a full-text search tokenizer using the new `tokenize=` parameter to [enable_fts()](https://sqlite-utils.readthedocs.io/en/stable/python-api.html#python-api-fts). This means you can enable Porter stemming on a table by running `db["articles"].enable_fts(["headline", "body"], tokenize="porter")`. ([#130](https://github.com/simonw/sqlite-utils/issues/130)) - You can also set a custom tokenizer using the [sqlite-utils enable-fts](https://sqlite-utils.readthedocs.io/en/stable/cli.html#cli-fts) CLI command, via the new `--tokenize` option. sqlite-utils 140912432    
29394982 https://github.com/simonw/sqlite-utils/releases/tag/2.14.1 simonw 9599 MDc6UmVsZWFzZTI5Mzk0OTgy 2.14.1 master 2.14.1 0 0 2020-08-06T06:31:11Z 2020-08-06T06:31:48Z - Documentation improvements sqlite-utils 140912432    
29529316 https://github.com/simonw/sqlite-utils/releases/tag/2.15 simonw 9599 MDc6UmVsZWFzZTI5NTI5MzE2 2.15 master 2.15 0 0 2020-08-10T19:06:02Z 2020-08-10T19:07:27Z - New `db.enable_wal()` and `db.disable_wal()` methods for enabling and disabling [Write-Ahead Logging](https://www.sqlite.org/wal.html) for a database file - see [WAL mode](https://sqlite-utils.readthedocs.io/en/stable//python-api.html#python-api-wal) 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)](https://sqlite-utils.readthedocs.io/en/stable/cli.html#cli-wal). ([#132](https://github.com/simonw/sqlite-utils/issues/132)) sqlite-utils 140912432    
29616454 https://github.com/simonw/sqlite-utils/releases/tag/2.15.1 simonw 9599 MDc6UmVsZWFzZTI5NjE2NDU0 2.15.1 main 2.15.1 0 0 2020-08-12T16:59:48Z 2020-08-12T17:00:27Z - Now available as a `sdist` package on PyPI in addition to a wheel. ([#133](https://github.com/simonw/sqlite-utils/issues/133)) sqlite-utils 140912432    
29999731 https://github.com/simonw/sqlite-utils/releases/tag/2.16 simonw 9599 MDc6UmVsZWFzZTI5OTk5NzMx 2.16 main 2.16 0 0 2020-08-21T21:02:29Z 2020-08-21T21:05:51Z - `--load-extension` option for `sqlite-utils query` for loading SQLite extensions. ([#134](https://github.com/simonw/sqlite-utils/issues/134)) - New `sqlite_utils.utils.find_spatialite()` function for finding SpatiaLite in common locations. ([#135](https://github.com/simonw/sqlite-utils/issues/135)) sqlite-utils 140912432    
30352225 https://github.com/simonw/sqlite-utils/releases/tag/2.16.1 simonw 9599 MDc6UmVsZWFzZTMwMzUyMjI1 2.16.1 main 2.16.1 0 0 2020-08-28T22:45:11Z 2020-08-28T22:47:02Z - `insert_all(..., alter=True)` now works for columns introduced after the first 100 records. Thanks, Simon Wiles! ([#139](https://github.com/simonw/sqlite-utils/issues/139)) - Continuous Integration is now powered by GitHub Actions. ([#143](https://github.com/simonw/sqlite-utils/issues/143)) sqlite-utils 140912432    
30875333 https://github.com/simonw/sqlite-utils/releases/tag/2.17 simonw 9599 MDc6UmVsZWFzZTMwODc1MzMz 2.17 main 2.17 0 0 2020-09-07T22:08:12Z 2020-09-07T22:08:33Z This release handles a bug where replacing rows in FTS tables could result in growing numbers of unneccessary rows in the associated `*_fts_docsize` table. ([#149](https://github.com/simonw/sqlite-utils/issues/149)) - `PRAGMA recursive_triggers=on` by default for all connections. You can turn it off with `Database(recursive_triggers=False)`. ([#152](https://github.com/simonw/sqlite-utils/issues/152)) - `table.optimize()` method now deletes unnecessary rows from the `*_fts_docsize` table. ([#153](https://github.com/simonw/sqlite-utils/issues/153)) - New tracer method for tracking underlying SQL queries, see [Tracing queries](http://127.0.0.1:8000/python-api.html#python-api-tracing). ([#150](https://github.com/simonw/sqlite-utils/issues/150)) - Neater indentation for schema SQL. ([#148](https://github.com/simonw/sqlite-utils/issues/148)) - Documentation for `sqlite_utils.AlterError` exception thrown by in `add_foreign_keys()`. sqlite-utils 140912432    
30942758 https://github.com/simonw/sqlite-utils/releases/tag/2.18 simonw 9599 MDc6UmVsZWFzZTMwOTQyNzU4 2.18 main 2.18 0 0 2020-09-08T23:37:28Z 2020-09-08T23:39:21Z - `table.rebuild_fts()` method for rebuilding a FTS index, see [Rebuilding a full-text search table](https://sqlite-utils.readthedocs.io/en/stable/python-api.html#python-api-fts-rebuild). ([#155](https://github.com/simonw/sqlite-utils/issues/155)) - `sqlite-utils rebuild-fts data.db` command for rebuilding FTS indexes across all tables, or just specific tables. ([#155](https://github.com/simonw/sqlite-utils/issues/155)) - `table.optimize()` method no longer deletes junk rows from the `*_fts_docsize` table. This was added in 2.17 but it turns out running `table.rebuild_fts()` is a better solution to this problem. - Fixed a bug where rows with additional columns that are inserted after the first batch of records could cause an error due to breaking SQLite's maximum number of parameters. Thanks, Simon Wiles. ([#145](https://github.com/simonw/sqlite-utils/issues/145)) sqlite-utils 140912432    
31581701 https://github.com/simonw/sqlite-utils/releases/tag/2.19 simonw 9599 MDc6UmVsZWFzZTMxNTgxNzAx 2.19 main 2.19 0 0 2020-09-20T22:22:56Z 2020-09-20T22:24:04Z - New `sqlite-utils add-foreign-keys` command for [Adding multiple foreign keys at once](https://sqlite-utils.readthedocs.io/en/stable/cli.html#cli-add-foreign-keys). ([#157](https://github.com/simonw/sqlite-utils/issues/157)) - New `table.enable_fts(..., replace=True)` argument for replacing an existing FTS table with a new configuration. ([#160](https://github.com/simonw/sqlite-utils/issues/160)) - New `table.add_foreign_key(..., ignore=True)` argument for ignoring a foreign key if it already exists. ([#112](https://github.com/simonw/sqlite-utils/issues/112)) sqlite-utils 140912432    
31680849 https://github.com/simonw/sqlite-utils/releases/tag/2.20 simonw 9599 MDc6UmVsZWFzZTMxNjgwODQ5 2.20 main 2.20 0 0 2020-09-23T00:35:52Z 2020-09-23T00:37:01Z This release introduces two key new capabilities: **transform** ([#114](https://github.com/simonw/sqlite-utils/issues/114)) and **extract** ([#42](https://github.com/simonw/sqlite-utils/issues/42)). ### Transform SQLite's ALTER TABLE has [several documented limitations](https://sqlite.org/lang_altertable.html). The `table.transform()` Python method and `sqlite-utils transform` CLI command work around these limitations using a pattern where a new table with the desired structure is created, data is copied over to it and the old table is then dropped and replaced by the new one. You can use these tools to drop columns, change column types, rename columns, add and remove `NOT NULL` and defaults, remove foreign key constraints and more. See the [transforming tables (CLI)](https://sqlite-utils.readthedocs.io/en/stable/cli.html#cli-transform-table) and [transforming tables (Python library)](https://sqlite-utils.readthedocs.io/en/stable/python-api.html#python-api-transform) documentation for full details of how to use them. ### Extract Sometimes a database table - especially one imported from a CSV file - will contain duplicate data. A `Trees` table may include a `Species` column with only a few dozen unique values, when the table itself contains thousands of rows. The `table.extract()` method and `sqlite-utils extract` commands can extract a column - or multiple columns - out into a separate lookup table, and set up a foreign key relationship from the original table. The Python library [extract() documentation](https://sqlite-utils.readthedocs.io/en/stable/python-api.html#python-api-extract) describes how extraction works in detail, and [Extracting columns into a separate table](https://sqlite-utils.readthedocs.io/en/stable/cli.html#cli-extract) in the CLI documentation includes a detailed example. ### Other changes - The `@db.register_function` decorator can be used to quickly register Python functions as custom SQL functions, see [Registering custom SQL functions](https://sqlite-utils.rea… sqlite-utils 140912432    
31773390 https://github.com/simonw/sqlite-utils/releases/tag/2.21 simonw 9599 MDc6UmVsZWFzZTMxNzczMzkw 2.21 main 2.21 0 0 2020-09-24T16:44:30Z 2020-09-24T16:45:44Z - `table.extract()` and `sqlite-utils extract` now apply much, much faster - one example operation reduced from twelve minutes to just four seconds! ([#172](https://github.com/simonw/sqlite-utils/issues/172)) - `sqlite-utils extract` no longer shows a progress bar, because it's fast enough not to need one. - New `column_order=` option for `table.transform()` which can be used to alter the order of columns in a table. ([#175](https://github.com/simonw/sqlite-utils/issues/175)) - `sqlite-utils transform --column-order=` option (with a `-o` shortcut) for changing column order. ([#176](https://github.com/simonw/sqlite-utils/issues/176)) - The `table.transform(drop_foreign_keys=)` parameter and the `sqlite-utils transform --drop-foreign-key` option have changed. They now accept just the name of the column rather than requiring all three of the column, other table and other column. This is technically a backwards-incompatible change but I chose not to bump the major version number because the transform feature is so new. ([#177](https://github.com/simonw/sqlite-utils/issues/177)) - The table `.disable_fts()`, `.rebuild_fts()`, `.delete()`, `.delete_where()` and `.add_missing_columns()` methods all now `return self`, which means they can be chained together with other table operations. sqlite-utils 140912432    
32688819 https://github.com/simonw/sqlite-utils/releases/tag/2.22 simonw 9599 MDc6UmVsZWFzZTMyNjg4ODE5 2.22 main 2.22 0 0 2020-10-16T19:30:25Z 2020-10-16T19:31:45Z - New `--encoding` option for processing CSV and TSV files that use a non-utf-8 encoding, for both the `insert` and `update` commands. ([#182](https://github.com/simonw/sqlite-utils/issues/182)) - The `--load-extension` option is now available to many more commands. ([#137](https://github.com/simonw/sqlite-utils/issues/137)) - `--load-extension=spatialite` can be used to load SpatiaLite from common installation locations, if it is available. ([#136](https://github.com/simonw/sqlite-utils/issues/136)) - Tests now also run against Python 3.9. ([#184](https://github.com/simonw/sqlite-utils/issues/184)) - Passing `pk=["id"]` now has the same effect as passing `pk="id"`. ([#181](https://github.com/simonw/sqlite-utils/issues/181)) sqlite-utils 140912432    
33188958 https://github.com/simonw/sqlite-utils/releases/tag/2.23 simonw 9599 MDc6UmVsZWFzZTMzMTg4OTU4 2.23 main 2.23 0 0 2020-10-28T21:38:10Z 2020-10-28T21:38:54Z - `table.m2m(other_table, records)` method now takes any iterable, not just a list or tuple. Thanks, Adam Wolf. ([#189](https://github.com/simonw/sqlite-utils/pull/189)) - `sqlite-utils insert` now displays a progress bar for CSV or TSV imports. ([#173](https://github.com/simonw/sqlite-utils/issues/173)) - New `@db.register_function(deterministic=True)` option for registering deterministic SQLite functions in Python 3.8 or higher. ([#191](https://github.com/simonw/sqlite-utils/issues/191)) sqlite-utils 140912432    
33591216 https://github.com/simonw/sqlite-utils/releases/tag/3.0a0 simonw 9599 MDc6UmVsZWFzZTMzNTkxMjE2 3.0a0 main 3.0a0 0 1 2020-11-07T01:22:24Z 2020-11-07T01:24:43Z This release introduces a new `sqlite-utils search` command for searching tables, see [Executing searches](https://sqlite-utils.readthedocs.io/en/latest/cli.html#cli-search). ([#192](https://github.com/simonw/sqlite-utils/issues/192)) The `table.search()` method has been redesigned, see [Searching with table.search()](https://sqlite-utils.readthedocs.io/en/latest/python-api.html#python-api-fts-search). ([#197](https://github.com/simonw/sqlite-utils/issues/197)) The release includes minor backwards-incompatible changes, hence the version bump to 3.0. Those changes, which should not affect most users, are: - The `-c` shortcut option for outputting CSV is no longer available. The full `--csv` option is required instead. - The `-f` shortcut for `--fmt` has also been removed - use `--fmt`. - The `table.search()` method now defaults to sorting by relevance, not sorting by `rowid`. ([#198](https://github.com/simonw/sqlite-utils/issues/198)) - The `table.search()` method now returns a generator over a list of Python dictionaries. It previously returned a list of tuples. Also in this release: - The `query`, `tables`, `rows` and `search` CLI commands now accept a new `--tsv` option which outputs the results in TSV. ([#193](https://github.com/simonw/sqlite-utils/issues/193)) - A new `table.virtual_table_using` property reveals if a table is a virtual table, and returns the upper case type of virtual table (e.g. `FTS4` or `FTS5`) if it is. It returns `None` if the table is not a virtual table. ([#196](https://github.com/simonw/sqlite-utils/issues/196)) - The new `table.search_sql()` method returns the SQL for searching a table, see [Building SQL queries with table.search_sql()](https://sqlite-utils.readthedocs.io/en/latest/python-api.html#python-api-fts-search-sql). - `sqlite-utils rows` now accepts multiple optional `-c` parameters specifying the columns to return. ([#200](https://github.com/simonw/sqlite-utils/issues/200)) sqlite-utils 140912432    
33615120 https://github.com/simonw/sqlite-utils/releases/tag/3.0 simonw 9599 MDc6UmVsZWFzZTMzNjE1MTIw 3.0 main 3.0 0 0 2020-11-08T17:23:38Z 2020-11-08T17:24:27Z This release introduces a new `sqlite-utils search` command for searching tables, see [Executing searches](https://sqlite-utils.readthedocs.io/en/latest/cli.html#cli-search). ([#192](https://github.com/simonw/sqlite-utils/issues/192)) The `table.search()` method has been redesigned, see [Searching with table.search()](https://sqlite-utils.readthedocs.io/en/latest/python-api.html#python-api-fts-search). ([#197](https://github.com/simonw/sqlite-utils/issues/197)) The release includes minor backwards-incompatible changes, hence the version bump to 3.0. Those changes, which should not affect most users, are: - The `-c` shortcut option for outputting CSV is no longer available. The full `--csv` option is required instead. - The `-f` shortcut for `--fmt` has also been removed - use `--fmt`. - The `table.search()` method now defaults to sorting by relevance, not sorting by `rowid`. ([#198](https://github.com/simonw/sqlite-utils/issues/198)) - The `table.search()` method now returns a generator over a list of Python dictionaries. It previously returned a list of tuples. Also in this release: - The `query`, `tables`, `rows` and `search` CLI commands now accept a new `--tsv` option which outputs the results in TSV. ([#193](https://github.com/simonw/sqlite-utils/issues/193)) - A new `table.virtual_table_using` property reveals if a table is a virtual table, and returns the upper case type of virtual table (e.g. `FTS4` or `FTS5`) if it is. It returns `None` if the table is not a virtual table. ([#196](https://github.com/simonw/sqlite-utils/issues/196)) - The new `table.search_sql()` method returns the SQL for searching a table, see [Building SQL queries with table.search_sql()](https://sqlite-utils.readthedocs.io/en/latest/python-api.html#python-api-fts-search-sql). - `sqlite-utils rows` now accepts multiple optional `-c` parameters specifying the columns to return. ([#200](https://github.com/simonw/sqlite-utils/issues/200)) Changes since the 3.0a0 alpha release: - The `sqlite-uti… sqlite-utils 140912432    
35200016 https://github.com/simonw/sqlite-utils/releases/tag/3.1 simonw 9599 MDc6UmVsZWFzZTM1MjAwMDE2 3.1 main 3.1 0 0 2020-12-13T07:30:59Z 2020-12-13T07:31:40Z - New command: `sqlite-utils analyze-tables my.db` outputs useful information about the table columns in the database, such as the number of distinct values and how many rows are null. See [Analyzing tables](https://sqlite-utils.readthedocs.io/en/stable/cli.html#cli-analyze-tables) for documentation. ([#207](https://github.com/simonw/sqlite-utils/issues/207)) - New `table.analyze_column(column)` Python method used by the `analyze-tables` command - see [Analyzing a column](https://sqlite-utils.readthedocs.io/en/stable/python-api.html#python-api-analyze-column). - The `table.update()` method now correctly handles values that should be stored as JSON. Thanks, Andreas Madsack. ([#204](https://github.com/simonw/sqlite-utils/pull/204)) sqlite-utils 140912432    
35902315 https://github.com/simonw/sqlite-utils/releases/tag/3.1.1 simonw 9599 MDc6UmVsZWFzZTM1OTAyMzE1 3.1.1 main 3.1.1 0 0 2021-01-01T23:56:20Z 2021-01-01T23:57:07Z - Fixed failing test caused by `optimize` sometimes creating larger database files. ([#209](https://github.com/simonw/sqlite-utils/issues/209)) - Documentation now lives on <https://sqlite-utils.datasette.io/> - README now includes `brew install sqlite-utils` installation method. sqlite-utils 140912432    
35930040 https://github.com/simonw/sqlite-utils/releases/tag/3.2 simonw 9599 MDc6UmVsZWFzZTM1OTMwMDQw 3.2 main 3.2 0 0 2021-01-03T21:15:26Z 2021-01-03T21:17:37Z This release introduces a new mechanism for speeding up `count(*)` queries using cached table counts, stored in a `_counts` table and updated by triggers. This mechanism is described in [Cached table counts using triggers](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-cached-table-counts), and can be enabled using Python API methods or the new `enable-counts` CLI command. ([#212](https://github.com/simonw/sqlite-utils/issues/212)) - `table.enable_counts()` method for enabling these triggers on a specific table. - `db.enable_counts()` method for enabling triggers on every table in the database. ([#213](https://github.com/simonw/sqlite-utils/issues/213)) - New `sqlite-utils enable-counts my.db` command for enabling counts on all or specific tables, see [Enabling cached counts](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-enable-counts). ([#214](https://github.com/simonw/sqlite-utils/issues/214)) - New `sqlite-utils triggers` command for listing the triggers defined for a database or specific tables, see [Listing triggers](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-triggers). ([#218](https://github.com/simonw/sqlite-utils/issues/218)) - New `db.use_counts_table` property which, if `True`, causes `table.count` to read from the `_counts` table. ([#215](https://github.com/simonw/sqlite-utils/issues/215)) - `table.has_counts_triggers` property revealing if a table has been configured with the new `_counts` database triggers. - `db.reset_counts()` method and `sqlite-utils reset-counts` command for resetting the values in the `_counts` table. ([#219](https://github.com/simonw/sqlite-utils/issues/219)) - The previously undocumented `db.escape()` method has been renamed to `db.quote()` and is now covered by the documentation: [Quoting strings for use in SQL](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-quote). ([#217](https://github.com/simonw/sqlite-utils/issues/217)) - New `table.triggers_dict` and `db.triggers_dict` introspection prop… sqlite-utils 140912432    
36307444 https://github.com/simonw/sqlite-utils/releases/tag/3.2.1 simonw 9599 MDc6UmVsZWFzZTM2MzA3NDQ0 3.2.1 main 3.2.1 0 0 2021-01-12T23:22:53Z 2021-01-12T23:23:25Z - Fixed a bug where `.add_missing_columns()` failed to take case insensitive column names into account. ([#221](https://github.com/simonw/sqlite-utils/issues/221)) sqlite-utils 140912432    
36530216 https://github.com/simonw/sqlite-utils/releases/tag/3.3 simonw 9599 MDc6UmVsZWFzZTM2NTMwMjE2 3.3 main 3.3 0 0 2021-01-18T04:28:24Z 2021-01-18T04:29:48Z - The `table.m2m()` method now accepts an optional `alter=True` argument to specify that any missing columns should be added to the referenced table. See [Working with many-to-many relationships](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-m2m). ([#222](https://github.com/simonw/sqlite-utils/issues/222)) sqlite-utils 140912432    
37437744 https://github.com/simonw/sqlite-utils/releases/tag/3.4 simonw 9599 MDc6UmVsZWFzZTM3NDM3NzQ0 3.4 main 3.4 0 0 2021-02-06T01:37:27Z 2021-02-06T01:38:26Z - `sqlite-utils insert --csv` now accepts optional `--delimiter` and `--quotechar` options. See [Alternative delimiters and quote characters](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-insert-csv-tsv-delimiter). ([#223](https://github.com/simonw/sqlite-utils/issues/223)) sqlite-utils 140912432    
37438817 https://github.com/simonw/sqlite-utils/releases/tag/3.4.1 simonw 9599 MDc6UmVsZWFzZTM3NDM4ODE3 3.4.1 main 3.4.1 0 0 2021-02-06T02:10:04Z 2021-02-06T02:11:15Z - Fixed a code import bug that slipped in to 3.4. ([#226](https://github.com/simonw/sqlite-utils/issues/226)) sqlite-utils 140912432    
38037267 https://github.com/simonw/sqlite-utils/releases/tag/3.5 simonw 9599 MDc6UmVsZWFzZTM4MDM3MjY3 3.5 main 3.5 0 0 2021-02-14T22:43:06Z 2021-02-14T22:44:21Z - `sqlite-utils insert --sniff` option for detecting the delimiter and quote character used by a CSV file, see [Alternative delimiters and quote characters](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-insert-csv-tsv-delimiter). ([#230](https://github.com/simonw/sqlite-utils/issues/230)) - The `table.rows_where()`, `table.search()` and `table.search_sql()` methods all now take optional `offset=` and `limit=` arguments. ([#231](https://github.com/simonw/sqlite-utils/issues/231)) - New `--no-headers` option for `sqlite-utils insert --csv` to handle CSV files that are missing the header row, see [CSV files without a header row](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-insert-csv-tsv-no-header). ([#228](https://github.com/simonw/sqlite-utils/issues/228)) - Fixed bug where inserting data with extra columns in subsequent chunks would throw an error. Thanks [@nieuwenhoven](https://github.com/nieuwenhoven) for the fix. ([#234](https://github.com/simonw/sqlite-utils/issues/234)) - Fixed bug importing CSV files with columns containing more than 128KB of data. ([#229](https://github.com/simonw/sqlite-utils/issues/229)) - Test suite now runs in CI against Ubuntu, macOS and Windows. Thanks [@nieuwenhoven](https://github.com/nieuwenhoven) for the Windows test fixes. ([#232](https://github.com/simonw/sqlite-utils/issues/232)) sqlite-utils 140912432    
38290990 https://github.com/simonw/sqlite-utils/releases/tag/3.6 simonw 9599 MDc6UmVsZWFzZTM4MjkwOTkw 3.6 main 3.6 0 0 2021-02-19T05:18:02Z 2021-02-19T05:19:00Z 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](https://docs.datasette.io/en/stable/changelog.html#v0-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](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-attach). ([#113](https://github.com/simonw/sqlite-utils/issues/113)) - The `--attach` option attaches extra aliased databases to run SQL queries against directly on the command-line, see [attaching additional databases in the CLI documentation](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-attach). ([#236](https://github.com/simonw/sqlite-utils/issues/236)) sqlite-utils 140912432    
43797212 https://github.com/simonw/sqlite-utils/releases/tag/3.7 simonw 9599 MDc6UmVsZWFzZTQzNzk3MjEy 3.7 main 3.7 0 0 2021-05-29T05:47:59Z 2021-05-29T05:49:59Z - New `table.pks_and_rows_where()` method returning `(primary_key, row_dictionary)` tuples - see [Listing rows with their primary keys](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-pks-and-rows-where). ([#240](https://github.com/simonw/sqlite-utils/issues/240)) - Fixed bug with *table.add_foreign_key()* against columns containing spaces. ([#238](https://github.com/simonw/sqlite-utils/issues/238)) - `table_or_view.drop(ignore=True)` option for avoiding errors if the table or view does not exist. ([#237](https://github.com/simonw/sqlite-utils/issues/237)) - `sqlite-utils drop-view --ignore` and `sqlite-utils drop-table --ignore` options. ([#237](https://github.com/simonw/sqlite-utils/issues/237)) - Fixed a bug with inserts of nested JSON containing non-ascii strings - thanks, Dylan Wu. ([#257](https://github.com/simonw/sqlite-utils/issues/257)) - Suggest `--alter` if an error occurs caused by a missing column. ([#259](https://github.com/simonw/sqlite-utils/issues/259)) - Support creating indexes with columns in descending order, see [API documentation](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-create-index) and [CLI documentation](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-create-index). ([#260](https://github.com/simonw/sqlite-utils/issues/260)) - Correctly handle CSV files that start with a UTF-8 BOM. ([#250](https://github.com/simonw/sqlite-utils/issues/250)) sqlite-utils 140912432    
44019361 https://github.com/simonw/sqlite-utils/releases/tag/3.8 simonw 9599 MDc6UmVsZWFzZTQ0MDE5MzYx 3.8 main 3.8 0 0 2021-06-03T05:16:33Z 2021-06-03T05:17:33Z - New `sqlite-utils indexes` command to list indexes in a database, see [Listing indexes](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-indexes). ([#263](https://github.com/simonw/sqlite-utils/issues/263)) - `table.xindexes` introspection property returning more details about that table's indexes, see [.xindexes](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-introspection-xindexes). ([#261](https://github.com/simonw/sqlite-utils/issues/261)) sqlite-utils 140912432    
44511190 https://github.com/simonw/sqlite-utils/releases/tag/3.9 simonw 9599 MDc6UmVsZWFzZTQ0NTExMTkw 3.9 main 3.9 0 0 2021-06-12T02:07:18Z 2021-06-12T02:08:03Z - New `sqlite-utils schema` command showing the full SQL schema for a database, see [Showing the schema (CLI)](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-schema). ([#268](https://github.com/simonw/sqlite-utils/issues/268)) - `db.schema` introspection property exposing the same feature to the Python library, see [Showing the schema (Python library)](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-schema). sqlite-utils 140912432 {"url": "https://api.github.com/repos/simonw/sqlite-utils/releases/44511190/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0}  
44529219 https://github.com/simonw/sqlite-utils/releases/tag/3.9.1 simonw 9599 MDc6UmVsZWFzZTQ0NTI5MjE5 3.9.1 main 3.9.1 0 0 2021-06-13T02:59:08Z 2021-06-13T03:00:45Z - Fixed bug when using `table.upsert_all()` to create a table with only a single column that is treated as the primary key. ([#271](https://github.com/simonw/sqlite-utils/issues/271)) sqlite-utils 140912432    
44904928 https://github.com/simonw/sqlite-utils/releases/tag/3.10 simonw 9599 MDc6UmVsZWFzZTQ0OTA0OTI4 3.10 main 3.10 0 0 2021-06-19T16:09:29Z 2021-06-19T16:13:11Z This release introduces the `sqlite-utils memory` command, which can be used to load CSV or JSON data into a temporary in-memory database and run SQL queries (including joins across multiple files) directly against that data. Also new: `sqlite-utils insert --detect-types`, `sqlite-utils dump`, `table.use_rowid` plus some smaller fixes. ### sqlite-utils memory This example of `sqlite-utils memory` retrieves information about the all of the repositories in the [Dogsheep](https://github.com/dogsheep) organization on GitHub using [this JSON API](https://api.github.com/users/dogsheep/repos), sorts them by their number of stars and outputs a table of the top five (using `-t`): ``` $ curl -s 'https://api.github.com/users/dogsheep/repos'\ | sqlite-utils memory - ' select full_name, forks_count, stargazers_count from stdin order by stargazers_count desc limit 5 ' -t full_name forks_count stargazers_count --------------------------------- ------------- ------------------ dogsheep/twitter-to-sqlite 12 225 dogsheep/github-to-sqlite 14 139 dogsheep/dogsheep-photos 5 116 dogsheep/dogsheep.github.io 7 90 dogsheep/healthkit-to-sqlite 4 85 ``` The tool works against files on disk as well. This example joins data from two CSV files: ``` $ cat creatures.csv species_id,name 1,Cleo 2,Bants 2,Dori 2,Azi $ cat species.csv id,species_name 1,Dog 2,Chicken $ sqlite-utils memory species.csv creatures.csv ' select * from creatures join species on creatures.species_id = species.id ' [{"species_id": 1, "name": "Cleo", "id": 1, "species_name": "Dog"}, {"species_id": 2, "name": "Bants", "id": 2, "species_name": "Chicken"}, {"species_id": 2, "name": "Dori", "id": 2, "species_name": "Chicken"}, {"species_id": 2, "name": "Azi", "id": 2, "species_name": "Chicken"}] ``` … sqlite-utils 140912432 {"url": "https://api.github.com/repos/simonw/sqlite-utils/releases/44904928/reactions", "total_count": 3, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 1, "eyes": 1}  
44927292 https://github.com/simonw/sqlite-utils/releases/tag/3.11 simonw 9599 MDc6UmVsZWFzZTQ0OTI3Mjky 3.11 main 3.11 0 0 2021-06-20T18:52:15Z 2021-06-20T18:53:09Z - New `sqlite-utils memory data.csv --schema` option, for outputting the schema of the in-memory database generated from one or more files. See [--schema, --dump and --save](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-memory-schema-dump-save). ([#288](https://github.com/simonw/sqlite-utils/issues/288)) - Added [installation instructions](https://sqlite-utils.datasette.io/en/stable/installation.html#installation). ([#286](https://github.com/simonw/sqlite-utils/issues/286)) sqlite-utils 140912432    
45251624 https://github.com/simonw/sqlite-utils/releases/tag/3.12 simonw 9599 MDc6UmVsZWFzZTQ1MjUxNjI0 3.12 main 3.12 0 0 2021-06-25T17:59:05Z 2021-06-25T18:00:18Z - New [db.query(sql, params)](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-query) method, which executes a SQL query and returns the results as an iterator over Python dictionaries. ([#290](https://github.com/simonw/sqlite-utils/issues/290)) - This project now uses `flake8` and has started to use `mypy`. ([#291](https://github.com/simonw/sqlite-utils/issues/291)) - New documentation on [contributing](https://sqlite-utils.datasette.io/en/stable/contributing.html#contributing) to this project. ([#292](https://github.com/simonw/sqlite-utils/issues/292)) sqlite-utils 140912432    
46720847 https://github.com/simonw/sqlite-utils/releases/tag/3.13 simonw 9599 MDc6UmVsZWFzZTQ2NzIwODQ3 3.13 main 3.13 0 0 2021-07-24T22:15:27Z 2021-07-24T22:17:47Z - `sqlite-utils schema my.db table1 table2` command now accepts optional table names. ([#299](https://github.com/simonw/sqlite-utils/issues/299)) - `sqlite-utils memory --help` now describes the `--schema` option. sqlite-utils 140912432    
47185841 https://github.com/simonw/sqlite-utils/releases/tag/3.14 simonw 9599 MDc6UmVsZWFzZTQ3MTg1ODQx 3.14 main 3.14 0 0 2021-08-02T21:29:16Z 2021-08-02T21:34:43Z This release introduces the new [sqlite-utils convert command](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-convert) ([#251](https://github.com/simonw/sqlite-utils/issues/251)) and corresponding [table.convert(...)](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-convert) Python method ([#302](https://github.com/simonw/sqlite-utils/issues/302)). These tools can be used to apply a Python conversion function to one or more columns of a table, either updating the column in place or using transformed data from that column to populate one or more other columns. This command-line example uses the Python standard library [textwrap module](https://docs.python.org/3/library/textwrap.html) to wrap the content of the `content` column in the `articles` table to 100 characters: ``` $ sqlite-utils convert content.db articles content\ '"\n".join(textwrap.wrap(value, 100))'\ --import=textwrap ``` The same operation in Python code looks like this: ```python import sqlite_utils, textwrap db = sqlite_utils.Database("content.db") db["articles"].convert("content", lambda v: "\n".join(textwrap.wrap(v, 100))) ``` See the full documentation for the [sqlite-utils convert command](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-convert) and the [table.convert(...)](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-convert) Python method for more details. Also in this release: - The new `table.count_where(...)` method, for counting rows in a table that match a specific SQL `WHERE` clause. ([#305](https://github.com/simonw/sqlite-utils/issues/305)) - New `--silent` option for the [sqlite-utils insert-files command](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-insert-files) to hide the terminal progress bar, consistent with the `--silent` option for `sqlite-utils convert`. ([#301](https://github.com/simonw/sqlite-utils/issues/301)) sqlite-utils 140912432    
47569134 https://github.com/simonw/sqlite-utils/releases/tag/3.15 simonw 9599 MDc6UmVsZWFzZTQ3NTY5MTM0 3.15 main 3.15 0 0 2021-08-09T22:42:06Z 2021-08-09T22:43:16Z - `sqlite-utils insert --flatten` option for [flattening nested JSON objects](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-inserting-data-flatten) to create tables with column names like `topkey_nestedkey`. ([#310](https://github.com/simonw/sqlite-utils/issues/310)) - Fixed several spelling mistakes in the documentation, spotted [using codespell](https://til.simonwillison.net/python/codespell). - Errors that occur while using the `sqlite-utils` CLI tool now show the responsible SQL and query parameters, if possible. ([#309](https://github.com/simonw/sqlite-utils/issues/309)) sqlite-utils 140912432    
47636109 https://github.com/simonw/sqlite-utils/releases/tag/3.15.1 simonw 9599 MDc6UmVsZWFzZTQ3NjM2MTA5 3.15.1 main 3.15.1 0 0 2021-08-10T23:55:12Z 2021-08-10T23:55:38Z - Python library now includes type annotations on almost all of the methods, plus detailed docstrings describing each one. ([#311](https://github.com/simonw/sqlite-utils/issues/311)) - New [API Reference](https://sqlite-utils.datasette.io/en/stable/reference.html) documentation page, powered by those docstrings. - Fixed bug where `.add_foreign_keys()` failed to raise an error if called against a `View`. ([#313](https://github.com/simonw/sqlite-utils/issues/313)) - Fixed bug where `.delete_where()` returned a `[]` instead of returning `self` if called against a non-existant table. ([#315](https://github.com/simonw/sqlite-utils/issues/315)) sqlite-utils 140912432 {"url": "https://api.github.com/repos/simonw/sqlite-utils/releases/47636109/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 1, "rocket": 0, "eyes": 0}  
48077246 https://github.com/simonw/sqlite-utils/releases/tag/3.16 simonw 9599 MDc6UmVsZWFzZTQ4MDc3MjQ2 3.16 main 3.16 0 0 2021-08-18T22:36:32Z 2021-08-18T22:37:55Z - Type signatures added to more methods, including `table.resolve_foreign_keys()`, `db.create_table_sql()`, `db.create_table()` and `table.create()`. ([#314](https://github.com/simonw/sqlite-utils/issues/314)) - New `db.quote_fts(value)` method, see [Quoting characters for use in search](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-quote-fts) - thanks, Mark Neumann. ([#246](https://github.com/simonw/sqlite-utils/issues/246)) - `table.search()` now accepts an optional `quote=True` parameter. ([#296](https://github.com/simonw/sqlite-utils/issues/296)) - CLI command `sqlite-utils search` now accepts a `--quote` option. ([#296](https://github.com/simonw/sqlite-utils/issues/296)) - Fixed bug where `--no-headers` and `--tsv` options to [sqlite-utils insert](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-insert-csv-tsv) could not be used together. ([#295](https://github.com/simonw/sqlite-utils/issues/295)) - Various small improvements to [API reference](https://sqlite-utils.datasette.io/en/stable/reference.html#reference) documentation. sqlite-utils 140912432    
48389722 https://github.com/simonw/sqlite-utils/releases/tag/3.17 simonw 9599 MDc6UmVsZWFzZTQ4Mzg5NzIy 3.17 main 3.17 0 0 2021-08-24T23:40:18Z 2021-08-24T23:42:22Z - The [sqlite-utils memory](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-memory) command has a new `--analyze` option, which runs the equivalent of the [analyze-tables](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-analyze-tables) command directly against the in-memory database created from the incoming CSV or JSON data. ([#320](https://github.com/simonw/sqlite-utils/issues/320)) - [sqlite-utils insert-files](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-insert-files) now has the ability to insert file contents in to `TEXT` columns in addition to the default `BLOB`. Pass the `--text` option or use `content_text` as a column specifier. ([#319](https://github.com/simonw/sqlite-utils/issues/319)) sqlite-utils 140912432 {"url": "https://api.github.com/repos/simonw/sqlite-utils/releases/48389722/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 1, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0}  
50089123 https://github.com/simonw/sqlite-utils/releases/tag/3.17.1 simonw 9599 RE_kwDOCGYnMM4C_Eyj 3.17.1 main 3.17.1 0 0 2021-09-22T20:49:36Z 2021-09-22T20:51:04Z - [sqlite-utils memory](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-memory) now works if files passed to it share the same file name. ([#325](https://github.com/simonw/sqlite-utils/issues/325)) - [sqlite-utils query](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-query) now returns `[]` in JSON mode if no rows are returned. ([#328](https://github.com/simonw/sqlite-utils/issues/328)) sqlite-utils 140912432    
53350811 https://github.com/simonw/sqlite-utils/releases/tag/3.18 simonw 9599 RE_kwDOCGYnMM4DLhGb 3.18 main 3.18 0 0 2021-11-15T03:15:23Z 2021-11-15T03:17:31Z - The `table.lookup()` method now has an optional second argument which can be used to populate columns only the first time the record is created, see [Working with lookup tables](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-lookup-tables). ([#339](https://github.com/simonw/sqlite-utils/issues/339)) - `sqlite-utils memory` now has a `--flatten` option for [flattening nested JSON objects](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-inserting-data-flatten) into separate columns, consistent with `sqlite-utils insert`. ([#332](https://github.com/simonw/sqlite-utils/issues/332)) - `table.create_index(..., find_unique_name=True)` parameter, which finds an available name for the created index even if the default name has already been taken. This means that `index-foreign-keys` will work even if one of the indexes it tries to create clashes with an existing index name. ([#335](https://github.com/simonw/sqlite-utils/issues/335)) - Added `py.typed` to the module, so [mypy](http://mypy-lang.org/) should now correctly pick up the type annotations. Thanks, Andreas Longo. ([#331](https://github.com/simonw/sqlite-utils/issues/331)) - Now depends on `python-dateutil` instead of depending on `dateutils`. Thanks, Denys Pavlov. ([#324](https://github.com/simonw/sqlite-utils/issues/324)) - `table.create()` (see [Explicitly creating a table](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-explicit-create)) now handles `dict`, `list` and `tuple` types, mapping them to `TEXT` columns in SQLite so that they can be stored encoded as JSON. ([#338](https://github.com/simonw/sqlite-utils/issues/338)) - Inserted data with square braces in the column names (for example a CSV file containing a `item[price]`) column now have the braces converted to underscores: `item_price_`. Previously such columns would be rejected with an error. ([#329](https://github.com/simonw/sqlite-utils/issues/329)) - Now also tested against Python 3.10. ([#330](https://github.com/simonw/sqlite-utils/p… sqlite-utils 140912432 {"url": "https://api.github.com/repos/simonw/sqlite-utils/releases/53350811/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 1, "eyes": 0}  
53698399 https://github.com/simonw/sqlite-utils/releases/tag/3.19a0 simonw 9599 RE_kwDOCGYnMM4DM19f 3.19a0 main 3.19a0 0 1 2021-11-19T07:27:41Z 2021-11-19T07:28:50Z - Extra keyword arguments for `table.lookup()` which are passed through to `.insert()`. [#342](https://github.com/simonw/sqlite-utils/issues/342) sqlite-utils 140912432    
53785562 https://github.com/simonw/sqlite-utils/releases/tag/3.19 simonw 9599 RE_kwDOCGYnMM4DNLPa 3.19 main 3.19 0 0 2021-11-21T04:41:56Z 2021-11-21T04:42:24Z - The [table.lookup() method](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-lookup-tables) now accepts keyword arguments that match those on the underlying `table.insert()` method: `foreign_keys=`, `column_order=`, `not_null=`, `defaults=`, `extracts=`, `conversions=` and `columns=`. You can also now pass `pk=` to specify a different column name to use for the primary key. ([#342](https://github.com/simonw/sqlite-utils/issues/342)) sqlite-utils 140912432    
56514583 https://github.com/simonw/sqlite-utils/releases/tag/3.20 simonw 9599 RE_kwDOCGYnMM4DXlgX 3.20 main 3.20 0 0 2022-01-06T06:55:35Z 2022-01-06T06:57:09Z - `sqlite-utils insert ... --lines` to insert the lines from a file into a table with a single `line` column, see [Inserting unstructured data with --lines and --text](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-insert-unstructured). - `sqlite-utils insert ... --text` to insert the contents of the file into a table with a single `text` column and a single row. - `sqlite-utils insert ... --convert` allows a Python function to be provided that will be used to convert each row that is being inserted into the database. See [Applying conversions while inserting data](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-insert-convert), including details on special behavior when combined with `--lines` and `--text`. ([#356](https://github.com/simonw/sqlite-utils/issues/356)) - `sqlite-utils convert` now accepts a code value of `-` to read code from standard input. ([#353](https://github.com/simonw/sqlite-utils/issues/353)) - `sqlite-utils convert` also now accepts code that defines a named `convert(value)` function, see [Converting data in columns](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-convert). - `db.supports_strict` property showing if the database connection supports [SQLite strict tables](https://www.sqlite.org/stricttables.html). - `table.strict` property (see [.strict](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-introspection-strict)) indicating if the table uses strict mode. ([#344](https://github.com/simonw/sqlite-utils/issues/344)) - Fixed bug where `sqlite-utils upsert ... --detect-types` ignored the `--detect-types` option. ([#362](https://github.com/simonw/sqlite-utils/issues/362)) sqlite-utils 140912432    
56788942 https://github.com/simonw/sqlite-utils/releases/tag/3.21 simonw 9599 RE_kwDOCGYnMM4DYofO 3.21 main 3.21 0 0 2022-01-11T02:34:21Z 2022-01-11T02:35:02Z CLI and Python library improvements to help run [ANALYZE](https://www.sqlite.org/lang_analyze.html) after creating indexes or inserting rows, to gain better performance from the SQLite query planner when it runs against indexes. Three new CLI commands: `create-database`, `analyze` and `bulk`. More details and examples can be found in the [annotated release notes](https://simonwillison.net/2022/Jan/11/sqlite-utils/). - New `sqlite-utils create-database` command for creating new empty database files. ([#348](https://github.com/simonw/sqlite-utils/issues/348)) - New Python methods for running `ANALYZE` against a database, table or index: `db.analyze()` and `table.analyze()`, see [Optimizing index usage with ANALYZE](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-analyze). ([#366](https://github.com/simonw/sqlite-utils/issues/366)) - New [sqlite-utils analyze command](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-analyze) for running `ANALYZE` using the CLI. ([#379](https://github.com/simonw/sqlite-utils/issues/379)) - The `create-index`, `insert` and `upsert` commands now have a new `--analyze` option for running `ANALYZE` after the command has completed. ([#379](https://github.com/simonw/sqlite-utils/issues/379)) - New [sqlite-utils bulk command](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-bulk) which can import records in the same way as `sqlite-utils insert` (from JSON, CSV or TSV) and use them to bulk execute a parametrized SQL query. ([#375](https://github.com/simonw/sqlite-utils/issues/375)) - The CLI tool can now also be run using `python -m sqlite_utils`. ([#368](https://github.com/simonw/sqlite-utils/issues/368)) - Using `--fmt` now implies `--table`, so you don't need to pass both options. ([#374](https://github.com/simonw/sqlite-utils/issues/374)) - The `--convert` function applied to rows can now modify the row in place. ([#371](https://github.com/simonw/sqlite-utils/issues/371)) - The [insert-files command](https://sqlite… sqlite-utils 140912432    
56875206 https://github.com/simonw/sqlite-utils/releases/tag/3.22 simonw 9599 RE_kwDOCGYnMM4DY9jG 3.22 main 3.22 0 0 2022-01-11T23:44:48Z 2022-01-11T23:49:28Z - New [CLI reference](https://sqlite-utils.datasette.io/en/stable/cli-reference.html#cli-reference) documentation page, listing the output of `--help` for every one of the CLI commands. ([#383](https://github.com/simonw/sqlite-utils/issues/383)) - `sqlite-utils rows` now has `--limit` and `--offset` options for paginating through data. ([#381](https://github.com/simonw/sqlite-utils/issues/381)) - `sqlite-utils rows` now has `--where` and `-p` options for filtering the table using a `WHERE` query, see [Returning all rows in a table](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-rows). ([#382](https://github.com/simonw/sqlite-utils/issues/382)) sqlite-utils 140912432    
57980102 https://github.com/simonw/sqlite-utils/releases/tag/3.22.1 simonw 9599 RE_kwDOCGYnMM4DdLTG 3.22.1 main 3.22.1 0 0 2022-01-26T03:28:30Z 2022-01-26T03:29:24Z - All commands now include example usage in their `--help` - see [CLI reference](https://sqlite-utils.datasette.io/en/stable/cli-reference.html#cli-reference). ([#384](https://github.com/simonw/sqlite-utils/issues/384)) - Python library documentation has a new [Getting started](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-getting-started) section. ([#387](https://github.com/simonw/sqlite-utils/issues/387)) - Documentation now uses [Plausible analytics](https://plausible.io/). ([#389](https://github.com/simonw/sqlite-utils/issues/389)) sqlite-utils 140912432    
58663467 https://github.com/simonw/sqlite-utils/releases/tag/3.23 simonw 9599 RE_kwDOCGYnMM4DfyIr 3.23 main 3.23 0 0 2022-02-04T06:41:46Z 2022-02-04T06:44:19Z This release introduces four new utility methods for working with [SpatiaLite](https://www.gaia-gis.it/fossil/libspatialite/index). Thanks, Chris Amico. ([#330](https://github.com/simonw/sqlite-utils/pull/385)) - `sqlite_utils.utils.find_spatialite()` [finds the location of the SpatiaLite module](https://sqlite-utils.readthedocs.io/en/stable/python-api.html#python-api-gis-find-spatialite) on disk. - `db.init_spatialite()` [initializes SpatiaLite](https://sqlite-utils.readthedocs.io/en/stable/python-api.html#python-api-gis-init-spatialite) for the given database. - `table.add_geometry_column(...)` [adds a geometry column](https://sqlite-utils.readthedocs.io/en/stable/python-api.html#python-api-gis-add-geometry-column) to an existing table. - `table.create_spatial_index(...)` [creates a spatial index](https://sqlite-utils.readthedocs.io/en/stable/python-api.html#python-api-gis-create-spatial-index) for a column. - `sqlite-utils batch` now accepts a `--batch-size` option. ([#392](https://github.com/simonw/sqlite-utils/issues/392)) sqlite-utils 140912432    
59656694 https://github.com/simonw/sqlite-utils/releases/tag/3.24 simonw 9599 RE_kwDOCGYnMM4Djkn2 3.24 main 3.24 0 0 2022-02-16T01:39:13Z 2022-02-16T01:41:50Z - SpatiaLite helpers for the `sqlite-utils` command-line tool - thanks, Chris Amico. ([#398](https://github.com/simonw/sqlite-utils/issues/398)) - [sqlite-utils create-database](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-create-database) `--init-spatialite` option for initializing SpatiaLite on a newly created database. - [sqlite-utils add-geometry-column](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-spatialite) command for adding geometry columns. - [sqlite-utils create-spatial-index](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-spatialite-indexes) command for adding spatial indexes. - `db[table].create(..., if_not_exists=True)` option for [creating a table](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-explicit-create) only if it does not already exist. ([#397](https://github.com/simonw/sqlite-utils/issues/397)) - `Database(memory_name="my_shared_database")` parameter for creating a [named in-memory database](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-connect) that can be shared between multiple connections. ([#405](https://github.com/simonw/sqlite-utils/issues/405)) - Documentation now describes [how to add a primary key to a rowid table](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-transform-table-add-primary-key-to-rowid) using `sqlite-utils transform`. ([#403](https://github.com/simonw/sqlite-utils/issues/403)) sqlite-utils 140912432 {"url": "https://api.github.com/repos/simonw/sqlite-utils/releases/59656694/reactions", "total_count": 2, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 1, "eyes": 0}  
60770975 https://github.com/simonw/sqlite-utils/releases/tag/3.25 simonw 9599 RE_kwDOCGYnMM4Dn0qf 3.25 main 3.25 0 0 2022-03-02T06:34:46Z 2022-03-02T06:35:18Z - New `hash_id_columns=` parameter for creating a primary key that's a hash of the content of specific columns - see [Setting an ID based on the hash of the row contents](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-hash) for details. ([#343](https://github.com/simonw/sqlite-utils/issues/343)) - New [db.sqlite_version](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-sqlite-version) property, returning a tuple of integers representing the version of SQLite, for example `(3, 38, 0)`. - Fixed a bug where [register_function(deterministic=True)](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-register-function) caused errors on versions of SQLite prior to 3.8.3. ([#408](https://github.com/simonw/sqlite-utils/issues/408)) - New documented [hash_record(record, keys=...)](https://sqlite-utils.datasette.io/en/stable/reference.html#reference-utils-hash-record) function. sqlite-utils 140912432    
61628678 https://github.com/simonw/sqlite-utils/releases/tag/3.25.1 simonw 9599 RE_kwDOCGYnMM4DrGEG 3.25.1 main 3.25.1 0 0 2022-03-11T18:34:44Z 2022-03-11T18:35:41Z - Improved display of type information and parameters in the [API reference documentation](https://sqlite-utils.datasette.io/en/stable/reference.html). [#413](https://github.com/simonw/sqlite-utils/issues/413) sqlite-utils 140912432    
64414802 https://github.com/simonw/sqlite-utils/releases/tag/3.26 simonw 9599 RE_kwDOCGYnMM4D1uRS 3.26 main 3.26 0 0 2022-04-13T22:51:48Z 2022-04-13T22:53:36Z - New `errors=r.IGNORE/r.SET_NULL` parameter for the `r.parsedatetime()` and `r.parsedate()` [convert recipes](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-convert-recipes). ([#416](https://github.com/simonw/sqlite-utils/issues/416)) - Fixed a bug where `--multi` could not be used in combination with `--dry-run` for the [convert](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-convert) command. ([#415](https://github.com/simonw/sqlite-utils/issues/415)) - New documentation: [Using a convert() function to execute initialization](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-convert-complex). ([#420](https://github.com/simonw/sqlite-utils/issues/420)) - More robust detection for whether or not `deterministic=True` is supported. ([#425](https://github.com/simonw/sqlite-utils/issues/425)) sqlite-utils 140912432    
65833874 https://github.com/simonw/sqlite-utils/releases/tag/3.26.1 simonw 9599 RE_kwDOCGYnMM4D7IuS 3.26.1 main 3.26.1 0 0 2022-05-02T18:17:19Z 2022-05-02T18:18:01Z - Now depends on [click-default-group-wheel](https://github.com/simonw/click-default-group-wheel), a pure Python wheel package. This means you can install and use this package with [Pyodide](https://pyodide.org/), which can run Python entirely in your browser using WebAssembly. ([#429](https://github.com/simonw/sqlite-utils/pull/429)) Try that out using the [Pyodide REPL](https://pyodide.org/en/stable/console.html): ```pycon >>> import micropip >>> await micropip.install("sqlite-utils") >>> import sqlite_utils >>> db = sqlite_utils.Database(memory=True) >>> list(db.query("select 3 * 5")) [{'3 * 5': 15}] ``` sqlite-utils 140912432 {"url": "https://api.github.com/repos/simonw/sqlite-utils/releases/65833874/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 1, "eyes": 0}  

Next page

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [releases] (
   [html_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [author] INTEGER REFERENCES [users]([id]),
   [node_id] TEXT,
   [tag_name] TEXT,
   [target_commitish] TEXT,
   [name] TEXT,
   [draft] INTEGER,
   [prerelease] INTEGER,
   [created_at] TEXT,
   [published_at] TEXT,
   [body] TEXT,
   [repo] INTEGER REFERENCES [repos]([id])
, [reactions] TEXT, [mentions_count] INTEGER);
CREATE INDEX [idx_releases_repo]
    ON [releases] ([repo]);
CREATE INDEX [idx_releases_author]
    ON [releases] ([author]);
Powered by Datasette · Queries took 157.741ms