github
html_url | id | node_id | tag_name | target_commitish | name | draft | author | prerelease | created_at | published_at | body | repo | reactions |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/simonw/datasette/releases/tag/0.59.3 | 53781549 | RE_kwDOBm6k_c4DNKQt | 0.59.3 | main | 0.59.3 | 0 | 9599 | 0 | 2021-11-20T23:40:21Z | 2021-11-20T23:41:33Z | - Fixed numerous bugs when running Datasette [behind a proxy](https://docs.datasette.io/en/stable/deploying.html#deploying-proxy) with a prefix URL path using the [base_url](https://docs.datasette.io/en/stable/settings.html#setting-base-url) setting. A live demo of this mode is now available at [datasette-apache-proxy-demo.datasette.io/prefix/](https://datasette-apache-proxy-demo.datasette.io/prefix/). ([#1519](https://github.com/simonw/datasette/issues/1519), [#838](https://github.com/simonw/datasette/issues/838)) - `?column__arraycontains=` and `?column__arraynotcontains=` table parameters now also work against SQL views. ([#448](https://github.com/simonw/datasette/issues/448)) - `?_facet_array=column` no longer returns incorrect counts if columns contain the same value more than once. | 107914493 | |
https://github.com/simonw/datasette/releases/tag/0.59.4 | 54295399 | RE_kwDOBm6k_c4DPHtn | 0.59.4 | main | 0.59.4 | 0 | 9599 | 0 | 2021-11-30T06:45:37Z | 2021-11-30T06:50:48Z | - Fixed bug where columns with a leading underscore could not be removed from the interactive filters list. ([#1527](https://github.com/simonw/datasette/issues/1527)) - Fixed bug where columns with a leading underscore were not correctly linked to by the "Links from other tables" interface on the row page. ([#1525](https://github.com/simonw/datasette/issues/1525)) - Upgraded dependencies `aiofiles`, `black` and `janus`. | 107914493 | |
https://github.com/simonw/datasette/releases/tag/0.60a0 | 55569404 | RE_kwDOBm6k_c4DT-v8 | 0.60a0 | main | 0.60a0 | 0 | 9599 | 1 | 2021-12-17T19:13:51Z | 2021-12-17T19:15:38Z | - New plugin hook: [filters_from_request(request, database, table, datasette)](https://docs.datasette.io/en/latest/plugin_hooks.html#plugin-hook-filters-from-request), which runs on the table page and can be used to support new custom query string parameters that modify the SQL query. ([#473](https://github.com/simonw/datasette/issues/473)) - The number of unique values in a facet is now always displayed. Previously it was only displayed if the user specified `?_facet_size=max`. ([#1556](https://github.com/simonw/datasette/issues/1556)) - Fixed bug where `?_facet_array=tags&_facet=tags` would only display one of the two selected facets. ([#625](https://github.com/simonw/datasette/issues/625)) - Facets of type `date` or `array` can now be configured in `metadata.json`, see [Facets in metadata.json](https://docs.datasette.io/en/latest/facets.html#facets-metadata). Thanks, David Larlet. ([#1552](https://github.com/simonw/datasette/issues/1552)) - New `?_nosuggest=1` parameter for table views, which disables facet suggestion. ([#1557](https://github.com/simonw/datasette/issues/1557)) - Label columns detected for foreign keys are now case-insensitive, so `Name` or `TITLE` will be detected in the same way as `name` or `title`. ([#1544](https://github.com/simonw/datasette/issues/1544)) - The query string variables exposed by `request.args` will now include blank strings for arguments such as `foo` in `?foo=&bar=1` rather than ignoring those parameters entirely. ([#1551](https://github.com/simonw/datasette/issues/1551)) | 107914493 | |
https://github.com/simonw/datasette/releases/tag/0.60a1 | 55633923 | RE_kwDOBm6k_c4DUOgD | 0.60a1 | main | 0.60a1 | 0 | 9599 | 1 | 2021-12-19T22:08:10Z | 2021-12-19T22:11:16Z | - Database write connections now execute the [prepare_connection(conn, database, datasette)](https://docs.datasette.io/en/latest/plugin_hooks.html#plugin-hook-prepare-connection) plugin hook. ([#1564](https://github.com/simonw/datasette/issues/1564)) - The `Datasette()` constructor no longer requires the `files=` argument, and is now documented at [Datasette class](https://docs.datasette.io/en/latest/internals.html#internals-datasette). ([#1563](https://github.com/simonw/datasette/issues/1563)) - The tracing feature now traces write queries, not just read queries. ([#1568](https://github.com/simonw/datasette/issues/1568)) - Added two methods for writing to the database: [await db.execute_write_script(sql, block=False)](https://docs.datasette.io/en/latest/internals.html#database-execute-write-script) and [await db.execute_write_many(sql, params_seq, block=False)](https://docs.datasette.io/en/latest/internals.html#database-execute-write-many). ([#1570](https://github.com/simonw/datasette/issues/1570)) - Made several performance improvements to the database schema introspection code that runs when Datasette first starts up. ([#1555](https://github.com/simonw/datasette/issues/1555)) - Fixed bug where writable canned queries could not be used with custom templates. ([#1547](https://github.com/simonw/datasette/issues/1547)) | 107914493 | |
https://github.com/simonw/datasette/releases/tag/0.60 | 57068381 | RE_kwDOBm6k_c4DZstd | 0.60 | main | 0.60 | 0 | 9599 | 0 | 2022-01-14T01:36:51Z | 2022-01-14T01:41:28Z | ### Plugins and internals - New plugin hook: [filters_from_request(request, database, table, datasette)](https://docs.datasette.io/en/stable/plugin_hooks.html#plugin-hook-filters-from-request), which runs on the table page and can be used to support new custom query string parameters that modify the SQL query. ([#473](https://github.com/simonw/datasette/issues/473)) - Added two additional methods for writing to the database: [await db.execute_write_script(sql, block=True)](https://docs.datasette.io/en/stable/internals.html#database-execute-write-script) and [await db.execute_write_many(sql, params_seq, block=True)](https://docs.datasette.io/en/stable/internals.html#database-execute-write-many). ([#1570](https://github.com/simonw/datasette/issues/1570)) - The [db.execute_write()](https://docs.datasette.io/en/stable/internals.html#database-execute-write) internal method now defaults to blocking until the write operation has completed. Previously it defaulted to queuing the write and then continuing to run code while the write was in the queue. ([#1579](https://github.com/simonw/datasette/issues/1579)) - Database write connections now execute the [prepare_connection(conn, database, datasette)](https://docs.datasette.io/en/stable/plugin_hooks.html#plugin-hook-prepare-connection) plugin hook. ([#1564](https://github.com/simonw/datasette/issues/1564)) - The `Datasette()` constructor no longer requires the `files=` argument, and is now documented at [Datasette class](https://docs.datasette.io/en/stable/internals.html#internals-datasette). ([#1563](https://github.com/simonw/datasette/issues/1563)) - The tracing feature now traces write queries, not just read queries. ([#1568](https://github.com/simonw/datasette/issues/1568)) - The query string variables exposed by `request.args` will now include blank strings for arguments such as `foo` in `?foo=&bar=1` rather than ignoring those parameters entirely. ([#1551](https://github.com/simonw/datasette/issues/1551)) ### Faceting - The number of uni… | 107914493 | |
https://github.com/simonw/datasette/releases/tag/0.60.1 | 57629048 | RE_kwDOBm6k_c4Db1l4 | 0.60.1 | 0.60.x | 0.60.1 | 0 | 9599 | 0 | 2022-01-21T02:08:20Z | 2022-01-21T02:12:54Z | - Fixed a bug where installation on Python 3.6 stopped working due to a change to an underlying dependency. This release can now be installed on Python 3.6, but is the last release of Datasette that will support anything less than Python 3.7. ([#1609](https://github.com/simonw/datasette/issues/1609)) | 107914493 | { "url": "https://api.github.com/repos/simonw/datasette/releases/57629048/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
https://github.com/simonw/datasette/releases/tag/0.60.2 | 58950482 | RE_kwDOBm6k_c4Dg4NS | 0.60.2 | 0.60.x | 0.60.2 | 0 | 9599 | 0 | 2022-02-07T23:42:59Z | 2022-02-07T23:49:38Z | - Fixed a bug where Datasette would open the same file twice with two different database names if you ran `datasette file.db file.db`. ([#1632](https://github.com/simonw/datasette/issues/1632)) | 107914493 | { "url": "https://api.github.com/repos/simonw/datasette/releases/58950482/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 1, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
https://github.com/simonw/datasette/releases/tag/0.61a0 | 62259800 | RE_kwDOBm6k_c4DtgJY | 0.61a0 | main | 0.61a0 | 0 | 9599 | 1 | 2022-03-20T01:14:40Z | 2022-03-20T01:16:41Z | - Removed hashed URL mode from Datasette. The new `datasette-hashed-urls` plugin can be used to achieve the same result, see [datasette-hashed-urls](https://docs.datasette.io/en/latest/performance.html#performance-hashed-urls) for details. ([#1661](https://github.com/simonw/datasette/issues/1661)) - Databases can now have a custom path within the Datasette instance that is indpendent of the database name, using the `db.route` property. ([#1668](https://github.com/simonw/datasette/issues/1668)) - URLs within Datasette now use a different encoding scheme for tables or databases that include "special" characters outside of the range of `a-zA-Z0-9_-`. This scheme is explained here: [Tilde encoding](https://docs.datasette.io/en/latest/internals.html#internals-tilde-encoding). ([#1657](https://github.com/simonw/datasette/issues/1657)) - Table and row HTML pages now include a `<link rel="alternate" type="application/json+datasette" href="...">` element and return a `Link: URL; rel="alternate"; type="application/json+datasette"` HTTP header pointing to the JSON version of those pages. ([#1533](https://github.com/simonw/datasette/issues/1533)) - `Access-Control-Expose-Headers: Link` is now added to the CORS headers, allowing remote JavaScript to access that header. - Canned queries are now shown at the top of the database page, directly below the SQL editor. Previously they were shown at the bottom, below the list of tables. ([#1612](https://github.com/simonw/datasette/issues/1612)) - Datasette now has a default favicon. ([#1603](https://github.com/simonw/datasette/issues/1603)) - `sqlite_stat` tables are now hidden by default. ([#1587](https://github.com/simonw/datasette/issues/1587)) - SpatiaLite tables `data_licenses`, `KNN` and `KNN2` are now hidden by default. ([#1601](https://github.com/simonw/datasette/issues/1601)) - Python 3.6 is no longer supported. ([#1577](https://github.com/simonw/datasette/issues/1577)) - Tests now run against Python 3.11-dev. ([#1621](https://github.com/simon… | 107914493 | |
https://github.com/simonw/datasette/releases/tag/0.61 | 62608891 | RE_kwDOBm6k_c4Du1X7 | 0.61 | main | 0.61 | 0 | 9599 | 0 | 2022-03-23T18:12:26Z | 2022-03-23T18:14:36Z | In preparation for Datasette 1.0, this release includes two potentially backwards-incompatible changes. Hashed URL mode has been moved to a separate plugin, and the way Datasette generates URLs to databases and tables with special characters in their name such as `/` and `.` has changed. Datasette also now requires Python 3.7 or higher. See also the [annotated release notes](https://simonwillison.net/2022/Mar/24/datasette-061/). - URLs within Datasette now use a different encoding scheme for tables or databases that include "special" characters outside of the range of `a-zA-Z0-9_-`. This scheme is explained here: [Tilde encoding](https://docs.datasette.io/en/stable/internals.html#internals-tilde-encoding). ([#1657](https://github.com/simonw/datasette/issues/1657)) - Removed hashed URL mode from Datasette. The new `datasette-hashed-urls` plugin can be used to achieve the same result, see [datasette-hashed-urls](https://docs.datasette.io/en/stable/performance.html#performance-hashed-urls) for details. ([#1661](https://github.com/simonw/datasette/issues/1661)) - Databases can now have a custom path within the Datasette instance that is independent of the database name, using the `db.route` property. ([#1668](https://github.com/simonw/datasette/issues/1668)) - Datasette is now covered by a [Code of Conduct](https://github.com/simonw/datasette/blob/main/CODE_OF_CONDUCT.md). ([#1654](https://github.com/simonw/datasette/issues/1654)) - Python 3.6 is no longer supported. ([#1577](https://github.com/simonw/datasette/issues/1577)) - Tests now run against Python 3.11-dev. ([#1621](https://github.com/simonw/datasette/issues/1621)) - New [datasette.ensure_permissions(actor, permissions)](https://docs.datasette.io/en/stable/internals.html#datasette-ensure-permissions) internal method for checking multiple permissions at once. ([#1675](https://github.com/simonw/datasette/issues/1675)) - New [datasette.check_visibility(actor, action, resource=None)](https://docs.datasette.io/en/stable/internals.ht… | 107914493 | |
https://github.com/simonw/datasette/releases/tag/0.61.1 | 62620866 | RE_kwDOBm6k_c4Du4TC | 0.61.1 | main | 0.61.1 | 0 | 9599 | 0 | 2022-03-23T18:54:10Z | 2022-03-23T20:31:09Z | - Fixed a bug where databases with a different route from their name (as used by the [datasette-hashed-urls plugin](https://datasette.io/plugins/datasette-hashed-urls)) returned errors when executing custom SQL queries. ([#1682](https://github.com/simonw/datasette/issues/1682)) | 107914493 | |
https://github.com/simonw/datasette/releases/tag/0.62a0 | 65847605 | RE_kwDOBm6k_c4D7ME1 | 0.62a0 | main | 0.62a0 | 0 | 9599 | 1 | 2022-05-02T21:38:34Z | 2022-05-02T21:39:52Z | - Datasette now runs some SQL queries in parallel. This has limited impact on performance, see [this research issue](https://github.com/simonw/datasette/issues/1727) for details. - Datasette should now be compatible with Pyodide. ([#1733](https://github.com/simonw/datasette/issues/1733)) - `datasette publish cloudrun` has a new `--timeout` option which can be used to increase the time limit applied by the Google Cloud build environment. Thanks, Tim Sherratt. ([#1717](https://github.com/simonw/datasette/pull/1717)) - Spaces in database names are now encoded as `+` rather than `~20`. ([#1701](https://github.com/simonw/datasette/issues/1701)) - `<Binary: 2427344 bytes>` is now displayed as `<Binary: 2,427,344 bytes>` and is accompanied by tooltip showing "2.3MB". ([#1712](https://github.com/simonw/datasette/issues/1712)) - Don't show the facet option in the cog menu if faceting is not allowed. ([#1683](https://github.com/simonw/datasette/issues/1683)) - Code examples in the documentation are now all formatted using Black. ([#1718](https://github.com/simonw/datasette/issues/1718)) - `Request.fake()` method is now documented, see [Request object](https://docs.datasette.io/en/latest/internals.html#internals-request). | 107914493 | |
https://github.com/simonw/datasette/releases/tag/0.62a1 | 72184309 | RE_kwDOBm6k_c4ETXH1 | 0.62a1 | main | 0.62a1 | 0 | 9599 | 1 | 2022-07-18T01:06:37Z | 2022-07-18T01:09:05Z | - New plugin hook: [handle_exception()](https://docs.datasette.io/en/stable/plugin_hooks.html#plugin-hook-handle-exception), for custom handling of exceptions caught by Datasette. ([#1770](https://github.com/simonw/datasette/issues/1770)) - The [render_cell()](https://docs.datasette.io/en/stable/plugin_hooks.html#plugin-hook-render-cell) plugin hook is now also passed a `row` argument, representing the `sqlite3.Row` object that is being rendered. ([#1300](https://github.com/simonw/datasette/issues/1300)) - New `--nolock` option for ignoring file locks when opening read-only databases. ([#1744](https://github.com/simonw/datasette/issues/1744)) - Documentation now uses the [Furo](https://github.com/pradyunsg/furo) Sphinx theme. ([#1746](https://github.com/simonw/datasette/issues/1746)) - Datasette now has a [Discord community](https://discord.gg/ktd74dm5mw). - Database file downloads now implement conditional GET using ETags. ([#1739](https://github.com/simonw/datasette/issues/1739)) - Examples in the documentation now include a copy-to-clipboard button. ([#1748](https://github.com/simonw/datasette/issues/1748)) - HTML for facet results and suggested results has been extracted out into new templates `_facet_results.html` and `_suggested_facets.html`. Thanks, M. Nasimul Haque. ([#1759](https://github.com/simonw/datasette/pull/1759)) | 107914493 | |
https://github.com/simonw/datasette/releases/tag/0.62 | 74385093 | RE_kwDOBm6k_c4EbwbF | 0.62 | main | 0.62 | 0 | 9599 | 0 | 2022-08-14T17:32:42Z | 2022-08-14T17:43:05Z | Datasette can now run entirely in your browser using WebAssembly. Try out [Datasette Lite](https://lite.datasette.io/), take a look [at the code](https://github.com/simonw/datasette-lite) or read more about it in [Datasette Lite: a server-side Python web application running in a browser](https://simonwillison.net/2022/May/4/datasette-lite/). Datasette now has a [Discord community](https://discord.gg/ktd74dm5mw) for questions and discussions about Datasette and its ecosystem of projects. ## Features - Datasette is now compatible with [Pyodide](https://pyodide.org/). This is the enabling technology behind [Datasette Lite](https://lite.datasette.io/). ([#1733](https://github.com/simonw/datasette/issues/1733)) - Database file downloads now implement conditional GET using ETags. ([#1739](https://github.com/simonw/datasette/issues/1739)) - HTML for facet results and suggested results has been extracted out into new templates `_facet_results.html` and `_suggested_facets.html`. Thanks, M. Nasimul Haque. ([#1759](https://github.com/simonw/datasette/pull/1759)) - Datasette now runs some SQL queries in parallel. This has limited impact on performance, see [this research issue](https://github.com/simonw/datasette/issues/1727) for details. - New `--nolock` option for ignoring file locks when opening read-only databases. ([#1744](https://github.com/simonw/datasette/issues/1744)) - Spaces in the database names in URLs are now encoded as `+` rather than `~20`. ([#1701](https://github.com/simonw/datasette/issues/1701)) - `<Binary: 2427344 bytes>` is now displayed as `<Binary: 2,427,344 bytes>` and is accompanied by tooltip showing "2.3MB". ([#1712](https://github.com/simonw/datasette/issues/1712)) - The base Docker image used by `datasette publish cloudrun`, `datasette package` and the [official Datasette image](https://hub.docker.com/datasetteproject/datasette) has been upgraded to `3.10.6-slim-bullseye`. ([#1768](https://github.com/simonw/datasette/issues/1768)) - Canned writable queries again… | 107914493 | { "url": "https://api.github.com/repos/simonw/datasette/releases/74385093/reactions", "total_count": 2, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 2, "rocket": 0, "eyes": 0 } |
https://github.com/simonw/datasette/releases/tag/0.63a0 | 78197386 | RE_kwDOBm6k_c4EqTKK | 0.63a0 | main | 0.63a0 | 0 | 9599 | 1 | 2022-09-26T21:14:25Z | 2022-09-26T21:56:30Z | - The [prepare_jinja2_environment(env, datasette)](https://docs.datasette.io/en/latest/plugin_hooks.html#plugin-hook-prepare-jinja2-environment) plugin hook now accepts an optional `datasette` argument. Hook implementations can also now return an `async` function which will be awaited automatically. ([#1809](https://github.com/simonw/datasette/issues/1809)) - `--load-extension` option now supports entrypoints. Thanks, Alex Garcia. ([#1789](https://github.com/simonw/datasette/pull/1789)) - New tutorial: [Cleaning data with sqlite-utils and Datasette](https://datasette.io/tutorials/clean-data). - Facet size can now be set per-table with the new `facet_size` table metadata option. ([#1804](https://github.com/simonw/datasette/issues/1804)) - `truncate_cells_html` setting now also affects long URLs in columns. ([#1805](https://github.com/simonw/datasette/issues/1805)) - `Database(is_mutable=)` now defaults to `True`. ([#1808](https://github.com/simonw/datasette/issues/1808)) - Non-JavaScript textarea now increases height to fit the SQL query. ([#1786](https://github.com/simonw/datasette/issues/1786)) - More detailed command descriptions on the [CLI reference](https://docs.datasette.io/en/latest/cli-reference.html#cli-reference) page. ([#1787](https://github.com/simonw/datasette/issues/1787)) - Datasette no longer enforces upper bounds on its depenedencies. ([#1800](https://github.com/simonw/datasette/issues/1800)) - Facets are now displayed with better line-breaks in long values. Thanks, Daniel Rech. ([#1794](https://github.com/simonw/datasette/pull/1794)) - The `settings.json` file used in [Configuration directory mode](https://docs.datasette.io/en/latest/settings.html#config-dir) is now validated on startup. ([#1816](https://github.com/simonw/datasette/issues/1816)) | 107914493 | |
https://github.com/simonw/datasette/releases/tag/0.63a1 | 80750406 | RE_kwDOBm6k_c4E0CdG | 0.63a1 | main | 0.63a1 | 0 | 9599 | 1 | 2022-10-24T03:07:09Z | 2022-10-24T03:11:47Z | - SQL query is now re-displayed when terminated with a time limit error. ([#1819](https://github.com/simonw/datasette/issues/1819)) - New documentation on [Running Datasette using OpenRC](https://docs.datasette.io/en/latest/deploying.html#deploying-openrc) - thanks, Adam Simpson. ([#1825](https://github.com/simonw/datasette/pull/1825)) - The [inspect data](https://docs.datasette.io/en/latest/performance.html#performance-inspect) mechanism is now used to speed up server startup - thanks, Forest Gregg. ([#1834](https://github.com/simonw/datasette/issues/1834)) - In [Configuration directory mode](https://docs.datasette.io/en/latest/settings.html#config-dir) databases with filenames ending in `.sqlite` or `.sqlite3` are now automatically added to the Datasette instance. ([#1646](https://github.com/simonw/datasette/issues/1646)) - Breadcrumb navigation display now respects the current user's permissions. ([#1831](https://github.com/simonw/datasette/issues/1831)) - Screenshots in the documentation are now maintained using [shot-scraper](https://shot-scraper.datasette.io/), as described in [Automating screenshots for the Datasette documentation using shot-scraper](https://simonwillison.net/2022/Oct/14/automating-screenshots/). ([#1844](https://github.com/simonw/datasette/issues/1844)) - The [datasette.check_visibility()](https://docs.datasette.io/en/latest/internals.html#datasette-check-visibility) method now accepts an optional `permissions=` list, allowing it to take multiple permissions into account at once when deciding if something should be shown as public or private. This has been used to correctly display padlock icons in more places in the Datasette interface. ([#1829](https://github.com/simonw/datasette/issues/1829)) | 107914493 | { "url": "https://api.github.com/repos/simonw/datasette/releases/80750406/reactions", "total_count": 2, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 2, "rocket": 0, "eyes": 0 } |
https://github.com/simonw/datasette/releases/tag/0.63 | 81262417 | RE_kwDOBm6k_c4E1_dR | 0.63 | main | 0.63 | 0 | 9599 | 0 | 2022-10-27T22:11:26Z | 2022-10-27T22:13:32Z | See [Datasette 0.63: The annotated release notes](https://simonwillison.net/2022/Oct/27/datasette-0-63/) for more background on the changes in this release. ## Features - Now tested against Python 3.11. Docker containers used by `datasette publish` and `datasette package` both now use that version of Python. ([#1853](https://github.com/simonw/datasette/issues/1853)) - `--load-extension` option now supports entrypoints. Thanks, Alex Garcia. ([#1789](https://github.com/simonw/datasette/pull/1789)) - Facet size can now be set per-table with the new `facet_size` table metadata option. ([#1804](https://github.com/simonw/datasette/issues/1804)) - The [truncate_cells_html](https://docs.datasette.io/en/stable/settings.html#setting-truncate-cells-html) setting now also affects long URLs in columns. ([#1805](https://github.com/simonw/datasette/issues/1805)) - The non-JavaScript SQL editor textarea now increases height to fit the SQL query. ([#1786](https://github.com/simonw/datasette/issues/1786)) - Facets are now displayed with better line-breaks in long values. Thanks, Daniel Rech. ([#1794](https://github.com/simonw/datasette/pull/1794)) - The `settings.json` file used in [Configuration directory mode](https://docs.datasette.io/en/stable/settings.html#config-dir) is now validated on startup. ([#1816](https://github.com/simonw/datasette/issues/1816)) - SQL queries can now include leading SQL comments, using `/* ... */` or `-- ...` syntax. Thanks, Charles Nepote. ([#1860](https://github.com/simonw/datasette/issues/1860)) - SQL query is now re-displayed when terminated with a time limit error. ([#1819](https://github.com/simonw/datasette/issues/1819)) - The [inspect data](https://docs.datasette.io/en/stable/performance.html#performance-inspect) mechanism is now used to speed up server startup - thanks, Forest Gregg. ([#1834](https://github.com/simonw/datasette/issues/1834)) - In [Configuration directory mode](https://docs.datasette.io/en/stable/settings.html#config-dir) databases with filenames ending in `.s… | 107914493 | { "url": "https://api.github.com/repos/simonw/datasette/releases/81262417/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 1, "rocket": 0, "eyes": 0 } |
https://github.com/simonw/datasette/releases/tag/0.63.1 | 82765509 | RE_kwDOBm6k_c4E7ubF | 0.63.1 | main | 0.63.1 | 0 | 9599 | 0 | 2022-11-11T07:01:20Z | 2022-11-11T07:02:36Z | - Fixed a bug where Datasette's table filter form would not redirect correctly when run behind a proxy using the [base_url](https://docs.datasette.io/en/stable/settings.html#setting-base-url) setting. ([#1883](https://github.com/simonw/datasette/issues/1883)) - SQL query is now shown wrapped in a `<textarea>` if a query exceeds a time limit. ([#1876](https://github.com/simonw/datasette/issues/1876)) - Fixed an intermittent "Too many open files" error while running the test suite. ([#1843](https://github.com/simonw/datasette/issues/1843)) - New [db.close()](https://docs.datasette.io/en/stable/internals.html#database-close) internal method. | 107914493 | { "url": "https://api.github.com/repos/simonw/datasette/releases/82765509/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
https://github.com/simonw/datasette/releases/tag/0.63.2 | 83624627 | RE_kwDOBm6k_c4E_AKz | 0.63.2 | 0.63.x | 0.63.2 | 0 | 9599 | 0 | 2022-11-19T00:53:05Z | 2022-11-19T00:58:27Z | - Fixed a bug in `datasette publish heroku` where deployments failed due to an older version of Python being requested. ([#1905](https://github.com/simonw/datasette/issues/1905)) - New `datasette publish heroku --generate-dir <dir>` option for generating a Heroku deployment directory without deploying it. | 107914493 | |
https://github.com/simonw/datasette/releases/tag/1.0a0 | 84496148 | RE_kwDOBm6k_c4FCU8U | 1.0a0 | main | 1.0a0 | 0 | 9599 | 1 | 2022-11-29T19:57:54Z | 2022-11-29T19:58:55Z | This first alpha release of Datasette 1.0 introduces a brand new collection of APIs for writing to the database ([#1850](https://github.com/simonw/datasette/issues/1850)), as well as a new API token mechanism baked into Datasette core. Previously, API tokens have only been supported by installing additional plugins. This is very much a preview: expect many more backwards incompatible API changes prior to the full 1.0 release. Feedback enthusiastically welcomed, either through [issue comments](https://github.com/simonw/datasette/issues/1850) or via the [Datasette Discord](https://datasette.io/discord) community. ### Signed API tokens - New `/-/create-token` page allowing authenticated users to create signed API tokens that can act on their behalf, see [API Tokens](https://docs.datasette.io/en/1.0-dev/authentication.html#createtokenview). ([#1852](https://github.com/simonw/datasette/issues/1852)) - New `datasette create-token` command for creating tokens from the command line: [datasette create-token](https://docs.datasette.io/en/1.0-dev/authentication.html#authentication-cli-create-token). - New [allow_signed_tokens](https://docs.datasette.io/en/1.0-dev/settings.html#setting-allow-signed-tokens) setting which can be used to turn off signed token support. ([#1856](https://github.com/simonw/datasette/issues/1856)) - New [max_signed_tokens_ttl](https://docs.datasette.io/en/1.0-dev/settings.html#setting-max-signed-tokens-ttl) setting for restricting the maximum allowed duration of a signed token. ([#1858](https://github.com/simonw/datasette/issues/1858)) ### Write API - New API explorer at `/-/api` for trying out the API. ([#1871](https://github.com/simonw/datasette/issues/1871)) - `/db/-/create` API for [Creating a table](https://docs.datasette.io/en/1.0-dev/json_api.html#tablecreateview). ([#1882](https://github.com/simonw/datasette/issues/1882)) - `/db/table/-/insert` API for [Inserting rows](https://docs.datasette.io/en/1.0-dev/json_api.html#tableinsertview). ([#1851](https://github.com/simo… | 107914493 | { "url": "https://api.github.com/repos/simonw/datasette/releases/84496148/reactions", "total_count": 2, "+1": 0, "-1": 0, "laugh": 0, "hooray": 2, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
https://github.com/simonw/datasette/releases/tag/1.0a1 | 84755750 | RE_kwDOBm6k_c4FDUUm | 1.0a1 | main | 1.0a1 | 0 | 9599 | 1 | 2022-12-01T21:30:39Z | 2022-12-01T21:42:45Z | - Write APIs now serve correct CORS headers if Datasette is started in `--cors` mode. See the full list of [CORS headers](https://docs.datasette.io/en/latest/json_api.html#json-api) in the documentation. ([#1922](https://github.com/simonw/datasette/issues/1922)) - Fixed a bug where the `_memory` database could be written to even though writes were not persisted. ([#1917](https://github.com/simonw/datasette/issues/1917)) - The <https://latest.datasette.io/> demo instance now includes an `ephemeral` database which can be used to test Datasette's write APIs, using the new [datasette-ephemeral-tables](https://datasette.io/plugins/datasette-ephemeral-tables) plugin to drop any created tables after five minutes. This database is only available if you sign in as the root user using the link on the homepage. ([#1915](https://github.com/simonw/datasette/issues/1915)) - Fixed a bug where hitting the write endpoints with a `GET` request returned a 500 error. It now returns a 405 (method not allowed) error instead. ([#1916](https://github.com/simonw/datasette/issues/1916)) - The list of endpoints in the API explorer now lists mutable databases first. ([#1918](https://github.com/simonw/datasette/issues/1918)) - The `"ignore": true` and `"replace": true` options for the insert API are [now documented](https://docs.datasette.io/en/latest/json_api.html#tableinsertview). ([#1924](https://github.com/simonw/datasette/issues/1924)) | 107914493 | |
https://github.com/simonw/datasette/releases/tag/1.0a2 | 86103928 | RE_kwDOBm6k_c4FIdd4 | 1.0a2 | main | 1.0a2 | 0 | 9599 | 1 | 2022-12-15T02:02:42Z | 2022-12-15T02:03:59Z | The third Datasette 1.0 alpha release adds upsert support to the JSON API, plus the ability to specify finely grained permissions when creating an API token. See [Datasette 1.0a2: Upserts and finely grained permissions](https://simonwillison.net/2022/Dec/15/datasette-1a2/) for an extended, annotated version of these release notes. - New `/db/table/-/upsert` API, [documented here](https://docs.datasette.io/en/latest/json_api.html#tableupsertview). upsert is an update-or-insert: existing rows will have specified keys updated, but if no row matches the incoming primary key a brand new row will be inserted instead. ([#1878](https://github.com/simonw/datasette/issues/1878)) - New [register_permissions(datasette)](https://docs.datasette.io/en/latest/plugin_hooks.html#plugin-register-permissions) plugin hook. Plugins can now register named permissions, which will then be listed in various interfaces that show available permissions. ([#1940](https://github.com/simonw/datasette/issues/1940)) - The `/db/-/create` API for [creating a table](https://docs.datasette.io/en/latest/json_api.html#tablecreateview) now accepts `"ignore": true` and `"replace": true` options when called with the `"rows"` property that creates a new table based on an example set of rows. This means the API can be called multiple times with different rows, setting rules for what should happen if a primary key collides with an existing row. ([#1927](https://github.com/simonw/datasette/issues/1927)) - Arbitrary permissions can now be configured at the instance, database and resource (table, SQL view or canned query) level in Datasette's [Metadata](https://docs.datasette.io/en/latest/metadata.html#metadata) JSON and YAML files. The new `"permissions"` key can be used to specify which actors should have which permissions. See [Other permissions in metadata](https://docs.datasette.io/en/latest/authentication.html#authentication-permissions-other) for details. ([#1636](https://github.com/simonw/datasette/issues/1636)) - The `/-/create-token` page ca… | 107914493 | |
https://github.com/simonw/datasette/releases/tag/0.63.3 | 86425242 | RE_kwDOBm6k_c4FJr6a | 0.63.3 | 0.63.x | 0.63.3 | 0 | 9599 | 0 | 2022-12-18T03:08:01Z | 2022-12-18T03:10:52Z | - Fixed a bug where `datasette --root`, when running in Docker, would only output the URL to sign in as root when the server shut down, not when it started up. ([#1958](https://github.com/simonw/datasette/issues/1958)) - You no longer need to ensure `await datasette.invoke_startup()` has been called in order for Datasette to start correctly serving requests - this is now handled automatically the first time the server receives a request. This fixes a bug experienced when Datasette is served directly by an ASGI application server such as Uvicorn or Gunicorn. It also fixes a bug with the [datasette-gunicorn](https://datasette.io/plugins/datasette-gunicorn) plugin. ([#1955](https://github.com/simonw/datasette/issues/1955)) | 107914493 | |
https://github.com/simonw/datasette/releases/tag/0.64 | 88331580 | RE_kwDOBm6k_c4FQ9U8 | 0.64 | 0.63.x | 0.64 | 0 | 9599 | 0 | 2023-01-09T16:37:21Z | 2023-01-09T16:49:04Z | - Datasette now **strongly recommends against allowing arbitrary SQL queries if you are using SpatiaLite**. SpatiaLite includes SQL functions that could cause the Datasette server to crash. See [SpatiaLite](https://docs.datasette.io/en/stable/spatialite.html#spatialite) for more details. - New [default_allow_sql](https://docs.datasette.io/en/stable/settings.html#setting-default-allow-sql) setting, providing an easier way to disable all arbitrary SQL execution by end users: `datasette --setting default_allow_sql off`. See also [Controlling the ability to execute arbitrary SQL](https://docs.datasette.io/en/stable/authentication.html#authentication-permissions-execute-sql). ([#1409](https://github.com/simonw/datasette/issues/1409)) - [Building a location to time zone API with SpatiaLite](https://datasette.io/tutorials/spatialite) is a new Datasette tutorial showing how to safely use SpatiaLite to create a location to time zone API. - New documentation about [how to debug problems loading SQLite extensions](https://docs.datasette.io/en/stable/installation.html#installation-extensions). The error message shown when an extension cannot be loaded has also been improved. ([#1979](https://github.com/simonw/datasette/issues/1979)) - Fixed an accessibility issue: the `<select>` elements in the table filter form now show an outline when they are currently focused. ([#1771](https://github.com/simonw/datasette/issues/1771)) | 107914493 | |
https://github.com/simonw/datasette/releases/tag/0.64.1 | 88623648 | RE_kwDOBm6k_c4FSEog | 0.64.1 | 0.64.x | 0.64.1 | 0 | 9599 | 0 | 2023-01-11T18:21:37Z | 2023-01-11T18:27:56Z | - Documentation now links to a current source of information for installing Python 3. ([#1987](https://github.com/simonw/datasette/issues/1987)) - Incorrectly calling the Datasette constructor using `Datasette("path/to/data.db")` instead of `Datasette(["path/to/data.db"])` now returns a useful error message. ([#1985](https://github.com/simonw/datasette/issues/1985)) | 107914493 | |
https://github.com/simonw/datasette/releases/tag/0.64.2 | 94985654 | RE_kwDOBm6k_c4FqV22 | 0.64.2 | 0.64.x | 0.64.2 | 0 | 9599 | 0 | 2023-03-08T20:41:13Z | 2023-03-08T20:46:27Z | - Fixed a bug with `datasette publish cloudrun` where deploys all used the same Docker image tag. This was mostly inconsequential as the service is deployed as soon as the image has been pushed to the registry, but could result in the incorrect image being deployed if two different deploys for two separate services ran at exactly the same time. [#2036](https://github.com/simonw/datasette/issues/2036) | 107914493 | { "url": "https://api.github.com/repos/simonw/datasette/releases/94985654/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
https://github.com/simonw/datasette/releases/tag/0.64.3 | 101136455 | RE_kwDOBm6k_c4GBzhH | 0.64.3 | 0.64.x | 0.64.3 | 0 | 9599 | 0 | 2023-04-27T14:55:25Z | 2023-04-27T15:00:27Z | - Added `pip` and `setuptools` as explicit dependencies. This fixes a bug where Datasette could not be installed using [Rye](https://github.com/mitsuhiko/rye). ([#2065](https://github.com/simonw/datasette/issues/2065)) | 107914493 | { "url": "https://api.github.com/repos/simonw/datasette/releases/101136455/reactions", "total_count": 3, "+1": 1, "-1": 0, "laugh": 0, "hooray": 2, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
https://github.com/simonw/datasette/releases/tag/1.0a3 | 115813784 | RE_kwDOBm6k_c4G5y2Y | 1.0a3 | main | 1.0a3 | 0 | 9599 | 1 | 2023-08-09T19:13:11Z | 2023-08-09T19:17:26Z | This alpha release previews the updated design for Datasette's default JSON API. ([#782](https://github.com/simonw/datasette/issues/782)) The new [default JSON representation](https://docs.datasette.io/en/1.0a3/json_api.html#json-api-default) for both table pages (`/dbname/table.json`) and arbitrary SQL queries (`/dbname.json?sql=...`) is now shaped like this: ```json { "ok": true, "rows": [ { "id": 3, "name": "Detroit" }, { "id": 2, "name": "Los Angeles" }, { "id": 4, "name": "Memnonia" }, { "id": 1, "name": "San Francisco" } ], "truncated": false } ``` Tables will include an additional `"next"` key for pagination, which can be passed to `?_next=` to fetch the next page of results. The various `?_shape=` options continue to work as before - see [Different shapes](https://docs.datasette.io/en/1.0a3/json_api.html#json-api-shapes) for details. A new `?_extra=` mechanism is available for tables, but has not yet been stabilized or documented. Details on that are available in [#262](https://github.com/simonw/datasette/issues/262). ### Smaller changes - Datasette documentation now shows YAML examples for [Metadata](https://docs.datasette.io/en/1.0a3/metadata.html#metadata) by default, with a tab interface for switching to JSON. ([#1153](https://github.com/simonw/datasette/issues/1153)) - [register_output_renderer(datasette)](https://docs.datasette.io/en/1.0a3/plugin_hooks.html#plugin-register-output-renderer) plugins now have access to `error` and `truncated` arguments, allowing them to display error messages and take into account truncated results. ([#2130](https://github.com/simonw/datasette/issues/2130)) - `render_cell()` plugin hook now also supports an optional `request` argument. ([#2007](https://github.com/simonw/datasette/issues/2007)) - New `Justfile` to support development workflows for Datasette using [Just](https://github.com/casey/just). - `datasette.render_template()` can now… | 107914493 | { "url": "https://api.github.com/repos/simonw/datasette/releases/115813784/reactions", "total_count": 3, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 3, "eyes": 0 } |
https://github.com/simonw/datasette/releases/tag/1.0a4 | 118245443 | RE_kwDOBm6k_c4HDEhD | 1.0a4 | main | 1.0a4 | 0 | 9599 | 1 | 2023-08-22T17:10:01Z | 2023-08-22T17:13:26Z | This alpha fixes a security issue with the `/-/api` API explorer. On authenticated Datasette instances (instances protected using plugins such as [datasette-auth-passwords](https://datasette.io/plugins/datasette-auth-passwords)) the API explorer interface could reveal the names of databases and tables within the protected instance. The data stored in those tables was not revealed. For more information and workarounds, read [the security advisory](https://github.com/simonw/datasette/security/advisories/GHSA-7ch3-7pp7-7cpq). The issue has been present in every previous alpha version of Datasette 1.0: versions 1.0a0, 1.0a1, 1.0a2 and 1.0a3. Also in this alpha: - The new `datasette plugins --requirements` option outputs a list of currently installed plugins in Python `requirements.txt` format, useful for duplicating that installation elsewhere. ([#2133](https://github.com/simonw/datasette/issues/2133)) - [Writable canned queries](https://docs.datasette.io/en/latest/sql_queries.html#canned-queries-writable) can now define a `on_success_message_sql` field in their configuration, containing a SQL query that should be executed upon successful completion of the write operation in order to generate a message to be shown to the user. ([#2138](https://github.com/simonw/datasette/issues/2138)) - The automatically generated border color for a database is now shown in more places around the application. ([#2119](https://github.com/simonw/datasette/issues/2119)) - Every instance of example shell script code in the documentation should now include a working copy button, free from additional syntax. ([#2140](https://github.com/simonw/datasette/issues/2140)) | 107914493 | { "url": "https://api.github.com/repos/simonw/datasette/releases/118245443/reactions", "total_count": 3, "+1": 0, "-1": 0, "laugh": 0, "hooray": 2, "confused": 0, "heart": 1, "rocket": 0, "eyes": 0 } |
https://github.com/simonw/datasette/releases/tag/1.0a5 | 119112633 | RE_kwDOBm6k_c4HGYO5 | 1.0a5 | main | 1.0a5 | 0 | 9599 | 1 | 2023-08-29T17:17:54Z | 2023-08-29T17:19:35Z | - When restrictions are applied to [API tokens](https://docs.datasette.io/en/1.0a5/authentication.html#createtokenview), those restrictions now behave slightly differently: applying the `view-table` restriction will imply the ability to `view-database` for the database containing that table, and both `view-table` and `view-database` will imply `view-instance`. Previously you needed to create a token with restrictions that explicitly listed `view-instance` and `view-database` and `view-table` in order to view a table without getting a permission denied error. ([#2102](https://github.com/simonw/datasette/issues/2102)) - New `datasette.yaml` (or `.json`) configuration file, which can be specified using `datasette -c path-to-file`. The goal here to consolidate settings, plugin configuration, permissions, canned queries, and other Datasette configuration into a single single file, separate from `metadata.yaml`. The legacy `settings.json` config file used for [Configuration directory mode](https://docs.datasette.io/en/1.0a5/settings.html#config-dir) has been removed, and `datasette.yaml` has a `"settings"` section where the same settings key/value pairs can be included. In the next future alpha release, more configuration such as plugins/permissions/canned queries will be moved to the `datasette.yaml` file. See [#2093](https://github.com/simonw/datasette/issues/2093) for more details. Thanks, Alex Garcia. - The `-s/--setting` option can now take dotted paths to nested settings. These will then be used to set or over-ride the same options as are present in the new configuration file. ([#2156](https://github.com/simonw/datasette/issues/2156)) - New `--actor '{"id": "json-goes-here"}'` option for use with `datasette --get` to treat the simulated request as being made by a specific actor, see [datasette --get](https://docs.datasette.io/en/1.0a5/cli-reference.html#cli-datasette-get). ([#2153](https://github.com/simonw/datasette/issues/2153)) - The Datasette `_internal` database has had some changes. It no longer shows u… | 107914493 | |
https://github.com/simonw/datasette/releases/tag/1.0a6 | 120375181 | RE_kwDOBm6k_c4HLMeN | 1.0a6 | main | 1.0a6 | 0 | 9599 | 1 | 2023-09-08T04:44:08Z | 2023-09-08T04:45:12Z | - New plugin hook: [actors_from_ids(datasette, actor_ids)](https://docs.datasette.io/en/latest/plugin_hooks.html#plugin-hook-actors-from-ids) and an internal method to accompany it, [await .actors_from_ids(actor_ids)](https://docs.datasette.io/en/latest/internals.html#datasette-actors-from-ids). This mechanism is intended to be used by plugins that may need to display the actor who was responsible for something managed by that plugin: they can now resolve the recorded IDs of actors into the full actor objects. ([#2181](https://github.com/simonw/datasette/issues/2181)) - `DATASETTE_LOAD_PLUGINS` environment variable for [controlling which plugins](https://docs.datasette.io/en/latest/plugins.html#plugins-datasette-load-plugins) are loaded by Datasette. ([#2164](https://github.com/simonw/datasette/issues/2164)) - Datasette now checks if the user has permission to view a table linked to by a foreign key before turning that foreign key into a clickable link. ([#2178](https://github.com/simonw/datasette/issues/2178)) - The `execute-sql` permission now implies that the actor can also view the database and instance. ([#2169](https://github.com/simonw/datasette/issues/2169)) - Documentation describing a pattern for building plugins that themselves [define further hooks](https://docs.datasette.io/en/latest/writing_plugins.html#writing-plugins-extra-hooks) for other plugins. ([#1765](https://github.com/simonw/datasette/issues/1765)) - Datasette is now tested against the Python 3.12 preview. ([#2175](https://github.com/simonw/datasette/pull/2175)) | 107914493 | |
https://github.com/simonw/datasette/releases/tag/0.64.4 | 122109244 | RE_kwDOBm6k_c4HRz08 | 0.64.4 | 0.64.x | 0.64.4 | 0 | 9599 | 0 | 2023-09-21T19:28:45Z | 2023-09-21T19:43:54Z | - Fix for a crashing bug caused by viewing the table page for a named in-memory database. [#2189](https://github.com/simonw/datasette/issues/2189) | 107914493 | |
https://github.com/simonw/datasette/releases/tag/1.0a7 | 122124154 | RE_kwDOBm6k_c4HR3d6 | 1.0a7 | 1.0a.x | 1.0a7 | 0 | 9599 | 1 | 2023-09-21T22:06:19Z | 2023-09-21T22:13:27Z | - Fix for a crashing bug caused by viewing the table page for a named in-memory database. [#2189](https://github.com/simonw/datasette/issues/2189) | 107914493 | |
https://github.com/simonw/datasette/releases/tag/0.64.5 | 124182616 | RE_kwDOBm6k_c4HZuBY | 0.64.5 | 0.64.x | 0.64.5 | 0 | 9599 | 0 | 2023-10-08T16:03:37Z | 2023-10-08T16:05:20Z | - Dropped dependency on `click-default-group-wheel`, which could cause a dependency conflict. ([#2197](https://github.com/simonw/datasette/issues/2197)) | 107914493 | { "url": "https://api.github.com/repos/simonw/datasette/releases/124182616/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
https://github.com/simonw/sqlite-utils/releases/tag/0.7 | 15175633 | MDc6UmVsZWFzZTE1MTc1NjMz | 0.7 | master | 0.7 | 0 | 9599 | 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 | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/0.8 | 15208430 | MDc6UmVsZWFzZTE1MjA4NDMw | 0.8 | master | 0.8 | 0 | 9599 | 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 | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/0.9 | 15243253 | MDc6UmVsZWFzZTE1MjQzMjUz | 0.9 | master | 0.9 | 0 | 9599 | 0 | 2019-01-28T06:34:33Z | 2019-01-29T15:30:48Z | https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v0-9 | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/0.10 | 15439849 | MDc6UmVsZWFzZTE1NDM5ODQ5 | 0.10 | master | 0.10 | 0 | 9599 | 0 | 2019-02-07T05:17:52Z | 2019-02-08T05:19:33Z | https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v0-10 | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/0.11 | 15731282 | MDc6UmVsZWFzZTE1NzMxMjgy | 0.11 | master | 0.11 | 0 | 9599 | 0 | 2019-02-08T05:23:50Z | 2019-02-23T02:15:34Z | https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v0-11 | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/0.12 | 15731354 | MDc6UmVsZWFzZTE1NzMxMzU0 | 0.12 | master | 0.12 | 0 | 9599 | 0 | 2019-02-23T02:22:28Z | 2019-02-23T02:31:29Z | https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v0-12 | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/0.13 | 15739051 | MDc6UmVsZWFzZTE1NzM5MDUx | 0.13 | master | 0.13 | 0 | 9599 | 0 | 2019-02-24T06:54:43Z | 2019-02-24T07:00:14Z | https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v0-13 | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/0.14 | 15744513 | MDc6UmVsZWFzZTE1NzQ0NTEz | 0.14 | master | 0.14 | 0 | 9599 | 0 | 2019-02-24T23:11:51Z | 2019-02-24T23:15:16Z | https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v0-14 | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/1.0 | 17583581 | MDc6UmVsZWFzZTE3NTgzNTgx | 1.0 | master | 1.0 | 0 | 9599 | 0 | 2019-05-25T01:06:38Z | 2019-05-25T01:19:21Z | https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v1-0 | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/1.0.1 | 17616531 | MDc6UmVsZWFzZTE3NjE2NTMx | 1.0.1 | master | 1.0.1 | 0 | 9599 | 0 | 2019-05-28T00:50:28Z | 2019-05-28T00:51:21Z | https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v1-0-1 | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/1.1 | 17645877 | MDc6UmVsZWFzZTE3NjQ1ODc3 | 1.1 | master | 1.1 | 0 | 9599 | 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) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/1.2 | 17961871 | MDc6UmVsZWFzZTE3OTYxODcx | 1.2 | master | 1.2 | 0 | 9599 | 0 | 2019-06-13T06:39:59Z | 2019-06-13T06:42:21Z | https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v1-2 | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/1.2.1 | 18132566 | MDc6UmVsZWFzZTE4MTMyNTY2 | 1.2.1 | master | 1.2.1 | 0 | 9599 | 0 | 2019-06-21T00:01:24Z | 2019-06-21T00:06:29Z | https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v1-2-1 | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/1.2.2 | 18226656 | MDc6UmVsZWFzZTE4MjI2NjU2 | 1.2.2 | master | 1.2.2 | 0 | 9599 | 0 | 2019-06-26T04:20:55Z | 2019-06-26T04:24:33Z | https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v1-2-2 | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/1.3 | 18307928 | MDc6UmVsZWFzZTE4MzA3OTI4 | 1.3 | master | 1.3 | 0 | 9599 | 0 | 2019-06-29T06:32:36Z | 2019-06-29T06:39:32Z | https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v1-3 | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/1.6 | 18723202 | MDc6UmVsZWFzZTE4NzIzMjAy | 1.6 | master | 1.6 | 0 | 9599 | 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) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/1.7 | 18911392 | MDc6UmVsZWFzZTE4OTExMzky | 1.7 | master | 1.7 | 0 | 9599 | 0 | 2019-07-24T06:50:41Z | 2019-07-28T12:03:21Z | https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v1-7 | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/1.7.1 | 18911404 | MDc6UmVsZWFzZTE4OTExNDA0 | 1.7.1 | master | 1.7.1 | 0 | 9599 | 0 | 2019-07-28T12:00:51Z | 2019-07-28T12:05:36Z | https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v1-7-1 | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/1.8 | 19704736 | MDc6UmVsZWFzZTE5NzA0NzM2 | 1.8 | master | 1.8 | 0 | 9599 | 0 | 2019-07-28T15:41:42Z | 2019-09-03T00:45:42Z | https://sqlite-utils.readthedocs.io/en/stable/changelog.html#v1-8 | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/1.9 | 19704739 | MDc6UmVsZWFzZTE5NzA0NzM5 | 1.9 | master | 1.9 | 0 | 9599 | 0 | 2019-08-04T03:35:30Z | 2019-09-03T00:46:02Z | https://sqlite-utils.readthedocs.io/en/stable/changelog.html#v1-9 | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/1.10 | 19704743 | MDc6UmVsZWFzZTE5NzA0NzQz | 1.10 | master | 1.10 | 0 | 9599 | 0 | 2019-08-23T12:24:04Z | 2019-09-03T00:46:27Z | https://sqlite-utils.readthedocs.io/en/stable/changelog.html#v1-10 | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/1.11 | 19704889 | MDc6UmVsZWFzZTE5NzA0ODg5 | 1.11 | master | 1.11 | 0 | 9599 | 0 | 2019-09-03T00:58:41Z | 2019-09-03T01:03:27Z | https://sqlite-utils.readthedocs.io/en/stable/changelog.html#v1-11 | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/1.12 | 21276745 | MDc6UmVsZWFzZTIxMjc2NzQ1 | 1.12 | master | 1.12 | 0 | 9599 | 0 | 2019-11-04T16:28:52Z | 2019-11-07T05:00:24Z | https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v1-12 | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/1.12.1 | 21276749 | MDc6UmVsZWFzZTIxMjc2NzQ5 | 1.12.1 | master | 1.12.1 | 0 | 9599 | 0 | 2019-11-07T04:58:47Z | 2019-11-07T05:00:55Z | https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v1-12-1 | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.0 | 22509033 | MDc6UmVsZWFzZTIyNTA5MDMz | 2.0 | master | 2.0 | 0 | 9599 | 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. | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.0.1 | 22603380 | MDc6UmVsZWFzZTIyNjAzMzgw | 2.0.1 | master | 2.0.1 | 0 | 9599 | 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). | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.1 | 23274412 | MDc6UmVsZWFzZTIzMjc0NDEy | 2.1 | master | 2.1 | 0 | 9599 | 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). | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.2 | 23471014 | MDc6UmVsZWFzZTIzNDcxMDE0 | 2.2 | master | 2.2 | 0 | 9599 | 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. | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.2.1 | 23471112 | MDc6UmVsZWFzZTIzNDcxMTEy | 2.2.1 | master | 2.2.1 | 0 | 9599 | 0 | 2020-02-07T07:20:03Z | 2020-02-07T07:24:54Z | Fixed a bug where `.upsert(..., hash_id="pk")` threw an error (#84). | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.3 | 23508352 | MDc6UmVsZWFzZTIzNTA4MzUy | 2.3 | master | 2.3 | 0 | 9599 | 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) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.3.1 | 23556494 | MDc6UmVsZWFzZTIzNTU2NDk0 | 2.3.1 | master | 2.3.1 | 0 | 9599 | 0 | 2020-02-11T05:52:23Z | 2020-02-11T05:59:43Z | `table.create_index()` now works for columns that contain spaces. (#85) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.4 | 24026132 | MDc6UmVsZWFzZTI0MDI2MTMy | 2.4 | master | 2.4 | 0 | 9599 | 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) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.4.1 | 24530295 | MDc6UmVsZWFzZTI0NTMwMjk1 | 2.4.1 | master | 2.4.1 | 0 | 9599 | 0 | 2020-03-02T06:12:21Z | 2020-03-14T20:06:08Z | * `table.enable_fts()` now works with columns that contain spaces. (#90) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.4.2 | 24530387 | MDc6UmVsZWFzZTI0NTMwMzg3 | 2.4.2 | master | 2.4.2 | 0 | 9599 | 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). | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.4.3 | 24786773 | MDc6UmVsZWFzZTI0Nzg2Nzcz | 2.4.3 | master | 2.4.3 | 0 | 9599 | 0 | 2020-03-23T19:58:55Z | 2020-03-23T20:00:25Z | * Column type suggestion code is no longer confused by null values. (#94) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.4.4 | 24787721 | MDc6UmVsZWFzZTI0Nzg3NzIx | 2.4.4 | master | 2.4.4 | 0 | 9599 | 0 | 2020-03-23T20:32:09Z | 2020-03-23T20:34:18Z | * Fixed bug where columns with only null values were not correctly created. (#95) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.5 | 25436265 | MDc6UmVsZWFzZTI1NDM2MjY1 | 2.5 | master | 2.5 | 0 | 9599 | 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) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.6 | 25554617 | MDc6UmVsZWFzZTI1NTU0NjE3 | 2.6 | master | 2.6 | 0 | 9599 | 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) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.7 | 26059545 | MDc6UmVsZWFzZTI2MDU5NTQ1 | 2.7 | master | 2.7 | 0 | 9599 | 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) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.7.1 | 26096691 | MDc6UmVsZWFzZTI2MDk2Njkx | 2.7.1 | master | 2.7.1 | 0 | 9599 | 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) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.7.2 | 26107311 | MDc6UmVsZWFzZTI2MTA3MzEx | 2.7.2 | master | 2.7.2 | 0 | 9599 | 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) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.8 | 26120136 | MDc6UmVsZWFzZTI2MTIwMTM2 | 2.8 | master | 2.8 | 0 | 9599 | 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) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.9 | 26362623 | MDc6UmVsZWFzZTI2MzYyNjIz | 2.9 | master | 2.9 | 0 | 9599 | 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)) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.9.1 | 26395903 | MDc6UmVsZWFzZTI2Mzk1OTAz | 2.9.1 | master | 2.9.1 | 0 | 9599 | 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/). | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.10 | 27504516 | MDc6UmVsZWFzZTI3NTA0NTE2 | 2.10 | master | 2.10 | 0 | 9599 | 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 | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.10.1 | 27847716 | MDc6UmVsZWFzZTI3ODQ3NzE2 | 2.10.1 | master | 2.10.1 | 0 | 9599 | 0 | 2020-06-23T21:04:07Z | 2020-06-23T21:04:50Z | * Added documentation for the `table.pks` introspection property. #116 | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.11 | 28369250 | MDc6UmVsZWFzZTI4MzY5MjUw | 2.11 | master | 2.11 | 0 | 9599 | 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)) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.12 | 28975119 | MDc6UmVsZWFzZTI4OTc1MTE5 | 2.12 | master | 2.12 | 0 | 9599 | 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)) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.13 | 29096810 | MDc6UmVsZWFzZTI5MDk2ODEw | 2.13 | master | 2.13 | 0 | 9599 | 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) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.14 | 29196241 | MDc6UmVsZWFzZTI5MTk2MjQx | 2.14 | master | 2.14 | 0 | 9599 | 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. | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.14.1 | 29394982 | MDc6UmVsZWFzZTI5Mzk0OTgy | 2.14.1 | master | 2.14.1 | 0 | 9599 | 0 | 2020-08-06T06:31:11Z | 2020-08-06T06:31:48Z | - Documentation improvements | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.15 | 29529316 | MDc6UmVsZWFzZTI5NTI5MzE2 | 2.15 | master | 2.15 | 0 | 9599 | 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)) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.15.1 | 29616454 | MDc6UmVsZWFzZTI5NjE2NDU0 | 2.15.1 | main | 2.15.1 | 0 | 9599 | 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)) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.16 | 29999731 | MDc6UmVsZWFzZTI5OTk5NzMx | 2.16 | main | 2.16 | 0 | 9599 | 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)) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.16.1 | 30352225 | MDc6UmVsZWFzZTMwMzUyMjI1 | 2.16.1 | main | 2.16.1 | 0 | 9599 | 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)) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.17 | 30875333 | MDc6UmVsZWFzZTMwODc1MzMz | 2.17 | main | 2.17 | 0 | 9599 | 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()`. | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.18 | 30942758 | MDc6UmVsZWFzZTMwOTQyNzU4 | 2.18 | main | 2.18 | 0 | 9599 | 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)) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.19 | 31581701 | MDc6UmVsZWFzZTMxNTgxNzAx | 2.19 | main | 2.19 | 0 | 9599 | 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)) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.20 | 31680849 | MDc6UmVsZWFzZTMxNjgwODQ5 | 2.20 | main | 2.20 | 0 | 9599 | 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… | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.21 | 31773390 | MDc6UmVsZWFzZTMxNzczMzkw | 2.21 | main | 2.21 | 0 | 9599 | 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. | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.22 | 32688819 | MDc6UmVsZWFzZTMyNjg4ODE5 | 2.22 | main | 2.22 | 0 | 9599 | 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)) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/2.23 | 33188958 | MDc6UmVsZWFzZTMzMTg4OTU4 | 2.23 | main | 2.23 | 0 | 9599 | 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)) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/3.0a0 | 33591216 | MDc6UmVsZWFzZTMzNTkxMjE2 | 3.0a0 | main | 3.0a0 | 0 | 9599 | 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)) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/3.0 | 33615120 | MDc6UmVsZWFzZTMzNjE1MTIw | 3.0 | main | 3.0 | 0 | 9599 | 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… | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/3.1 | 35200016 | MDc6UmVsZWFzZTM1MjAwMDE2 | 3.1 | main | 3.1 | 0 | 9599 | 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)) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/3.1.1 | 35902315 | MDc6UmVsZWFzZTM1OTAyMzE1 | 3.1.1 | main | 3.1.1 | 0 | 9599 | 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. | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/3.2 | 35930040 | MDc6UmVsZWFzZTM1OTMwMDQw | 3.2 | main | 3.2 | 0 | 9599 | 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… | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/3.2.1 | 36307444 | MDc6UmVsZWFzZTM2MzA3NDQ0 | 3.2.1 | main | 3.2.1 | 0 | 9599 | 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)) | 140912432 |