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/sqlite-utils/releases/tag/3.35.2 | 127967404 | RE_kwDOCGYnMM4HoKCs | 3.35.2 | main | 3.35.2 | 0 | 9599 | 0 | 2023-11-04T01:03:42Z | 2023-11-04T01:05:56Z | - The `--load-extension=spatialite` option and [find_spatialite()](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-gis-find-spatialite) utility function now both work correctly on `arm64` Linux. Thanks, [Mike Coats](https://github.com/MikeCoats). ([#599](https://github.com/simonw/sqlite-utils/issues/599)) - Fix for bug where `sqlite-utils insert` could cause your terminal cursor to disappear. Thanks, [Luke Plant](https://github.com/spookylukey). ([#433](https://github.com/simonw/sqlite-utils/issues/433)) - `datetime.timedelta` values are now stored as `TEXT` columns. Thanks, [Harald Nezbeda](https://github.com/nezhar). ([#522](https://github.com/simonw/sqlite-utils/issues/522)) - Test suite is now also run against Python 3.12. | 140912432 | |
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/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/sqlite-utils/releases/tag/3.35.1 | 120501239 | RE_kwDOCGYnMM4HLrP3 | 3.35.1 | main | 3.35.1 | 0 | 9599 | 0 | 2023-09-09T00:49:55Z | 2023-09-09T00:50:42Z | - Fixed a bug where [table.transform()](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-transform) would sometimes re-assign the `rowid` values for a table rather than keeping them consistent across the operation. ([#592](https://github.com/simonw/sqlite-utils/issues/592)) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/3.35 | 117703394 | RE_kwDOCGYnMM4HBALi | 3.35 | main | 3.35 | 0 | 9599 | 0 | 2023-08-18T02:05:15Z | 2023-08-18T02:05:22Z | Adding foreign keys to a table no longer uses `PRAGMA writable_schema = 1` to directly manipulate the `sqlite_master` table. This was resulting in errors in some Python installations where the SQLite library was compiled in a way that prevented this from working, in particular on macOS. Foreign keys are now added using the [table transformation](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-transform) mechanism instead. ([#577](https://github.com/simonw/sqlite-utils/issues/577)) This new mechanism creates a full copy of the table, so it is likely to be significantly slower for large tables, but will no longer trigger table `sqlite_master may not be modified` errors on platforms that do not support `PRAGMA writable_schema = 1`. A new plugin, [sqlite-utils-fast-fks](https://github.com/simonw/sqlite-utils-fast-fks), is now available for developers who still want to use that faster but riskier implementation. Other changes: - The [table.transform() method](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-transform) has two new parameters: `foreign_keys=` allows you to replace the foreign key constraints defined on a table, and `add_foreign_keys=` lets you specify new foreign keys to add. These complement the existing `drop_foreign_keys=` parameter. ([#577](https://github.com/simonw/sqlite-utils/issues/577)) - The [sqlite-utils transform](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-transform-table) command has a new `--add-foreign-key` option which can be called multiple times to add foreign keys to a table that is being transformed. ([#585](https://github.com/simonw/sqlite-utils/issues/585)) - [sqlite-utils convert](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-convert) now has a `--pdb` option for opening a debugger on the first encountered error in your conversion script. ([#581](https://github.com/simonw/sqlite-utils/issues/581)) - Fixed a bug where `sqlite-utils install -e '.[test]'` option did not work correctly. | 140912432 | { "url": "https://api.github.com/repos/simonw/sqlite-utils/releases/117703394/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.34 | 113203288 | RE_kwDOCGYnMM4Gv1hY | 3.34 | main | 3.34 | 0 | 9599 | 0 | 2023-07-22T23:25:14Z | 2023-07-22T23:30:49Z | This release introduces a new [plugin system](https://sqlite-utils.datasette.io/en/stable/plugins.html#plugins). ([#567](https://github.com/simonw/sqlite-utils/issues/567)) - Documentation describing [how to build a plugin](https://sqlite-utils.datasette.io/en/stable/plugins.html#plugins-building). - Plugin hook: [register_commands(cli)](https://sqlite-utils.datasette.io/en/stable/plugins.html#plugins-hooks-register-commands), for plugins to add extra commands to `sqlite-utils`. ([#569](https://github.com/simonw/sqlite-utils/issues/569)) - Plugin hook: [prepare_connection(conn)](https://sqlite-utils.datasette.io/en/stable/plugins.html#plugins-hooks-prepare-connection). Plugins can use this to help prepare the SQLite connection to do things like registering custom SQL functions. Thanks, [Alex Garcia](https://github.com/asg017). ([#574](https://github.com/simonw/sqlite-utils/issues/574)) - `sqlite_utils.Database(..., execute_plugins=False)` option for disabling plugin execution. ([#575](https://github.com/simonw/sqlite-utils/issues/575)) - `sqlite-utils install -e path-to-directory` option for installing editable code. This option is useful during the development of a plugin. ([#570](https://github.com/simonw/sqlite-utils/issues/570)) - `table.create(...)` method now accepts `replace=True` to drop and replace an existing table with the same name, or `ignore=True` to silently do nothing if a table already exists with the same name. ([#568](https://github.com/simonw/sqlite-utils/issues/568)) - `sqlite-utils insert ... --stop-after 10` option for stopping the insert after a specified number of records. Works for the `upsert` command as well. ([#561](https://github.com/simonw/sqlite-utils/issues/561)) - The `--csv` and `--tsv` modes for `insert` now accept a `--empty-null` option, which cases empty strings in the CSV file to be stored as `null` in the database. ([#563](https://github.com/simonw/sqlite-utils/issues/563)) - New `db.rename_table(table_name, new_name)` method for renaming tables. ([#565]… | 140912432 | { "url": "https://api.github.com/repos/simonw/sqlite-utils/releases/113203288/reactions", "total_count": 2, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
https://github.com/dogsheep/pocket-to-sqlite/releases/tag/0.2.3 | 111513749 | RE_kwDODLZ_YM4GpZCV | 0.2.3 | main | 0.2.3 | 0 | 9599 | 0 | 2023-07-09T01:14:06Z | 2023-07-09T01:15:03Z | - Progress bar now includes a count of the total number of items to fetch. - Now packaged using `pyproject.toml`. [#12](https://github.com/dogsheep/pocket-to-sqlite/issues/12) | 213286752 | |
https://github.com/simonw/sqlite-utils/releases/tag/3.33 | 109839649 | RE_kwDOCGYnMM4GjAUh | 3.33 | main | 3.33 | 0 | 9599 | 0 | 2023-06-26T01:31:22Z | 2023-06-26T01:32:30Z | - `sqlite-utils` will now use [sqlean.py](https://github.com/nalgeon/sqlean.py) in place of `sqlite3` if it is installed in the same virtual environment. This is useful for Python environments with either an outdated version of SQLite or with restrictions on SQLite such as disabled extension loading or restrictions resulting in the `sqlite3.OperationalError: table sqlite_master may not be modified` error. ([#559](https://github.com/simonw/sqlite-utils/issues/559)) - New `with db.ensure_autocommit_off()` context manager, which ensures that the database is in autocommit mode for the duration of a block of code. This is used by `db.enable_wal()` and `db.disable_wal()` to ensure they work correctly with `pysqlite3` and `sqlean.py`. - New `db.iterdump()` method, providing an iterator over SQL strings representing a dump of the database. This uses `sqlite-dump` if it is available, otherwise falling back on the `conn.iterdump()` method from `sqlite3`. Both `pysqlite3` and `sqlean.py` omit support for `iterdump()` - this method helps paper over that difference. | 140912432 | { "url": "https://api.github.com/repos/simonw/sqlite-utils/releases/109839649/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.32.1 | 103740013 | RE_kwDOCGYnMM4GLvJt | 3.32.1 | main | 3.32.1 | 0 | 9599 | 0 | 2023-05-21T21:11:54Z | 2023-05-21T21:12:05Z | - Examples in the [CLI documentation](https://sqlite-utils.datasette.io/en/stable/cli.html) can now all be copied and pasted without needing to remove a leading `$`. ([#551](https://github.com/simonw/sqlite-utils/issues/551)) - Documentation now covers [Setting up shell completion](https://sqlite-utils.datasette.io/en/stable//installation.html#installation-completion) for `bash` and `zsh`. ([#552](https://github.com/simonw/sqlite-utils/issues/552)) | 140912432 | { "url": "https://api.github.com/repos/simonw/sqlite-utils/releases/103740013/reactions", "total_count": 3, "+1": 3, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
https://github.com/simonw/sqlite-utils/releases/tag/3.32 | 103736235 | RE_kwDOCGYnMM4GLuOr | 3.32 | main | 3.32 | 0 | 9599 | 0 | 2023-05-21T18:53:44Z | 2023-05-21T18:55:42Z | - New experimental `sqlite-utils tui` interface for interactively building command-line invocations, powered by [Trogon](https://github.com/Textualize/trogon). This requires an optional dependency, installed using `sqlite-utils install trogon`. There is a screenshot [in the documentation](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-tui). ([#545](https://github.com/simonw/sqlite-utils/issues/545)) - `sqlite-utils analyze-tables` command ([documentation](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-analyze-tables)) now has a `--common-limit 20` option for changing the number of common/least-common values shown for each column. ([#544](https://github.com/simonw/sqlite-utils/issues/544)) - `sqlite-utils analyze-tables --no-most` and `--no-least` options for disabling calculation of most-common and least-common values. - If a column contains only `null` values, `analyze-tables` will no longer attempt to calculate the most common and least common values for that column. ([#547](https://github.com/simonw/sqlite-utils/issues/547)) - Calling `sqlite-utils analyze-tables` with non-existent columns in the `-c/--column` option now results in an error message. ([#548](https://github.com/simonw/sqlite-utils/issues/548)) - The `table.analyze_column()` method ([documented here](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-analyze-column)) now accepts `most_common=False` and `least_common=False` options for disabling calculation of those values. | 140912432 | { "url": "https://api.github.com/repos/simonw/sqlite-utils/releases/103736235/reactions", "total_count": 3, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 3, "eyes": 0 } |
https://github.com/simonw/sqlite-utils/releases/tag/3.31 | 102274005 | RE_kwDOCGYnMM4GGJPV | 3.31 | main | 3.31 | 0 | 9599 | 0 | 2023-05-08T22:33:57Z | 2023-05-08T22:37:24Z | - Dropped support for Python 3.6. Tests now ensure compatibility with Python 3.11. ([#517](https://github.com/simonw/sqlite-utils/issues/517)) - Automatically locates the SpatiaLite extension on Apple Silicon. Thanks, Chris Amico. ([#536](https://github.com/simonw/sqlite-utils/pull/536)) - New `--raw-lines` option for the `sqlite-utils query` and `sqlite-utils memory` commands, which outputs just the raw value of the first column of evy row. ([#539](https://github.com/simonw/sqlite-utils/issues/539)) - Fixed a bug where `table.upsert_all()` failed if the `not_null=` option was passed. ([#538](https://github.com/simonw/sqlite-utils/issues/538)) - Fixed a `ResourceWarning` when using `sqlite-utils insert`. ([#534](https://github.com/simonw/sqlite-utils/issues/534)) - Now shows a more detailed error message when `sqlite-utils insert` is called with invalid JSON. ([#532](https://github.com/simonw/sqlite-utils/ises/532)) - `table.convert(..., skip_false=False)` and `sqlite-utils convert --no-skip-false` options, for avoiding a misfeature where the [convert()](http://127.0.0.1:8000/python-api.html#python-api-convert) mechanism skips rows in the database with a falsey value for the specified column. Fixing this by default would be a backwards-incompatible change and is under consideration for a 4.0 release in the future. ([#527](https://github.com/simonw/sqlite-utils/issues/527)) - Tables can now be created with self-referential foreign keys. Thanks, Scott Perry. ([#537](https://github.com/simonw/sqlite-utils/pull/537)) - `sqlite-utils transform` no longer breaks if a table defines default values for columns. Thanks, Kenny Song. ([#509](https://github.com/simonw/sqlite-utils/issues/509)) - Fixed a bug where repeated calls to `table.transform()` did not work correctly. Thanks, Martin Carpenter. ([#525](https://github.com/simonw/sqlite-utils/issues/525)) - Improved error message if `rows_from_file()` is passed a non-binary-mode file-like object. ([#520](https://github.com/simonw/sqlite-utils/issues/520)) | 140912432 | { "url": "https://api.github.com/repos/simonw/sqlite-utils/releases/102274005/reactions", "total_count": 3, "+1": 3, "-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/dogsheep/swarm-to-sqlite/releases/tag/0.3.4 | 98864081 | RE_kwDODD6af84F5IvR | 0.3.4 | main | 0.3.4 | 0 | 9599 | 0 | 2023-04-11T03:17:35Z | 2023-04-11T03:18:16Z | - Fixed an error in the `checkins_detail` view. [#15](https://github.com/dogsheep/swarm-to-sqlite/issues/15) | 205429375 | |
https://github.com/dogsheep/apple-notes-to-sqlite/releases/tag/0.1 | 95017974 | RE_kwDOJHON9s4Fqdv2 | 0.1 | main | 0.1 | 0 | 9599 | 0 | 2023-03-09T05:11:00Z | 2023-03-09T05:12:12Z | - Initial working version. `apple-notes-to-sqlite notes.db` dumps your notes out to a SQLite database. [#2](https://github.com/dogsheep/apple-notes-to-sqlite/issues/2) - `apple-notes-to-sqlite --dump` outputs them to standard output as newline-delimited JSON. [#3](https://github.com/dogsheep/apple-notes-to-sqlite/issues/3) | 611552758 | |
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.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 | 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.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.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/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 | 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/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/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 … | 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/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/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/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/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.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/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/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.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/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/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.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/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.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/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/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 | 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/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/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… | 140912432 | |
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/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.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/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.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.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/p… | 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/datasette/releases/tag/0.59.2 | 53323406 | RE_kwDOBm6k_c4DLaaO | 0.59.2 | main | 0.59.2 | 0 | 9599 | 0 | 2021-11-14T05:37:40Z | 2021-11-14T05:43:09Z | - Column names with a leading underscore now work correctly when used as a facet. ([#1506](https://github.com/simonw/datasette/issues/1506)) - Applying `?_nocol=` to a column no longer removes that column from the filtering interface. ([#1503](https://github.com/simonw/datasette/issues/1503)) - Official Datasette Docker container now uses Debian Bullseye as the base image. ([#1497](https://github.com/simonw/datasette/issues/1497)) - Datasette is four years old today! Here's the [original release announcement](https://simonwillison.net/2017/Nov/13/datasette/) from 2017. | 107914493 | |
https://github.com/simonw/datasette/releases/tag/0.59.1 | 51940513 | RE_kwDOBm6k_c4DGIyh | 0.59.1 | main | 0.59.1 | 0 | 9599 | 0 | 2021-10-24T22:29:56Z | 2021-10-24T22:32:25Z | - Fix compatibility with Python 3.10. ([#1482](https://github.com/simonw/datasette/issues/1482)) - Documentation on how to use [Named parameters](https://docs.datasette.io/en/stable/sql_queries.html#sql-parameters) with integer and floating point values. ([#1496](https://github.com/simonw/datasette/issues/1496)) | 107914493 | { "url": "https://api.github.com/repos/simonw/datasette/releases/51940513/reactions", "total_count": 2, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
https://github.com/simonw/datasette/releases/tag/0.59 | 51387349 | RE_kwDOBm6k_c4DEBvV | 0.59 | main | 0.59 | 0 | 9599 | 0 | 2021-10-14T19:23:43Z | 2021-10-14T19:31:56Z | - Columns can now have associated metadata descriptions in `metadata.json`, see [Column descriptions](https://docs.datasette.io/en/stable/metadata.html#metadata-column-descriptions). ([#942](https://github.com/simonw/datasette/issues/942)) - New [register_commands()](https://docs.datasette.io/en/stable/plugin_hooks.html#plugin-hook-register-commands) plugin hook allows plugins to register additional Datasette CLI commands, e.g. `datasette mycommand file.db`. ([#1449](https://github.com/simonw/datasette/issues/1449)) - Adding `?_facet_size=max` to a table page now shows the number of unique values in each facet. ([#1423](https://github.com/simonw/datasette/issues/1423)) - Upgraded dependency [httpx 0.20](https://github.com/encode/httpx/releases/tag/0.20.0) - the undocumented `allow_redirects=` parameter to [datasette.client](https://docs.datasette.io/en/stable/internals.html#internals-datasette-client) is now `follow_redirects=`, and defaults to `False` where it previously defaulted to `True`. ([#1488](https://github.com/simonw/datasette/issues/1488)) - The `--cors` option now causes Datasette to return the `Access-Control-Allow-Headers: Authorization` header, in addition to `Access-Control-Allow-Origin: *`. ([#1467](https://github.com/simonw/datasette/pull/1467)) - Code that figures out which named parameters a SQL query takes in order to display form fields for them is no longer confused by strings that contain colon characters. ([#1421](https://github.com/simonw/datasette/issues/1421)) - Renamed `--help-config` option to `--help-settings`. ([#1431](https://github.com/simonw/datasette/issues/1431)) - `datasette.databases` property is now a documented API. ([#1443](https://github.com/simonw/datasette/issues/1443)) - The `base.html` template now wraps everything other than the `<footer>` in a `<div class="not-footer">` element, to help with advanced CSS customization. ([#1446](https://github.com/simonw/datasette/issues/1446)) - The [render_cell()](https://docs.datasette.io/en/stable/pl… | 107914493 | { "url": "https://api.github.com/repos/simonw/datasette/releases/51387349/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.17.1 | 50089123 | RE_kwDOCGYnMM4C_Eyj | 3.17.1 | main | 3.17.1 | 0 | 9599 | 0 | 2021-09-22T20:49:36Z | 2021-09-22T20:51:04Z | - [sqlite-utils memory](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-memory) now works if files passed to it share the same file name. ([#325](https://github.com/simonw/sqlite-utils/issues/325)) - [sqlite-utils query](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-query) now returns `[]` in JSON mode if no rows are returned. ([#328](https://github.com/simonw/sqlite-utils/issues/328)) | 140912432 | |
https://github.com/dogsheep/twitter-to-sqlite/releases/tag/0.22 | 50003635 | RE_kwDODEm0Qs4C-v6z | 0.22 | main | 0.22 | 0 | 9599 | 0 | 2021-09-21T17:39:08Z | 2021-09-21T17:41:05Z | - `twitter-to-sqlite import` now imports `app.js` to `archive_app` table. - Small fixes for `twitter-to-sqlite import` reflecting changed filenames in the Twitter export. - Fix for remaining `since_id` bug, thanks Ruben Vermeersch! [#58](https://github.com/dogsheep/twitter-to-sqlite/issues/58) | 206156866 | { "url": "https://api.github.com/repos/dogsheep/twitter-to-sqlite/releases/50003635/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 1, "rocket": 0, "eyes": 0 } |
https://github.com/dogsheep/evernote-to-sqlite/releases/tag/0.3.2 | 48523966 | MDc6UmVsZWFzZTQ4NTIzOTY2 | 0.3.2 | main | 0.3.2 | 0 | 9599 | 0 | 2021-08-26T19:01:49Z | 2021-08-26T19:02:47Z | - Fixed error when encountering `<en-note>` documents that were not well-formed XML. [#13](https://github.com/dogsheep/evernote-to-sqlite/issues/13) | 303218369 | |
https://github.com/simonw/sqlite-utils/releases/tag/3.17 | 48389722 | MDc6UmVsZWFzZTQ4Mzg5NzIy | 3.17 | main | 3.17 | 0 | 9599 | 0 | 2021-08-24T23:40:18Z | 2021-08-24T23:42:22Z | - The [sqlite-utils memory](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-memory) command has a new `--analyze` option, which runs the equivalent of the [analyze-tables](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-analyze-tables) command directly against the in-memory database created from the incoming CSV or JSON data. ([#320](https://github.com/simonw/sqlite-utils/issues/320)) - [sqlite-utils insert-files](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-insert-files) now has the ability to insert file contents in to `TEXT` columns in addition to the default `BLOB`. Pass the `--text` option or use `content_text` as a column specifier. ([#319](https://github.com/simonw/sqlite-utils/issues/319)) | 140912432 | { "url": "https://api.github.com/repos/simonw/sqlite-utils/releases/48389722/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 1, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
https://github.com/dogsheep/healthkit-to-sqlite/releases/tag/1.0.1 | 48151477 | MDc6UmVsZWFzZTQ4MTUxNDc3 | 1.0.1 | main | 1.0.1 | 0 | 9599 | 0 | 2021-08-20T00:55:29Z | 2021-08-20T00:56:17Z | - Fixed bug where `activity_summary` table could fail to be built with an error. [#19](https://github.com/dogsheep/healthkit-to-sqlite/issues/19) | 197882382 | |
https://github.com/dogsheep/twitter-to-sqlite/releases/tag/0.21.4 | 48150315 | MDc6UmVsZWFzZTQ4MTUwMzE1 | 0.21.4 | main | 0.21.4 | 0 | 9599 | 0 | 2021-08-20T00:14:08Z | 2021-08-20T00:14:30Z | - Fix for `since_id` error with `user-timeline`. [#57](https://github.com/dogsheep/twitter-to-sqlite/issues/57) - Document the use of `--stop_after` with favorites - thanks, Mike Lee Williams. [#49](https://github.com/dogsheep/twitter-to-sqlite/pull/49) - Fixes for Twitter archive imports, thanks Jacob Kaplan-Moss. [#55](https://github.com/dogsheep/twitter-to-sqlite/pull/55) | 206156866 | |
https://github.com/simonw/sqlite-utils/releases/tag/3.16 | 48077246 | MDc6UmVsZWFzZTQ4MDc3MjQ2 | 3.16 | main | 3.16 | 0 | 9599 | 0 | 2021-08-18T22:36:32Z | 2021-08-18T22:37:55Z | - Type signatures added to more methods, including `table.resolve_foreign_keys()`, `db.create_table_sql()`, `db.create_table()` and `table.create()`. ([#314](https://github.com/simonw/sqlite-utils/issues/314)) - New `db.quote_fts(value)` method, see [Quoting characters for use in search](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-quote-fts) - thanks, Mark Neumann. ([#246](https://github.com/simonw/sqlite-utils/issues/246)) - `table.search()` now accepts an optional `quote=True` parameter. ([#296](https://github.com/simonw/sqlite-utils/issues/296)) - CLI command `sqlite-utils search` now accepts a `--quote` option. ([#296](https://github.com/simonw/sqlite-utils/issues/296)) - Fixed bug where `--no-headers` and `--tsv` options to [sqlite-utils insert](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-insert-csv-tsv) could not be used together. ([#295](https://github.com/simonw/sqlite-utils/issues/295)) - Various small improvements to [API reference](https://sqlite-utils.datasette.io/en/stable/reference.html#reference) documentation. | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/3.15.1 | 47636109 | MDc6UmVsZWFzZTQ3NjM2MTA5 | 3.15.1 | main | 3.15.1 | 0 | 9599 | 0 | 2021-08-10T23:55:12Z | 2021-08-10T23:55:38Z | - Python library now includes type annotations on almost all of the methods, plus detailed docstrings describing each one. ([#311](https://github.com/simonw/sqlite-utils/issues/311)) - New [API Reference](https://sqlite-utils.datasette.io/en/stable/reference.html) documentation page, powered by those docstrings. - Fixed bug where `.add_foreign_keys()` failed to raise an error if called against a `View`. ([#313](https://github.com/simonw/sqlite-utils/issues/313)) - Fixed bug where `.delete_where()` returned a `[]` instead of returning `self` if called against a non-existant table. ([#315](https://github.com/simonw/sqlite-utils/issues/315)) | 140912432 | { "url": "https://api.github.com/repos/simonw/sqlite-utils/releases/47636109/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 1, "rocket": 0, "eyes": 0 } |
https://github.com/simonw/sqlite-utils/releases/tag/3.15 | 47569134 | MDc6UmVsZWFzZTQ3NTY5MTM0 | 3.15 | main | 3.15 | 0 | 9599 | 0 | 2021-08-09T22:42:06Z | 2021-08-09T22:43:16Z | - `sqlite-utils insert --flatten` option for [flattening nested JSON objects](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-inserting-data-flatten) to create tables with column names like `topkey_nestedkey`. ([#310](https://github.com/simonw/sqlite-utils/issues/310)) - Fixed several spelling mistakes in the documentation, spotted [using codespell](https://til.simonwillison.net/python/codespell). - Errors that occur while using the `sqlite-utils` CLI tool now show the responsible SQL and query parameters, if possible. ([#309](https://github.com/simonw/sqlite-utils/issues/309)) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/3.14 | 47185841 | MDc6UmVsZWFzZTQ3MTg1ODQx | 3.14 | main | 3.14 | 0 | 9599 | 0 | 2021-08-02T21:29:16Z | 2021-08-02T21:34:43Z | This release introduces the new [sqlite-utils convert command](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-convert) ([#251](https://github.com/simonw/sqlite-utils/issues/251)) and corresponding [table.convert(...)](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-convert) Python method ([#302](https://github.com/simonw/sqlite-utils/issues/302)). These tools can be used to apply a Python conversion function to one or more columns of a table, either updating the column in place or using transformed data from that column to populate one or more other columns. This command-line example uses the Python standard library [textwrap module](https://docs.python.org/3/library/textwrap.html) to wrap the content of the `content` column in the `articles` table to 100 characters: ``` $ sqlite-utils convert content.db articles content\ '"\n".join(textwrap.wrap(value, 100))'\ --import=textwrap ``` The same operation in Python code looks like this: ```python import sqlite_utils, textwrap db = sqlite_utils.Database("content.db") db["articles"].convert("content", lambda v: "\n".join(textwrap.wrap(v, 100))) ``` See the full documentation for the [sqlite-utils convert command](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-convert) and the [table.convert(...)](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-convert) Python method for more details. Also in this release: - The new `table.count_where(...)` method, for counting rows in a table that match a specific SQL `WHERE` clause. ([#305](https://github.com/simonw/sqlite-utils/issues/305)) - New `--silent` option for the [sqlite-utils insert-files command](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-insert-files) to hide the terminal progress bar, consistent with the `--silent` option for `sqlite-utils convert`. ([#301](https://github.com/simonw/sqlite-utils/issues/301)) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/3.13 | 46720847 | MDc6UmVsZWFzZTQ2NzIwODQ3 | 3.13 | main | 3.13 | 0 | 9599 | 0 | 2021-07-24T22:15:27Z | 2021-07-24T22:17:47Z | - `sqlite-utils schema my.db table1 table2` command now accepts optional table names. ([#299](https://github.com/simonw/sqlite-utils/issues/299)) - `sqlite-utils memory --help` now describes the `--schema` option. | 140912432 | |
https://github.com/simonw/datasette/releases/tag/0.58.1 | 46341814 | MDc6UmVsZWFzZTQ2MzQxODE0 | 0.58.1 | main | 0.58.1 | 0 | 9599 | 0 | 2021-07-16T19:50:06Z | 2021-07-16T19:51:15Z | - Fix for an intermittent race condition caused by the `refresh_schemas()` internal function. ([#1231](https://github.com/simonw/datasette/issues/1231)) | 107914493 | |
https://github.com/simonw/datasette/releases/tag/0.58 | 46222036 | MDc6UmVsZWFzZTQ2MjIyMDM2 | 0.58 | main | 0.58 | 0 | 9599 | 0 | 2021-07-15T00:33:04Z | 2021-07-15T00:37:57Z | - New `datasette --uds /tmp/datasette.sock` option for binding Datasette to a Unix domain socket, see [proxy documentation](https://docs.datasette.io/en/stable/deploying.html#deploying-proxy). ([#1388](https://github.com/simonw/datasette/issues/1388)) - `"searchmode": "raw"` table metadata option for defaulting a table to executing SQLite full-text search syntax without first escaping it, see [Advanced SQLite search queries](https://docs.datasette.io/en/stable/full_text_search.html#full-text-search-advanced-queries). ([#1389](https://github.com/simonw/datasette/issues/1389)) - New plugin hook: [get_metadata(datasette, key, database, table)](https://docs.datasette.io/en/stable/plugin_hooks.html#plugin-hook-get-metadata), for returning custom metadata for an instance, database or table. Thanks, Brandon Roberts! ([#1384](https://github.com/simonw/datasette/issues/1384)) - New plugin hook: [skip_csrf(datasette, scope)](https://docs.datasette.io/en/stable/plugin_hooks.html#plugin-hook-skip-csrf), for opting out of CSRF protection based on the incoming request. ([#1377](https://github.com/simonw/datasette/issues/1377)) - The [menu_links()](https://docs.datasette.io/en/stable/plugin_hooks.html#plugin-hook-menu-links), [table_actions()](https://docs.datasette.io/en/stable/plugin_hooks.html#plugin-hook-table-actions) and [database_actions()](https://docs.datasette.io/en/stable/plugin_hooks.html#plugin-hook-database-actions) plugin hooks all gained a new optional `request` argument providing access to the current request. ([#1371](https://github.com/simonw/datasette/issues/1371)) - Major performance improvement for Datasette faceting. ([#1394](https://github.com/simonw/datasette/issues/1394)) - Improved documentation for [Running Datasette behind a proxy](https://docs.datasette.io/en/stable/deploying.html#deploying-proxy) to recommend using `ProxyPreservehost On` with Apache. ([#1387](https://github.com/simonw/datasette/issues/1387)) - `POST` requests to endpoints that do not support that HTTP verb now return a 405 … | 107914493 | |
https://github.com/simonw/sqlite-utils/releases/tag/3.12 | 45251624 | MDc6UmVsZWFzZTQ1MjUxNjI0 | 3.12 | main | 3.12 | 0 | 9599 | 0 | 2021-06-25T17:59:05Z | 2021-06-25T18:00:18Z | - New [db.query(sql, params)](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-query) method, which executes a SQL query and returns the results as an iterator over Python dictionaries. ([#290](https://github.com/simonw/sqlite-utils/issues/290)) - This project now uses `flake8` and has started to use `mypy`. ([#291](https://github.com/simonw/sqlite-utils/issues/291)) - New documentation on [contributing](https://sqlite-utils.datasette.io/en/stable/contributing.html#contributing) to this project. ([#292](https://github.com/simonw/sqlite-utils/issues/292)) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/3.11 | 44927292 | MDc6UmVsZWFzZTQ0OTI3Mjky | 3.11 | main | 3.11 | 0 | 9599 | 0 | 2021-06-20T18:52:15Z | 2021-06-20T18:53:09Z | - New `sqlite-utils memory data.csv --schema` option, for outputting the schema of the in-memory database generated from one or more files. See [--schema, --dump and --save](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-memory-schema-dump-save). ([#288](https://github.com/simonw/sqlite-utils/issues/288)) - Added [installation instructions](https://sqlite-utils.datasette.io/en/stable/installation.html#installation). ([#286](https://github.com/simonw/sqlite-utils/issues/286)) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/3.10 | 44904928 | MDc6UmVsZWFzZTQ0OTA0OTI4 | 3.10 | main | 3.10 | 0 | 9599 | 0 | 2021-06-19T16:09:29Z | 2021-06-19T16:13:11Z | This release introduces the `sqlite-utils memory` command, which can be used to load CSV or JSON data into a temporary in-memory database and run SQL queries (including joins across multiple files) directly against that data. Also new: `sqlite-utils insert --detect-types`, `sqlite-utils dump`, `table.use_rowid` plus some smaller fixes. ### sqlite-utils memory This example of `sqlite-utils memory` retrieves information about the all of the repositories in the [Dogsheep](https://github.com/dogsheep) organization on GitHub using [this JSON API](https://api.github.com/users/dogsheep/repos), sorts them by their number of stars and outputs a table of the top five (using `-t`): ``` $ curl -s 'https://api.github.com/users/dogsheep/repos'\ | sqlite-utils memory - ' select full_name, forks_count, stargazers_count from stdin order by stargazers_count desc limit 5 ' -t full_name forks_count stargazers_count --------------------------------- ------------- ------------------ dogsheep/twitter-to-sqlite 12 225 dogsheep/github-to-sqlite 14 139 dogsheep/dogsheep-photos 5 116 dogsheep/dogsheep.github.io 7 90 dogsheep/healthkit-to-sqlite 4 85 ``` The tool works against files on disk as well. This example joins data from two CSV files: ``` $ cat creatures.csv species_id,name 1,Cleo 2,Bants 2,Dori 2,Azi $ cat species.csv id,species_name 1,Dog 2,Chicken $ sqlite-utils memory species.csv creatures.csv ' select * from creatures join species on creatures.species_id = species.id ' [{"species_id": 1, "name": "Cleo", "id": 1, "species_name": "Dog"}, {"species_id": 2, "name": "Bants", "id": 2, "species_name": "Chicken"}, {"species_id": 2, "name": "Dori", "id": 2, "species_name": "Chicken"}, {"species_id": 2, "name": "Azi", "id": 2, "species_name": "Chicken"}] ``` … | 140912432 | { "url": "https://api.github.com/repos/simonw/sqlite-utils/releases/44904928/reactions", "total_count": 3, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 1, "eyes": 1 } |
https://github.com/dogsheep/dogsheep-beta/releases/tag/0.10.2 | 44537329 | MDc6UmVsZWFzZTQ0NTM3MzI5 | 0.10.2 | main | 0.10.2 | 0 | 9599 | 0 | 2021-06-13T14:37:17Z | 2021-06-13T14:38:09Z | - Fixed bug where searches consisting only of whitespace caused a server error. [#33](https://github.com/dogsheep/dogsheep-beta/issues/33) | 197431109 | |
https://github.com/simonw/sqlite-utils/releases/tag/3.9.1 | 44529219 | MDc6UmVsZWFzZTQ0NTI5MjE5 | 3.9.1 | main | 3.9.1 | 0 | 9599 | 0 | 2021-06-13T02:59:08Z | 2021-06-13T03:00:45Z | - Fixed bug when using `table.upsert_all()` to create a table with only a single column that is treated as the primary key. ([#271](https://github.com/simonw/sqlite-utils/issues/271)) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/3.9 | 44511190 | MDc6UmVsZWFzZTQ0NTExMTkw | 3.9 | main | 3.9 | 0 | 9599 | 0 | 2021-06-12T02:07:18Z | 2021-06-12T02:08:03Z | - New `sqlite-utils schema` command showing the full SQL schema for a database, see [Showing the schema (CLI)](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-schema). ([#268](https://github.com/simonw/sqlite-utils/issues/268)) - `db.schema` introspection property exposing the same feature to the Python library, see [Showing the schema (Python library)](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-schema). | 140912432 | { "url": "https://api.github.com/repos/simonw/sqlite-utils/releases/44511190/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
https://github.com/simonw/datasette/releases/tag/0.57.1 | 44292523 | MDc6UmVsZWFzZTQ0MjkyNTIz | 0.57.1 | main | 0.57.1 | 0 | 9599 | 0 | 2021-06-08T16:26:45Z | 2021-06-08T16:28:31Z | - Fixed visual display glitch with global navigation menu. ([#1367](https://github.com/simonw/datasette/issues/1367)) - No longer truncates the list of table columns displayed on the `/database` page. ([#1364](https://github.com/simonw/datasette/issues/1364)) | 107914493 | { "url": "https://api.github.com/repos/simonw/datasette/releases/44292523/reactions", "total_count": 4, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 4, "rocket": 0, "eyes": 0 } |
https://github.com/simonw/datasette/releases/tag/0.57 | 44155601 | MDc6UmVsZWFzZTQ0MTU1NjAx | 0.57 | main | 0.57 | 0 | 9599 | 0 | 2021-06-05T22:06:55Z | 2021-06-05T22:11:18Z | **Warning**: This release fixes a [reflected cross-site scripting](https://owasp.org/www-community/attacks/xss/#reflected-xss-attacks) security hole with the `?_trace=1` feature. You should upgrade to this version, or to Datasette 0.56.1, as soon as possible. ([#1360](https://github.com/simonw/datasette/issues/1360)) In addition to the security fix, this release includes `?_col=` and `?_nocol=` options for controlling which columns are displayed for a table, `?_facet_size=` for increasing the number of facet results returned, re-display of your SQL query should an error occur and numerous bug fixes. ### New features - If an error occurs while executing a user-provided SQL query, that query is now re-displayed in an editable form along with the error message. ([#619](https://github.com/simonw/datasette/issues/619)) - New `?_col=` and `?_nocol=` parameters to show and hide columns in a table, plus an interface for hiding and showing columns in the column cog menu. ([#615](https://github.com/simonw/datasette/issues/615)) - A new `?_facet_size=` parameter for customizing the number of facet results returned on a table or view page. ([#1332](https://github.com/simonw/datasette/issues/1332)) - `?_facet_size=max` sets that to the maximum, which defaults to 1,000 and is controlled by the the [max_returned_rows](https://docs.datasette.io/en/stable/settings.html#setting-max-returned-rows) setting. If facet results are truncated the ... at the bottom of the facet list now links to this parameter. ([#1337](https://github.com/simonw/datasette/issues/1337)) - `?_nofacet=1` option to disable all facet calculations on a page, used as a performance optimization for CSV exports and `?_shape=array/object`. ([#1349](https://github.com/simonw/datasette/issues/1349), [#263](https://github.com/simonw/datasette/issues/263)) - `?_nocount=1` option to disable full query result counts. ([#1353](https://github.com/simonw/datasette/issues/1353)) - `?_trace=1` debugging option is now controlled by the new [trace_d… | 107914493 | { "url": "https://api.github.com/repos/simonw/datasette/releases/44155601/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.56.1 | 44155459 | MDc6UmVsZWFzZTQ0MTU1NDU5 | 0.56.1 | 0.56.x | 0.56.1 | 0 | 9599 | 0 | 2021-06-05T21:54:47Z | 2021-06-05T22:00:01Z | - Fix for a security hole: [reflected cross-site scripting](https://owasp.org/www-community/attacks/xss/#reflected-xss-attacks) in the `?_trace=1` feature. [#1360](https://github.com/simonw/datasette/issues/1360) | 107914493 | |
https://github.com/simonw/sqlite-utils/releases/tag/3.8 | 44019361 | MDc6UmVsZWFzZTQ0MDE5MzYx | 3.8 | main | 3.8 | 0 | 9599 | 0 | 2021-06-03T05:16:33Z | 2021-06-03T05:17:33Z | - New `sqlite-utils indexes` command to list indexes in a database, see [Listing indexes](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-indexes). ([#263](https://github.com/simonw/sqlite-utils/issues/263)) - `table.xindexes` introspection property returning more details about that table's indexes, see [.xindexes](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-introspection-xindexes). ([#261](https://github.com/simonw/sqlite-utils/issues/261)) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/3.7 | 43797212 | MDc6UmVsZWFzZTQzNzk3MjEy | 3.7 | main | 3.7 | 0 | 9599 | 0 | 2021-05-29T05:47:59Z | 2021-05-29T05:49:59Z | - New `table.pks_and_rows_where()` method returning `(primary_key, row_dictionary)` tuples - see [Listing rows with their primary keys](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-pks-and-rows-where). ([#240](https://github.com/simonw/sqlite-utils/issues/240)) - Fixed bug with *table.add_foreign_key()* against columns containing spaces. ([#238](https://github.com/simonw/sqlite-utils/issues/238)) - `table_or_view.drop(ignore=True)` option for avoiding errors if the table or view does not exist. ([#237](https://github.com/simonw/sqlite-utils/issues/237)) - `sqlite-utils drop-view --ignore` and `sqlite-utils drop-table --ignore` options. ([#237](https://github.com/simonw/sqlite-utils/issues/237)) - Fixed a bug with inserts of nested JSON containing non-ascii strings - thanks, Dylan Wu. ([#257](https://github.com/simonw/sqlite-utils/issues/257)) - Suggest `--alter` if an error occurs caused by a missing column. ([#259](https://github.com/simonw/sqlite-utils/issues/259)) - Support creating indexes with columns in descending order, see [API documentation](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-create-index) and [CLI documentation](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-create-index). ([#260](https://github.com/simonw/sqlite-utils/issues/260)) - Correctly handle CSV files that start with a UTF-8 BOM. ([#250](https://github.com/simonw/sqlite-utils/issues/250)) | 140912432 | |
https://github.com/simonw/datasette/releases/tag/0.56 | 40608711 | MDc6UmVsZWFzZTQwNjA4NzEx | 0.56 | main | 0.56 | 0 | 9599 | 0 | 2021-03-29T00:41:12Z | 2021-03-29T00:43:36Z | Documentation improvements, bug fixes and support for SpatiaLite 5. - The SQL editor can now be resized by dragging a handle. ([#1236](https://github.com/simonw/datasette/issues/1236)) - Fixed a bug with JSON faceting and the `__arraycontains` filter caused by tables with spaces in their names. ([#1239](https://github.com/simonw/datasette/issues/1239)) - Upgraded `httpx` dependency. ([#1005](https://github.com/simonw/datasette/issues/1005)) - JSON faceting is now suggested even if a column contains blank strings. ([#1246](https://github.com/simonw/datasette/issues/1246)) - New [datasette.add_memory_database()](https://docs.datasette.io/en/stable/internals.html#datasette-add-memory-database) method. ([#1247](https://github.com/simonw/datasette/issues/1247)) - The [Response.asgi_send()](https://docs.datasette.io/en/stable/internals.html#internals-response-asgi-send) method is now documented. ([#1266](https://github.com/simonw/datasette/issues/1266)) - The official Datasette Docker image now bundles SpatiaLite version 5. ([#1278](https://github.com/simonw/datasette/issues/1278)) - Fixed a `no such table: pragma_database_list` bug when running Datasette against SQLite versions prior to SQLite 3.16.0. ([#1276](https://github.com/simonw/datasette/issues/1276)) - HTML lists displayed in table cells are now styled correctly. Thanks, Bob Whitelock. ([#1141](https://github.com/simonw/datasette/issues/1141), [#1252](https://github.com/simonw/datasette/pull/1252)) - Configuration directory mode now correctly serves immutable databases that are listed in `inspect-data.json`. Thanks Campbell Allen and Frankie Robertson. ([#1031](https://github.com/simonw/datasette/pull/1031), [#1229](https://github.com/simonw/datasette/pull/1229)) | 107914493 | |
https://github.com/dogsheep/hacker-news-to-sqlite/releases/tag/0.4 | 39765751 | MDc6UmVsZWFzZTM5NzY1NzUx | 0.4 | main | 0.4 | 0 | 9599 | 0 | 2021-03-13T19:11:12Z | 2021-03-13T19:15:06Z | Progress display now shows the total as well as the number currently in the queue. ``` % hacker-news-to-sqlite trees hn.db 26440397 done: 1, in queue: 0, total: 1 done: 2, in queue: 28, total: 30 done: 3, in queue: 27, total: 30 ``` | 248903544 | |
https://github.com/simonw/sqlite-utils/releases/tag/3.6 | 38290990 | MDc6UmVsZWFzZTM4MjkwOTkw | 3.6 | main | 3.6 | 0 | 9599 | 0 | 2021-02-19T05:18:02Z | 2021-02-19T05:19:00Z | This release adds the ability to execute queries joining data from more than one database file - similar to the cross database querying feature introduced in [Datasette 0.55](https://docs.datasette.io/en/stable/changelog.html#v0-55). - The `db.attach(alias, filepath)` Python method can be used to attach extra databases to the same connection, see [db.attach() in the Python API documentation](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-attach). ([#113](https://github.com/simonw/sqlite-utils/issues/113)) - The `--attach` option attaches extra aliased databases to run SQL queries against directly on the command-line, see [attaching additional databases in the CLI documentation](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-attach). ([#236](https://github.com/simonw/sqlite-utils/issues/236)) | 140912432 | |
https://github.com/simonw/datasette/releases/tag/0.55 | 38264801 | MDc6UmVsZWFzZTM4MjY0ODAx | 0.55 | main | 0.55 | 0 | 9599 | 0 | 2021-02-19T02:01:06Z | 2021-02-19T02:02:29Z | Support for cross-database SQL queries and built-in support for serving via HTTPS. - The new `--crossdb` command-line option causes Datasette to attach up to ten database files to the same `/_memory` database connection. This enables cross-database SQL queries, including the ability to use joins and unions to combine data from tables that exist in different database files. See [Cross-database queries](https://docs.datasette.io/en/stable/sql_queries.html#cross-database-queries) for details. ([#283](https://github.com/simonw/datasette/issues/283)) - `--ssl-keyfile` and `--ssl-certfile` options can be used to specify a TLS certificate, allowing Datasette to serve traffic over `https://` without needing to run it behind a separate proxy. ([#1221](https://github.com/simonw/datasette/issues/1221)) - The `/:memory:` page has been renamed (and redirected) to `/_memory` for consistency with the new `/_internal` database introduced in Datasette 0.54. ([#1205](https://github.com/simonw/datasette/issues/1205)) - Added plugin testing documentation on [Using pdb for errors thrown inside Datasette](https://docs.datasette.io/en/stable//testing_plugins.html#testing-plugins-pdb). ([#1207](https://github.com/simonw/datasette/issues/1207)) - The [official Datasette Docker image](https://hub.docker.com/r/datasetteproject/datasette) now uses Python 3.7.10, applying [the latest security fix](https://www.python.org/downloads/release/python-3710/) for that Python version. ([#1235](https://github.com/simonw/datasette/issues/1235)) | 107914493 | |
https://github.com/simonw/sqlite-utils/releases/tag/3.5 | 38037267 | MDc6UmVsZWFzZTM4MDM3MjY3 | 3.5 | main | 3.5 | 0 | 9599 | 0 | 2021-02-14T22:43:06Z | 2021-02-14T22:44:21Z | - `sqlite-utils insert --sniff` option for detecting the delimiter and quote character used by a CSV file, see [Alternative delimiters and quote characters](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-insert-csv-tsv-delimiter). ([#230](https://github.com/simonw/sqlite-utils/issues/230)) - The `table.rows_where()`, `table.search()` and `table.search_sql()` methods all now take optional `offset=` and `limit=` arguments. ([#231](https://github.com/simonw/sqlite-utils/issues/231)) - New `--no-headers` option for `sqlite-utils insert --csv` to handle CSV files that are missing the header row, see [CSV files without a header row](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-insert-csv-tsv-no-header). ([#228](https://github.com/simonw/sqlite-utils/issues/228)) - Fixed bug where inserting data with extra columns in subsequent chunks would throw an error. Thanks [@nieuwenhoven](https://github.com/nieuwenhoven) for the fix. ([#234](https://github.com/simonw/sqlite-utils/issues/234)) - Fixed bug importing CSV files with columns containing more than 128KB of data. ([#229](https://github.com/simonw/sqlite-utils/issues/229)) - Test suite now runs in CI against Ubuntu, macOS and Windows. Thanks [@nieuwenhoven](https://github.com/nieuwenhoven) for the Windows test fixes. ([#232](https://github.com/simonw/sqlite-utils/issues/232)) | 140912432 | |
https://github.com/dogsheep/evernote-to-sqlite/releases/tag/0.3.1 | 37947725 | MDc6UmVsZWFzZTM3OTQ3NzI1 | 0.3.1 | main | 0.3.1 | 0 | 9599 | 0 | 2021-02-11T22:38:21Z | 2021-02-11T22:40:40Z | - Explicitly open file using utf-8 encoding - thanks, RiverZhou. [#10](https://github.com/dogsheep/evernote-to-sqlite/pull/10) - Fix import error if note has no "updated" element - thanks, Matej Korosec. [#8](https://github.com/dogsheep/evernote-to-sqlite/pull/8) | 303218369 | |
https://github.com/dogsheep/evernote-to-sqlite/releases/tag/0.3 | 37946829 | MDc6UmVsZWFzZTM3OTQ2ODI5 | 0.3 | main | 0.3 | 0 | 9599 | 0 | 2021-02-11T22:14:01Z | 2021-02-11T22:16:20Z | - Correctly handle entities in XHTML notes. [#9](https://github.com/dogsheep/evernote-to-sqlite/issues/9) - Fixed a bug importing ENEX files on Windows. Thanks, [dskrad](https://github.com/dskrad). [#11](https://github.com/dogsheep/evernote-to-sqlite/issues/11) | 303218369 | |
https://github.com/simonw/sqlite-utils/releases/tag/3.4.1 | 37438817 | MDc6UmVsZWFzZTM3NDM4ODE3 | 3.4.1 | main | 3.4.1 | 0 | 9599 | 0 | 2021-02-06T02:10:04Z | 2021-02-06T02:11:15Z | - Fixed a code import bug that slipped in to 3.4. ([#226](https://github.com/simonw/sqlite-utils/issues/226)) | 140912432 | |
https://github.com/simonw/sqlite-utils/releases/tag/3.4 | 37437744 | MDc6UmVsZWFzZTM3NDM3NzQ0 | 3.4 | main | 3.4 | 0 | 9599 | 0 | 2021-02-06T01:37:27Z | 2021-02-06T01:38:26Z | - `sqlite-utils insert --csv` now accepts optional `--delimiter` and `--quotechar` options. See [Alternative delimiters and quote characters](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-insert-csv-tsv-delimiter). ([#223](https://github.com/simonw/sqlite-utils/issues/223)) | 140912432 | |
https://github.com/simonw/datasette/releases/tag/0.54.1 | 37262719 | MDc6UmVsZWFzZTM3MjYyNzE5 | 0.54.1 | 0.54.x | 0.54.1 | 0 | 9599 | 0 | 2021-02-02T21:23:39Z | 2021-02-02T21:30:12Z | - Fixed a bug where `?_search=` and `?_sort=` parameters were incorrectly duplicated when the filter form on the table page was re-submitted. ([#1214](https://github.com/simonw/datasette/issues/1214)) | 107914493 | |
https://github.com/simonw/datasette/releases/tag/0.54 | 36871901 | MDc6UmVsZWFzZTM2ODcxOTAx | 0.54 | main | 0.54 | 0 | 9599 | 0 | 2021-01-25T17:35:06Z | 2021-01-25T17:36:30Z | The two big new features in this release are the `_internal` SQLite in-memory database storing details of all connected databases and tables, and support for JavaScript modules in plugins and additional scripts. For additional commentary on this release, see [Datasette 0.54, the annotated release notes](https://simonwillison.net/2021/Jan/25/datasette/). ### The _internal database As part of ongoing work to help Datasette handle much larger numbers of connected databases and tables (see [Datasette Library](https://github.com/simonw/datasette/issues/417)) Datasette now maintains an in-memory SQLite database with details of all of the attached databases, tables, columns, indexes and foreign keys. ([#1150](https://github.com/simonw/datasette/issues/1150)) This will support future improvements such as a searchable, paginated homepage of all available tables. You can explore an example of this database by [signing in as root](https://latest.datasette.io/login-as-root) to the `latest.datasette.io` demo instance and then navigating to [latest.datasette.io/_internal](https://latest.datasette.io/_internal). Plugins can use these tables to introspect attached data in an efficient way. Plugin authors should note that this is not yet considered a stable interface, so any plugins that use this may need to make changes prior to Datasette 1.0 if the `_internal` table schemas change. ### Named in-memory database support As part of the work building the `_internal` database, Datasette now supports named in-memory databases that can be shared across multiple connections. This allows plugins to create in-memory databases which will persist data for the lifetime of the Datasette server process. ([#1151](https://github.com/simonw/datasette/issues/1151)) The new `memory_name=` parameter to the [Database class](https://docs.datasette.io/en/stable/internals.html#internals-database) can be used to create named, shared in-memory databases. ### JavaScript modules [JavaScript modules](https://developer.mozill… | 107914493 | |
https://github.com/dogsheep/swarm-to-sqlite/releases/tag/0.3.3 | 36530359 | MDc6UmVsZWFzZTM2NTMwMzU5 | 0.3.3 | main | 0.3.3 | 0 | 9599 | 0 | 2021-01-18T04:34:56Z | 2021-01-18T04:36:03Z | - Fixed bug where tool could crash with an error about missing columns. #11 | 205429375 | |
https://github.com/simonw/sqlite-utils/releases/tag/3.3 | 36530216 | MDc6UmVsZWFzZTM2NTMwMjE2 | 3.3 | main | 3.3 | 0 | 9599 | 0 | 2021-01-18T04:28:24Z | 2021-01-18T04:29:48Z | - The `table.m2m()` method now accepts an optional `alter=True` argument to specify that any missing columns should be added to the referenced table. See [Working with many-to-many relationships](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-m2m). ([#222](https://github.com/simonw/sqlite-utils/issues/222)) | 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 | |
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.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/dogsheep/dogsheep-beta/releases/tag/0.10.1 | 35520026 | MDc6UmVsZWFzZTM1NTIwMDI2 | 0.10.1 | main | 0.10.1 | 0 | 9599 | 0 | 2020-12-19T06:18:01Z | 2020-12-19T06:19:13Z | - Fix for error if search query contains hyphens such as `github-to-sqlite`. #31 | 197431109 | |
https://github.com/dogsheep/dogsheep-beta/releases/tag/0.10 | 35382391 | MDc6UmVsZWFzZTM1MzgyMzkx | 0.10 | main | 0.10 | 0 | 9599 | 0 | 2020-12-16T21:27:04Z | 2020-12-16T21:28:13Z | - Now depends on [sqlite-utils](https://github.com/simonw/sqlite-utils) >= 3.0. #30 - The user's original search term is now passed to the `display_sql` SQL query as the `:q` parameter. #29 | 197431109 | |
https://github.com/dogsheep/github-to-sqlite/releases/tag/2.8.2 | 35374715 | MDc6UmVsZWFzZTM1Mzc0NzE1 | 2.8.2 | main | 2.8.2 | 0 | 9599 | 0 | 2020-12-16T19:20:36Z | 2020-12-16T19:21:58Z | - `--readme` now stores `null` if the README file does not exist, rather than throwing an error. #57 - README HTML is rewritten to fix broken internal links, e.g. for a table of contents. #58 | 207052882 | |
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/datasette/releases/tag/0.53 | 35131848 | MDc6UmVsZWFzZTM1MTMxODQ4 | 0.53 | main | 0.53 | 0 | 9599 | 0 | 2020-12-11T01:44:36Z | 2020-12-11T01:46:44Z | Datasette has an official project website now, at <https://datasette.io/>. This release mainly updates the documentation to reflect the new site. - New `?column__arraynotcontains=` table filter. ([#1132](https://github.com/simonw/datasette/issues/1132)) - `datasette serve` has a new `--create` option, which will create blank database files if they do not already exist rather than exiting with an error. ([#1135](https://github.com/simonw/datasette/issues/1135)) - New `?_header=off` option for CSV export which omits the CSV header row, [documented here](https://docs.datasette.io/en/stable/csv_export.html#csv-export-url-parameters). ([#1133](https://github.com/simonw/datasette/issues/1133)) - "Powered by Datasette" link in the footer now links to <https://datasette.io/>. ([#1138](https://github.com/simonw/datasette/issues/1138)) - Project news no longer lives in the README - it can now be found at <https://datasette.io/news>. ([#1137](https://github.com/simonw/datasette/issues/1137)) | 107914493 | |
https://github.com/simonw/datasette/releases/tag/0.52.5 | 35063580 | MDc6UmVsZWFzZTM1MDYzNTgw | 0.52.5 | 0.52.x | 0.52.5 | 0 | 9599 | 0 | 2020-12-09T20:03:44Z | 2020-12-09T20:10:23Z | - Fix for error caused by combining the `_searchmode=raw` and `?_search_COLUMN` parameters. ([#1134](https://github.com/simonw/datasette/issues/1134)) | 107914493 | |
https://github.com/simonw/datasette/releases/tag/0.52.4 | 34882011 | MDc6UmVsZWFzZTM0ODgyMDEx | 0.52.4 | main | 0.52.4 | 0 | 9599 | 0 | 2020-12-05T19:42:42Z | 2020-12-05T19:42:57Z | - Show [pysqlite3](https://github.com/coleifer/pysqlite3) version on `/-/versions`, if installed. ([#1125](https://github.com/simonw/datasette/issues/1125)) - Errors output by Datasette (e.g. for invalid SQL queries) now go to `stderr`, not `stdout`. ([#1131](https://github.com/simonw/datasette/issues/1131)) - Fix for a startup error on windows caused by unnecessary `from os import EX_CANTCREAT` - thanks, Abdussamet Koçak. ([#1094](https://github.com/simonw/datasette/issues/1094)) | 107914493 | |
https://github.com/simonw/datasette/releases/tag/0.52.3 | 34782337 | MDc6UmVsZWFzZTM0NzgyMzM3 | 0.52.3 | main | 0.52.3 | 0 | 9599 | 0 | 2020-12-03T19:07:05Z | 2020-12-03T19:08:29Z | - Fixed bug where static assets would 404 for Datasette installed on ARM Amazon Linux. ([#1124](https://github.com/simonw/datasette/issues/1124>)) | 107914493 | |
https://github.com/simonw/datasette/releases/tag/0.52.2 | 34725716 | MDc6UmVsZWFzZTM0NzI1NzE2 | 0.52.2 | main | 0.52.2 | 0 | 9599 | 0 | 2020-12-03T00:57:40Z | 2020-12-03T00:58:43Z | - Generated columns from SQLite 3.31.0 or higher are now correctly displayed. ([#1116](https://github.com/simonw/datasette/issues/1116)) - Error message if you attempt to open a SpatiaLite database now suggests using `--load-extension=spatialite` if it detects that the extension is available in a common location. ([#1115](https://github.com/simonw/datasette/issues/1115)) - `OPTIONS` requests against the `/database` page no longer raise a 500 error. ([#1100](https://github.com/simonw/datasette/issues/1100)) - Databases larger than 32MB that are published to Cloud Run can now be downloaded. ([#749](https://github.com/simonw/datasette/issues/749)) - Fix for misaligned cog icon on table and database pages. Thanks, Abdussamet Koçak. ([#1121](https://github.com/simonw/datasette/issues/1121)) | 107914493 | |
https://github.com/dogsheep/github-to-sqlite/releases/tag/2.8.1 | 34558928 | MDc6UmVsZWFzZTM0NTU4OTI4 | 2.8.1 | main | 2.8.1 | 0 | 9599 | 0 | 2020-11-30T04:16:41Z | 2020-11-30T04:18:21Z | - README now links to example database tables for each command. #56 - Added documentation for `github-to-sqlite releases`. | 207052882 | |
https://github.com/dogsheep/github-to-sqlite/releases/tag/2.8 | 34556308 | MDc6UmVsZWFzZTM0NTU2MzA4 | 2.8 | main | 2.8 | 0 | 9599 | 0 | 2020-11-30T01:40:37Z | 2020-11-30T01:41:38Z | - New command: `github-to-sqlite workflows`, for fetching the YAML configuration used by [GitHub Actions](https://github.com/features/actions) workflows and using it to populate new `workflows`, `jobs` and `steps` tables. #54 - New command: `github-to-sqlite pull-requests` - thanks, @adamjonas! #48 - `github-to-sqlite issues --issue` option can now be used multiple times. | 207052882 |