html_url,id,node_id,tag_name,target_commitish,name,draft,author,prerelease,created_at,published_at,body,repo,reactions https://github.com/simonw/sqlite-utils/releases/tag/3.18,53350811,RE_kwDOCGYnMM4DLhGb,3.18,main,3.18,0,9599,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/pull/330))",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}" https://github.com/simonw/sqlite-utils/releases/tag/3.19a0,53698399,RE_kwDOCGYnMM4DM19f,3.19a0,main,3.19a0,0,9599,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),140912432, 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/sqlite-utils/releases/tag/3.19,53785562,RE_kwDOCGYnMM4DNLPa,3.19,main,3.19,0,9599,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))",140912432, 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/dogsheep/github-to-sqlite/releases/tag/2.8.3,54439832,RE_kwDODFdgUs4DPq-Y,2.8.3,main,2.8.3,0,9599,0,2021-12-01T19:36:52Z,2021-12-01T19:37:19Z,- Minor documentation and inline help improvements.,207052882, 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/sqlite-utils/releases/tag/3.20,56514583,RE_kwDOCGYnMM4DXlgX,3.20,main,3.20,0,9599,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))",140912432, https://github.com/simonw/sqlite-utils/releases/tag/3.21,56788942,RE_kwDOCGYnMM4DYofO,3.21,main,3.21,0,9599,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-utils.datasette.io/en/stable/cli.html#cli-insert-files) supports two new columns: `stem` and `suffix`. ([#372](https://github.com/simonw/sqlite-utils/issues/372)) - The `--nl` import option now ignores blank lines in the input. ([#376](https://github.com/simonw/sqlite-utils/issues/376)) - Fixed bug where streaming input to the `insert` command with `--batch-size 1` would appear to only commit after several rows had been ingested, due to unnecessary input buffering. ([#364](https://github.com/simonw/sqlite-utils/issues/364))",140912432, https://github.com/simonw/sqlite-utils/releases/tag/3.22,56875206,RE_kwDOCGYnMM4DY9jG,3.22,main,3.22,0,9599,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))",140912432, 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 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)) - Facets of type `date` or `array` can now be configured in `metadata.json`, see [Facets in metadata.json](https://docs.datasette.io/en/stable/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)) - 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)) ### Other small fixes - 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)) - 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)) - Upgraded Pluggy dependency to 1.0. ([#1575](https://github.com/simonw/datasette/issues/1575)) - Now using [Plausible analytics](https://plausible.io/) for the Datasette documentation. - `explain query plan` is now allowed with varying amounts of whitespace in the query. ([#1588](https://github.com/simonw/datasette/issues/1588)) - New [CLI reference](https://docs.datasette.io/en/stable/cli-reference.html#cli-reference) page showing the output of `--help` for each of the `datasette` sub-commands. This lead to several small improvements to the help copy. ([#1594](https://github.com/simonw/datasette/issues/1594)) - Fixed bug where writable canned queries could not be used with custom templates. ([#1547](https://github.com/simonw/datasette/issues/1547)) - Improved fix for a bug where columns with a underscore prefix could result in unnecessary hidden form fields. ([#1527](https://github.com/simonw/datasette/issues/1527))",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/sqlite-utils/releases/tag/3.22.1,57980102,RE_kwDOCGYnMM4DdLTG,3.22.1,main,3.22.1,0,9599,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))",140912432, https://github.com/simonw/sqlite-utils/releases/tag/3.23,58663467,RE_kwDOCGYnMM4DfyIr,3.23,main,3.23,0,9599,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))",140912432, 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/sqlite-utils/releases/tag/3.24,59656694,RE_kwDOCGYnMM4Djkn2,3.24,main,3.24,0,9599,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))",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}" https://github.com/simonw/sqlite-utils/releases/tag/3.25,60770975,RE_kwDOCGYnMM4Dn0qf,3.25,main,3.25,0,9599,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.",140912432, https://github.com/simonw/sqlite-utils/releases/tag/3.25.1,61628678,RE_kwDOCGYnMM4DrGEG,3.25.1,main,3.25.1,0,9599,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),140912432, 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 `` 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/simonw/datasette/issues/1621)) - Fixed bug where [custom pages](https://docs.datasette.io/en/latest/custom_templates.html#custom-pages) did not work on Windows. Thanks, Robert Christie. ([#1545](https://github.com/simonw/datasette/issues/1545)) - SQL query tracing mechanism now works for queries executed in `asyncio` sub-tasks, such as those created by `asyncio.gather()`. ([#1576](https://github.com/simonw/datasette/issues/1576)) - [datasette.tracer](https://docs.datasette.io/en/latest/internals.html#internals-tracer) mechanism is now documented. - Common Datasette symbols can now be imported directly from the top-level `datasette` package, see [Import shortcuts](https://docs.datasette.io/en/latest/internals.html#internals-shortcuts). Those symbols are `Response`, `Forbidden`, `NotFound`, `hookimpl`, `actor_matches_allow`. ([#957](https://github.com/simonw/datasette/issues/957)) - `/-/versions` page now returns additional details for libraries used by SpatiaLite. ([#1607](https://github.com/simonw/datasette/issues/1607)) - Documentation now links to the [Datasette Tutorials](https://datasette.io/tutorials). - Datasette will now also look for SpatiaLite in `/opt/homebrew` - thanks, Dan Peterson. ([#1649](https://github.com/simonw/datasette/pull/1649)) - 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))",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.html#datasette-check-visibilty) internal method for checking if a user can see a resource that would otherwise be invisible to unauthenticated users. ([#1678](https://github.com/simonw/datasette/issues/1678)) - Table and row HTML pages now include a `` 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)) - SQL query tracing mechanism now works for queries executed in `asyncio` sub-tasks, such as those created by `asyncio.gather()`. ([#1576](https://github.com/simonw/datasette/issues/1576)) - [datasette.tracer](https://docs.datasette.io/en/stable/internals.html#internals-tracer) mechanism is now documented. - Common Datasette symbols can now be imported directly from the top-level `datasette` package, see [Import shortcuts](https://docs.datasette.io/en/stable/internals.html#internals-shortcuts). Those symbols are `Response`, `Forbidden`, `NotFound`, `hookimpl`, `actor_matches_allow`. ([#957](https://github.com/simonw/datasette/issues/957)) - `/-/versions` page now returns additional details for libraries used by SpatiaLite. ([#1607](https://github.com/simonw/datasette/issues/1607)) - Documentation now links to the [Datasette Tutorials](https://datasette.io/tutorials). - Datasette will now also look for SpatiaLite in `/opt/homebrew` - thanks, Dan Peterson. ([#1649](https://github.com/simonw/datasette/pull/1649)) - Fixed bug where [custom pages](https://docs.datasette.io/en/stable/custom_templates.html#custom-pages) did not work on Windows. Thanks, Robert Christie. ([#1545](https://github.com/simonw/datasette/issues/1545)) - Fixed error caused when a table had a column named `n`. ([#1228](https://github.com/simonw/datasette/issues/1228))",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/sqlite-utils/releases/tag/3.26,64414802,RE_kwDOCGYnMM4D1uRS,3.26,main,3.26,0,9599,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))",140912432, https://github.com/simonw/sqlite-utils/releases/tag/3.26.1,65833874,RE_kwDOCGYnMM4D7IuS,3.26.1,main,3.26.1,0,9599,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}] ```",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}" 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)) - `` is now displayed as `` 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/sqlite-utils/releases/tag/3.27,69481688,RE_kwDOCGYnMM4EJDTY,3.27,main,3.27,0,9599,0,2022-06-15T04:30:47Z,2022-06-15T04:34:45Z,"See also [the annotated release notes](https://simonwillison.net/2022/Jun/19/weeknotes/#sqlite-utils-3-27) for this release. - Documentation now uses the [Furo](https://github.com/pradyunsg/furo) Sphinx theme. ([#435](https://github.com/simonw/sqlite-utils/issues/435)) - Code examples in documentation now have a ""copy to clipboard"" button. ([#436](https://github.com/simonw/sqlite-utils/issues/436)) - `sqlite_utils.utils.utils.rows_from_file()` is now a documented API, see [Reading rows from a file](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-rows-from-file). ([#443](https://github.com/simonw/sqlite-utils/issues/443)) - `rows_from_file()` has two new parameters to help handle CSV files with rows that contain more values than are listed in that CSV file's headings: `ignore_extras=True` and `extras_key=""name-of-key""`. ([#440](https://github.com/simonw/sqlite-utils/issues/440)) - `sqlite_utils.utils.maximize_csv_field_size_limit()` helper function for increasing the field size limit for reading CSV files to its maximum, see [Setting the maximum CSV field size limit](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-maximize-csv-field-size-limit). ([#442](https://github.com/simonw/sqlite-utils/issues/442)) - `table.search(where=, where_args=)` parameters for adding additional `WHERE` clauses to a search query. The `where=` parameter is available on `table.search_sql(...)` as well. See [Searching with table.search()](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-fts-search). ([#441](https://github.com/simonw/sqlite-utils/issues/441)) - Fixed bug where `table.detect_fts()` and other search-related functions could fail if two FTS-enabled tables had names that were prefixes of each other. ([#434](https://github.com/simonw/sqlite-utils/issues/434))",140912432, https://github.com/simonw/sqlite-utils/releases/tag/3.28,72130482,RE_kwDOCGYnMM4ETJ-y,3.28,main,3.28,0,9599,0,2022-07-15T22:56:01Z,2022-07-15T23:02:45Z,"- New [table.duplicate(new_name)](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-duplicate) method for creating a copy of a table with a matching schema and row contents. Thanks, [David](https://github.com/davidleejy). ([#449](https://github.com/simonw/sqlite-utils/issues/449)) - New `sqlite-utils duplicate data.db table_name new_name` CLI command for [Duplicating tables](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-duplicate-table). ([#454](https://github.com/simonw/sqlite-utils/issues/454)) - `sqlite_utils.utils.rows_from_file()` is now a [documented API](https://sqlite-utils.datasette.io/en/stable/reference.html#reference-utils-rows-from-file). It can be used to read a sequence of dictionaries from a file-like object containing CSV, TSV, JSON or newline-delimited JSON. It can be passed an explicit format or can attempt to detect the format automatically. ([#443](https://github.com/simonw/sqlite-utils/issues/443)) - `sqlite_utils.utils.TypeTracker` is now a documented API for detecting the likely column types for a sequence of string rows, see [Detecting column types using TypeTracker](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-typetracker). ([#445](https://github.com/simonw/sqlite-utils/issues/445)) - `sqlite_utils.utils.chunks()` is now a documented API for [splitting an iterator into chunks](https://sqlite-utils.datasette.io/en/stable/reference.html#reference-utils-chunks). ([#451](https://github.com/simonw/sqlite-utils/issues/451)) - `sqlite-utils enable-fts` now has a `--replace` option for replacing the existing FTS configuration for a table. ([#450](https://github.com/simonw/sqlite-utils/issues/450)) - The `create-index`, `add-column` and `duplicate` commands all now take a `--ignore` option for ignoring errors should the database not be in the right state for them to operate. ([#450](https://github.com/simonw/sqlite-utils/issues/450))",140912432, 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)) - `` is now displayed as `` 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 against immutable databases now show a warning message. ([#1728](https://github.com/simonw/datasette/issues/1728)) - `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)) - `datasette publish cloudrun` has new `--min-instances` and `--max-instances` options. ([#1779](https://github.com/simonw/datasette/issues/1779)) ## Plugin hooks - 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)) - The [configuration directory](https://docs.datasette.io/en/stable/settings.html#config-dir) is now stored in `datasette.config_dir`, making it available to plugins. Thanks, Chris Amico. ([#1766](https://github.com/simonw/datasette/pull/1766)) ## Bug fixes - Don't show the facet option in the cog menu if faceting is not allowed. ([#1683](https://github.com/simonw/datasette/issues/1683)) - `?_sort` and `?_sort_desc` now work if the column that is being sorted has been excluded from the query using `?_col=` or `?_nocol=`. ([#1773](https://github.com/simonw/datasette/issues/1773)) - Fixed bug where `?_sort_desc` was duplicated in the URL every time the Apply button was clicked. ([#1738](https://github.com/simonw/datasette/issues/1738)) ## Documentation - Examples in the documentation now include a copy-to-clipboard button. ([#1748](https://github.com/simonw/datasette/issues/1748)) - Documentation now uses the [Furo](https://github.com/pradyunsg/furo) Sphinx theme. ([#1746](https://github.com/simonw/datasette/issues/1746)) - 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/stable/internals.html#internals-request). - New documentation for plugin authors: [Registering a plugin for the duration of a test](https://docs.datasette.io/en/stable/testing_plugins.html#testing-plugins-register-in-test). ([#903](https://github.com/simonw/datasette/issues/903))",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/dogsheep/pocket-to-sqlite/releases/tag/0.2.2,75010827,RE_kwDODLZ_YM4EeJML,0.2.2,main,0.2.2,0,9599,0,2022-08-22T16:18:16Z,2022-08-22T16:21:34Z,"- `-a` is now the shortcut for `--auth` - previously it was duplicated as a shortcut for `--all`. Thanks, [Thomas Lockney](https://github.com/tlockney). [#7](https://github.com/dogsheep/pocket-to-sqlite/issues/7) - `pocket-to-sqlite auth` command now updates the existing `auth.json` file rather than over-writing it. [#10](https://github.com/dogsheep/pocket-to-sqlite/issues/10)",213286752, https://github.com/simonw/sqlite-utils/releases/tag/3.29,75560168,RE_kwDOCGYnMM4EgPTo,3.29,main,3.29,0,9599,0,2022-08-28T03:48:36Z,2022-08-28T03:50:29Z,"- The `sqlite-utils query`, `memory` and `bulk` commands now all accept a new `--functions` option. This can be passed a string of Python code, and any callable objects defined in that code will be made available to SQL queries as custom SQL functions. See [Defining custom SQL functions](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-query-functions) for details. ([#471](https://github.com/simonw/sqlite-utils/issues/471)) - `db[table].create(...)` method now accepts a new `transform=True` parameter. If the table already exists it will be transform to match the schema configuration options passed to the function. This may result in columns being added or dropped, column types being changed, column order being updated or not null and default values for columns being set. ([#467](https://github.com/simonw/sqlite-utils/issues/467)) - Related to the above, the `sqlite-utils create-table` command now accepts a `--transform` option. - New introspection property: `table.default_values` returns a dictionary mapping each column name with a default value to the configured default value. ([#475](https://github.com/simonw/sqlite-utils/issues/475)) - The `--load-extension` option can now be provided a path to a compiled SQLite extension module accompanied by the name of an entrypoint, separated by a colon - for example `--load-extension ./lines0:sqlite3_lines0_noread_init`. This feature is modelled on code first [contributed to Datasette](https://github.com/simonw/datasette/pull/1789) by Alex Garcia. ([#470](https://github.com/simonw/sqlite-utils/issues/470)) - Functions registered using the [db.register_function()](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-register-function) method can now have a custom name specified using the new `db.register_function(fn, name=...)` parameter. ([#458](https://github.com/simonw/sqlite-utils/issues/458)) - [sqlite-utils rows](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-rows) has a new `--order` option for specifying the sort order for the returned rows. ([#469](https://github.com/simonw/sqlite-utils/issues/469)) - All of the CLI options that accept Python code blocks can now all be used to define functions that can access modules imported in that same block of code without needing to use the `global` keyword. ([#472](https://github.com/simonw/sqlite-utils/issues/472)) - Fixed bug where `table.extract()` would not behave correctly for columns containing null values. Thanks, Forest Gregg. ([#423](https://github.com/simonw/sqlite-utils/issues/423)) - New tutorial: [Cleaning data with sqlite-utils and Datasette](https://datasette.io/tutorials/clean-data) shows how to use `sqlite-utils` to import and clean an example CSV file. - Datasette and `sqlite-utils` now have a Discord community. [Join the Discord here](https://discord.gg/Ass7bCAMDw).",140912432,"{""url"": ""https://api.github.com/repos/simonw/sqlite-utils/releases/75560168/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.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/sqlite-utils/releases/tag/3.30,80981028,RE_kwDOCGYnMM4E06wk,3.30,main,3.30,0,9599,0,2022-10-25T22:34:30Z,2022-10-25T22:34:48Z,"- Now tested against Python 3.11. ([#502](https://github.com/simonw/sqlite-utils/issues/502)) - New `table.search_sql(include_rank=True)` option, which adds a `rank` column to the generated SQL. Thanks, Jacob Chapman. ([#480](https://github.com/simonw/sqlite-utils/pull/480)) - Progress bars now display for newline-delimited JSON files using the `--nl` option. Thanks, Mischa Untaga. ([#485](https://github.com/simonw/sqlite-utils/issues/485)) - New `db.close()` method. ([#504](https://github.com/simonw/sqlite-utils/issues/504)) - Conversion functions passed to [table.convert(...)](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-convert) can now return lists or dictionaries, which will be inserted into the database as JSON strings. ([#495](https://github.com/simonw/sqlite-utils/issues/495)) - `sqlite-utils install` and `sqlite-utils uninstall` commands for installing packages into the same virtual environment as `sqlite-utils`, [described here](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-install). ([#483](https://github.com/simonw/sqlite-utils/issues/483)) - New [sqlite_utils.utils.flatten()](https://sqlite-utils.datasette.io/en/stable/reference.html#reference-utils-flatten) utility function. ([#500](https://github.com/simonw/sqlite-utils/issues/500)) - Documentation on [using Just](https://sqlite-utils.datasette.io/en/stable/contributing.html#contributing-just) to run tests, linters and build documentation. - Documentation now covers the [Release process](https://sqlite-utils.datasette.io/en/stable/contributing.html#release-process) for this package.",140912432, 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 `.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)) ## Plugin hooks and internals - The [prepare_jinja2_environment(env, datasette)](https://docs.datasette.io/en/stable/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)) - `Database(is_mutable=)` now defaults to `True`. ([#1808](https://github.com/simonw/datasette/issues/1808)) - The [datasette.check_visibility()](https://docs.datasette.io/en/stable/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)) - Datasette no longer enforces upper bounds on its dependencies. ([#1800](https://github.com/simonw/datasette/issues/1800)) ## Documentation - New tutorial: [Cleaning data with sqlite-utils and Datasette](https://datasette.io/tutorials/clean-data). - 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)) - More detailed command descriptions on the [CLI reference](https://docs.datasette.io/en/stable/cli-reference.html#cli-reference) page. ([#1787](https://github.com/simonw/datasette/issues/1787)) - New documentation on [Running Datasette using OpenRC](https://docs.datasette.io/en/stable/deploying.html#deploying-openrc) - thanks, Adam Simpson. ([#1825](https://github.com/simonw/datasette/pull/1825))",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 `