home / github

Menu
  • Search all tables
  • GraphQL API

releases

Table actions
  • GraphQL API for releases

355 rows sorted by created_at descending

✖

✎ View and edit SQL

This data as json, CSV (advanced)

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

id html_url node_id tag_name target_commitish name draft author prerelease created_at ▲ published_at body repo reactions
127967404 https://github.com/simonw/sqlite-utils/releases/tag/3.35.2 RE_kwDOCGYnMM4HoKCs 3.35.2 main 3.35.2 0 simonw 9599 0 2023-11-04T01:03:42Z 2023-11-04T01:05:56Z
  • The --load-extension=spatialite option and find_spatialite() utility function now both work correctly on arm64 Linux. Thanks, Mike Coats. (#599)
  • Fix for bug where sqlite-utils insert could cause your terminal cursor to disappear. Thanks, Luke Plant. (#433)
  • datetime.timedelta values are now stored as TEXT columns. Thanks, Harald Nezbeda. (#522)
  • Test suite is now also run against Python 3.12.
sqlite-utils 140912432  
124182616 https://github.com/simonw/datasette/releases/tag/0.64.5 RE_kwDOBm6k_c4HZuBY 0.64.5 0.64.x 0.64.5 0 simonw 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)
datasette 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
}
122124154 https://github.com/simonw/datasette/releases/tag/1.0a7 RE_kwDOBm6k_c4HR3d6 1.0a7 1.0a.x 1.0a7 0 simonw 9599 1 2023-09-21T22:06:19Z 2023-09-21T22:13:27Z
  • Fix for a crashing bug caused by viewing the table page for a named in-memory database. #2189
datasette 107914493  
122109244 https://github.com/simonw/datasette/releases/tag/0.64.4 RE_kwDOBm6k_c4HRz08 0.64.4 0.64.x 0.64.4 0 simonw 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
datasette 107914493  
120501239 https://github.com/simonw/sqlite-utils/releases/tag/3.35.1 RE_kwDOCGYnMM4HLrP3 3.35.1 main 3.35.1 0 simonw 9599 0 2023-09-09T00:49:55Z 2023-09-09T00:50:42Z
  • Fixed a bug where table.transform() would sometimes re-assign the rowid values for a table rather than keeping them consistent across the operation. (#592)
sqlite-utils 140912432  
120375181 https://github.com/simonw/datasette/releases/tag/1.0a6 RE_kwDOBm6k_c4HLMeN 1.0a6 main 1.0a6 0 simonw 9599 1 2023-09-08T04:44:08Z 2023-09-08T04:45:12Z
  • New plugin hook: actors_from_ids(datasette, actor_ids) and an internal method to accompany it, await .actors_from_ids(actor_ids). This mechanism is intended to be used by plugins that may need to display the actor who was responsible for something managed by that plugin: they can now resolve the recorded IDs of actors into the full actor objects. (#2181)
  • DATASETTE_LOAD_PLUGINS environment variable for controlling which plugins are loaded by Datasette. (#2164)
  • Datasette now checks if the user has permission to view a table linked to by a foreign key before turning that foreign key into a clickable link. (#2178)
  • The execute-sql permission now implies that the actor can also view the database and instance. (#2169)
  • Documentation describing a pattern for building plugins that themselves define further hooks for other plugins. (#1765)
  • Datasette is now tested against the Python 3.12 preview. (#2175)
datasette 107914493  
119112633 https://github.com/simonw/datasette/releases/tag/1.0a5 RE_kwDOBm6k_c4HGYO5 1.0a5 main 1.0a5 0 simonw 9599 1 2023-08-29T17:17:54Z 2023-08-29T17:19:35Z
  • When restrictions are applied to API tokens, those restrictions now behave slightly differently: applying the view-table restriction will imply the ability to view-database for the database containing that table, and both view-table and view-database will imply view-instance. Previously you needed to create a token with restrictions that explicitly listed view-instance and view-database and view-table in order to view a table without getting a permission denied error. (#2102)
  • New datasette.yaml (or .json) configuration file, which can be specified using datasette -c path-to-file. The goal here to consolidate settings, plugin configuration, permissions, canned queries, and other Datasette configuration into a single single file, separate from metadata.yaml. The legacy settings.json config file used for Configuration directory mode has been removed, and datasette.yaml has a "settings" section where the same settings key/value pairs can be included. In the next future alpha release, more configuration such as plugins/permissions/canned queries will be moved to the datasette.yaml file. See #2093 for more details. Thanks, Alex Garcia.
  • The -s/--setting option can now take dotted paths to nested settings. These will then be used to set or over-ride the same options as are present in the new configuration file. (#2156)
  • New --actor '{"id": "json-goes-here"}' option for use with datasette --get to treat the simulated request as being made by a specific actor, see datasette --get. (#2153)
  • The Datasette _internal database has had some changes. It no longer shows up in the datasette.databases list by default, and is now instead available to plugins using the datasette.get_internal_database(). Plugins are invited to use this as a private database to store configuration and settings and secrets that should not be made visible through the default Datasette interface. Users can pass the new --internal internal.db option to persist that internal database to disk. Thanks, Alex Garcia. (#2157).
datasette 107914493  
118245443 https://github.com/simonw/datasette/releases/tag/1.0a4 RE_kwDOBm6k_c4HDEhD 1.0a4 main 1.0a4 0 simonw 9599 1 2023-08-22T17:10:01Z 2023-08-22T17:13:26Z

This alpha fixes a security issue with the /-/api API explorer. On authenticated Datasette instances (instances protected using plugins such as datasette-auth-passwords) the API explorer interface could reveal the names of databases and tables within the protected instance. The data stored in those tables was not revealed.

For more information and workarounds, read the security advisory. The issue has been present in every previous alpha version of Datasette 1.0: versions 1.0a0, 1.0a1, 1.0a2 and 1.0a3.

Also in this alpha:

  • The new datasette plugins --requirements option outputs a list of currently installed plugins in Python requirements.txt format, useful for duplicating that installation elsewhere. (#2133)
  • Writable canned queries can now define a on_success_message_sql field in their configuration, containing a SQL query that should be executed upon successful completion of the write operation in order to generate a message to be shown to the user. (#2138)
  • The automatically generated border color for a database is now shown in more places around the application. (#2119)
  • Every instance of example shell script code in the documentation should now include a working copy button, free from additional syntax. (#2140)
datasette 107914493
{
    "url": "https://api.github.com/repos/simonw/datasette/releases/118245443/reactions",
    "total_count": 3,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 2,
    "confused": 0,
    "heart": 1,
    "rocket": 0,
    "eyes": 0
}
117703394 https://github.com/simonw/sqlite-utils/releases/tag/3.35 RE_kwDOCGYnMM4HBALi 3.35 main 3.35 0 simonw 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 mechanism instead. (#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, is now available for developers who still want to use that faster but riskier implementation.

Other changes:

  • The table.transform() method 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)
  • The sqlite-utils transform 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)
  • sqlite-utils convert now has a --pdb option for opening a debugger on the first encountered error in your conversion script. (#581)
  • Fixed a bug where sqlite-utils install -e '.[test]' option did not work correctly.
sqlite-utils 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
}
115813784 https://github.com/simonw/datasette/releases/tag/1.0a3 RE_kwDOBm6k_c4G5y2Y 1.0a3 main 1.0a3 0 simonw 9599 1 2023-08-09T19:13:11Z 2023-08-09T19:17:26Z

This alpha release previews the updated design for Datasette's default JSON API. (#782)

The new default JSON representation for both table pages (/dbname/table.json) and arbitrary SQL queries (/dbname.json?sql=...) is now shaped like this: json { "ok": true, "rows": [ { "id": 3, "name": "Detroit" }, { "id": 2, "name": "Los Angeles" }, { "id": 4, "name": "Memnonia" }, { "id": 1, "name": "San Francisco" } ], "truncated": false } Tables will include an additional "next" key for pagination, which can be passed to ?_next= to fetch the next page of results.

The various ?_shape= options continue to work as before - see Different shapes for details.

A new ?_extra= mechanism is available for tables, but has not yet been stabilized or documented. Details on that are available in #262.

Smaller changes

  • Datasette documentation now shows YAML examples for Metadata by default, with a tab interface for switching to JSON. (#1153)
  • register_output_renderer(datasette) plugins now have access to error and truncated arguments, allowing them to display error messages and take into account truncated results. (#2130)
  • render_cell() plugin hook now also supports an optional request argument. (#2007)
  • New Justfile to support development workflows for Datasette using Just.
  • datasette.render_template() can now accepts a datasette.views.Context subclass as an alternative to a dictionary. (#2127)
  • datasette install -e path option for editable installations, useful while developing plugins. (#2106)
  • When started with the --cors option Datasette now serves an Access-Control-Max-Age: 3600 header, ensuring CORS OPTIONS requests are repeated no more than once an hour. (#2079)
  • Fixed a bug where the _internal database could display None instead of null for in-memory databases. (#1970)
datasette 107914493
{
    "url": "https://api.github.com/repos/simonw/datasette/releases/115813784/reactions",
    "total_count": 3,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 3,
    "eyes": 0
}
113203288 https://github.com/simonw/sqlite-utils/releases/tag/3.34 RE_kwDOCGYnMM4Gv1hY 3.34 main 3.34 0 simonw 9599 0 2023-07-22T23:25:14Z 2023-07-22T23:30:49Z

This release introduces a new plugin system. (#567)

  • Documentation describing how to build a plugin.
  • Plugin hook: register_commands(cli), for plugins to add extra commands to sqlite-utils. (#569)
  • Plugin hook: prepare_connection(conn). Plugins can use this to help prepare the SQLite connection to do things like registering custom SQL functions. Thanks, Alex Garcia. (#574)
  • sqlite_utils.Database(..., execute_plugins=False) option for disabling plugin execution. (#575)
  • sqlite-utils install -e path-to-directory option for installing editable code. This option is useful during the development of a plugin. (#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)
  • 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)
  • 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)
  • New db.rename_table(table_name, new_name) method for renaming tables. (#565)
  • sqlite-utils rename-table my.db table_name new_name command for renaming tables. (#565)
  • The table.transform(...) method now takes an optional keep_table=new_table_name parameter, which will cause the original table to be renamed to new_table_name rather than being dropped at the end of the transformation. (#571)
  • Documentation now notes that calling table.transform() without any arguments will reformat the SQL schema stored by SQLite to be more aesthetically pleasing. (#564)
sqlite-utils 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
}
111513749 https://github.com/dogsheep/pocket-to-sqlite/releases/tag/0.2.3 RE_kwDODLZ_YM4GpZCV 0.2.3 main 0.2.3 0 simonw 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
pocket-to-sqlite 213286752  
109839649 https://github.com/simonw/sqlite-utils/releases/tag/3.33 RE_kwDOCGYnMM4GjAUh 3.33 main 3.33 0 simonw 9599 0 2023-06-26T01:31:22Z 2023-06-26T01:32:30Z
  • sqlite-utils will now use 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)
  • 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.
sqlite-utils 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
}
103740013 https://github.com/simonw/sqlite-utils/releases/tag/3.32.1 RE_kwDOCGYnMM4GLvJt 3.32.1 main 3.32.1 0 simonw 9599 0 2023-05-21T21:11:54Z 2023-05-21T21:12:05Z
  • Examples in the CLI documentation can now all be copied and pasted without needing to remove a leading $. (#551)
  • Documentation now covers Setting up shell completion for bash and zsh. (#552)
sqlite-utils 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
}
103736235 https://github.com/simonw/sqlite-utils/releases/tag/3.32 RE_kwDOCGYnMM4GLuOr 3.32 main 3.32 0 simonw 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. This requires an optional dependency, installed using sqlite-utils install trogon. There is a screenshot in the documentation. (#545)
  • sqlite-utils analyze-tables command (documentation) now has a --common-limit 20 option for changing the number of common/least-common values shown for each column. (#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)
  • Calling sqlite-utils analyze-tables with non-existent columns in the -c/--column option now results in an error message. (#548)
  • The table.analyze_column() method (documented here) now accepts most_common=False and least_common=False options for disabling calculation of those values.
sqlite-utils 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
}
102274005 https://github.com/simonw/sqlite-utils/releases/tag/3.31 RE_kwDOCGYnMM4GGJPV 3.31 main 3.31 0 simonw 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)
  • Automatically locates the SpatiaLite extension on Apple Silicon. Thanks, Chris Amico. (#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)
  • Fixed a bug where table.upsert_all() failed if the not_null= option was passed. (#538)
  • Fixed a ResourceWarning when using sqlite-utils insert. (#534)
  • Now shows a more detailed error message when sqlite-utils insert is called with invalid JSON. (#532)
  • table.convert(..., skip_false=False) and sqlite-utils convert --no-skip-false options, for avoiding a misfeature where the 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)
  • Tables can now be created with self-referential foreign keys. Thanks, Scott Perry. (#537)
  • sqlite-utils transform no longer breaks if a table defines default values for columns. Thanks, Kenny Song. (#509)
  • Fixed a bug where repeated calls to table.transform() did not work correctly. Thanks, Martin Carpenter. (#525)
  • Improved error message if rows_from_file() is passed a non-binary-mode file-like object. (#520)
sqlite-utils 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
}
101136455 https://github.com/simonw/datasette/releases/tag/0.64.3 RE_kwDOBm6k_c4GBzhH 0.64.3 0.64.x 0.64.3 0 simonw 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. (#2065)
datasette 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
}
98864081 https://github.com/dogsheep/swarm-to-sqlite/releases/tag/0.3.4 RE_kwDODD6af84F5IvR 0.3.4 main 0.3.4 0 simonw 9599 0 2023-04-11T03:17:35Z 2023-04-11T03:18:16Z
  • Fixed an error in the checkins_detail view. #15
swarm-to-sqlite 205429375  
95017974 https://github.com/dogsheep/apple-notes-to-sqlite/releases/tag/0.1 RE_kwDOJHON9s4Fqdv2 0.1 main 0.1 0 simonw 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
  • apple-notes-to-sqlite --dump outputs them to standard output as newline-delimited JSON. #3
apple-notes-to-sqlite 611552758  
94985654 https://github.com/simonw/datasette/releases/tag/0.64.2 RE_kwDOBm6k_c4FqV22 0.64.2 0.64.x 0.64.2 0 simonw 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
datasette 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
}
88623648 https://github.com/simonw/datasette/releases/tag/0.64.1 RE_kwDOBm6k_c4FSEog 0.64.1 0.64.x 0.64.1 0 simonw 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)
  • 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)
datasette 107914493  
88331580 https://github.com/simonw/datasette/releases/tag/0.64 RE_kwDOBm6k_c4FQ9U8 0.64 0.63.x 0.64 0 simonw 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 for more details.
  • New 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. (#1409)
  • Building a location to time zone API with 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. The error message shown when an extension cannot be loaded has also been improved. (#1979)
  • Fixed an accessibility issue: the <select> elements in the table filter form now show an outline when they are currently focused. (#1771)
datasette 107914493  
86425242 https://github.com/simonw/datasette/releases/tag/0.63.3 RE_kwDOBm6k_c4FJr6a 0.63.3 0.63.x 0.63.3 0 simonw 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)
  • 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 plugin. (#1955)
datasette 107914493  
86103928 https://github.com/simonw/datasette/releases/tag/1.0a2 RE_kwDOBm6k_c4FIdd4 1.0a2 main 1.0a2 0 simonw 9599 1 2022-12-15T02:02:42Z 2022-12-15T02:03:59Z

The third Datasette 1.0 alpha release adds upsert support to the JSON API, plus the ability to specify finely grained permissions when creating an API token.

See Datasette 1.0a2: Upserts and finely grained permissions for an extended, annotated version of these release notes.

  • New /db/table/-/upsert API, documented here. upsert is an update-or-insert: existing rows will have specified keys updated, but if no row matches the incoming primary key a brand new row will be inserted instead. (#1878)
  • New register_permissions(datasette) plugin hook. Plugins can now register named permissions, which will then be listed in various interfaces that show available permissions. (#1940)
  • The /db/-/create API for creating a table now accepts "ignore": true and "replace": true options when called with the "rows" property that creates a new table based on an example set of rows. This means the API can be called multiple times with different rows, setting rules for what should happen if a primary key collides with an existing row. (#1927)
  • Arbitrary permissions can now be configured at the instance, database and resource (table, SQL view or canned query) level in Datasette's Metadata JSON and YAML files. The new "permissions" key can be used to specify which actors should have which permissions. See Other permissions in metadata for details. (#1636)
  • The /-/create-token page can now be used to create API tokens which are restricted to just a subset of actions, including against specific databases or resources. See API Tokens for details. (#1947)
  • Likewise, the datasette create-token CLI command can now create tokens with a subset of permissions. (#1855)
  • New datasette.create_token() API method <datasette_create_token>` for programmatically creating signed API tokens. (#1951)
  • /db/-/create API now requires actor to have insert-row permission in order to use the "row" or "rows" properties. (#1937)
datasette 107914493  
84755750 https://github.com/simonw/datasette/releases/tag/1.0a1 RE_kwDOBm6k_c4FDUUm 1.0a1 main 1.0a1 0 simonw 9599 1 2022-12-01T21:30:39Z 2022-12-01T21:42:45Z
  • Write APIs now serve correct CORS headers if Datasette is started in --cors mode. See the full list of CORS headers in the documentation. (#1922)
  • Fixed a bug where the _memory database could be written to even though writes were not persisted. (#1917)
  • The https://latest.datasette.io/ demo instance now includes an ephemeral database which can be used to test Datasette's write APIs, using the new datasette-ephemeral-tables plugin to drop any created tables after five minutes. This database is only available if you sign in as the root user using the link on the homepage. (#1915)
  • Fixed a bug where hitting the write endpoints with a GET request returned a 500 error. It now returns a 405 (method not allowed) error instead. (#1916)
  • The list of endpoints in the API explorer now lists mutable databases first. (#1918)
  • The "ignore": true and "replace": true options for the insert API are now documented. (#1924)
datasette 107914493  
84496148 https://github.com/simonw/datasette/releases/tag/1.0a0 RE_kwDOBm6k_c4FCU8U 1.0a0 main 1.0a0 0 simonw 9599 1 2022-11-29T19:57:54Z 2022-11-29T19:58:55Z

This first alpha release of Datasette 1.0 introduces a brand new collection of APIs for writing to the database (#1850), as well as a new API token mechanism baked into Datasette core. Previously, API tokens have only been supported by installing additional plugins.

This is very much a preview: expect many more backwards incompatible API changes prior to the full 1.0 release.

Feedback enthusiastically welcomed, either through issue comments or via the Datasette Discord community.

Signed API tokens

  • New /-/create-token page allowing authenticated users to create signed API tokens that can act on their behalf, see API Tokens. (#1852)
  • New datasette create-token command for creating tokens from the command line: datasette create-token.
  • New allow_signed_tokens setting which can be used to turn off signed token support. (#1856)
  • New max_signed_tokens_ttl setting for restricting the maximum allowed duration of a signed token. (#1858)

Write API

  • New API explorer at /-/api for trying out the API. (#1871)
  • /db/-/create API for Creating a table. (#1882)
  • /db/table/-/insert API for Inserting rows. (#1851)
  • /db/table/-/drop API for Dropping tables. (#1874)
  • /db/table/pk/-/update API for Updating a row. (#1863)
  • /db/table/pk/-/delete API for Deleting a row. (#1864)
datasette 107914493
{
    "url": "https://api.github.com/repos/simonw/datasette/releases/84496148/reactions",
    "total_count": 2,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 2,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
83624627 https://github.com/simonw/datasette/releases/tag/0.63.2 RE_kwDOBm6k_c4E_AKz 0.63.2 0.63.x 0.63.2 0 simonw 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)
  • New datasette publish heroku --generate-dir <dir> option for generating a Heroku deployment directory without deploying it.
datasette 107914493  
82765509 https://github.com/simonw/datasette/releases/tag/0.63.1 RE_kwDOBm6k_c4E7ubF 0.63.1 main 0.63.1 0 simonw 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 setting. (#1883)
  • SQL query is now shown wrapped in a <textarea> if a query exceeds a time limit. (#1876)
  • Fixed an intermittent "Too many open files" error while running the test suite. (#1843)
  • New db.close() internal method.
datasette 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
}
81262417 https://github.com/simonw/datasette/releases/tag/0.63 RE_kwDOBm6k_c4E1_dR 0.63 main 0.63 0 simonw 9599 0 2022-10-27T22:11:26Z 2022-10-27T22:13:32Z

See Datasette 0.63: The annotated release notes 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)
  • --load-extension option now supports entrypoints. Thanks, Alex Garcia. (#1789)
  • Facet size can now be set per-table with the new facet_size table metadata option. (#1804)
  • The truncate_cells_html setting now also affects long URLs in columns. (#1805)
  • The non-JavaScript SQL editor textarea now increases height to fit the SQL query. (#1786)
  • Facets are now displayed with better line-breaks in long values. Thanks, Daniel Rech. (#1794)
  • The settings.json file used in Configuration directory mode is now validated on startup. (#1816)
  • SQL queries can now include leading SQL comments, using /* ... */ or -- ... syntax. Thanks, Charles Nepote. (#1860)
  • SQL query is now re-displayed when terminated with a time limit error. (#1819)
  • The inspect data mechanism is now used to speed up server startup - thanks, Forest Gregg. (#1834)
  • In Configuration directory mode databases with filenames ending in .sqlite or .sqlite3 are now automatically added to the Datasette instance. (#1646)
  • Breadcrumb navigation display now respects the current user's permissions. (#1831)

Plugin hooks and internals

  • The prepare_jinja2_environment(env, datasette) plugin hook now accepts an optional datasette argument. Hook implementations can also now return an async function which will be awaited automatically. (#1809)
  • Database(is_mutable=) now defaults to True. (#1808)
  • The datasette.check_visibility() method now accepts an optional permissions= list, allowing it to take multiple permissions into account at once when deciding if something should be shown as public or private. This has been used to correctly display padlock icons in more places in the Datasette interface. (#1829)
  • Datasette no longer enforces upper bounds on its dependencies. (#1800)

Documentation

  • New tutorial: Cleaning data with sqlite-utils and Datasette.
  • Screenshots in the documentation are now maintained using shot-scraper, as described in Automating screenshots for the Datasette documentation using shot-scraper. (#1844)
  • More detailed command descriptions on the CLI reference page. (#1787)
  • New documentation on Running Datasette using OpenRC - thanks, Adam Simpson. (#1825)
datasette 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
}
80981028 https://github.com/simonw/sqlite-utils/releases/tag/3.30 RE_kwDOCGYnMM4E06wk 3.30 main 3.30 0 simonw 9599 0 2022-10-25T22:34:30Z 2022-10-25T22:34:48Z
  • Now tested against Python 3.11. (#502)
  • New table.search_sql(include_rank=True) option, which adds a rank column to the generated SQL. Thanks, Jacob Chapman. (#480)
  • Progress bars now display for newline-delimited JSON files using the --nl option. Thanks, Mischa Untaga. (#485)
  • New db.close() method. (#504)
  • Conversion functions passed to table.convert(...) can now return lists or dictionaries, which will be inserted into the database as JSON strings. (#495)
  • sqlite-utils install and sqlite-utils uninstall commands for installing packages into the same virtual environment as sqlite-utils, described here. (#483)
  • New sqlite_utils.utils.flatten() utility function. (#500)
  • Documentation on using Just to run tests, linters and build documentation.
  • Documentation now covers the Release process for this package.
sqlite-utils 140912432  
80750406 https://github.com/simonw/datasette/releases/tag/0.63a1 RE_kwDOBm6k_c4E0CdG 0.63a1 main 0.63a1 0 simonw 9599 1 2022-10-24T03:07:09Z 2022-10-24T03:11:47Z
  • SQL query is now re-displayed when terminated with a time limit error. (#1819)
  • New documentation on Running Datasette using OpenRC - thanks, Adam Simpson. (#1825)
  • The inspect data mechanism is now used to speed up server startup - thanks, Forest Gregg. (#1834)
  • In Configuration directory mode databases with filenames ending in .sqlite or .sqlite3 are now automatically added to the Datasette instance. (#1646)
  • Breadcrumb navigation display now respects the current user's permissions. (#1831)
  • Screenshots in the documentation are now maintained using shot-scraper, as described in Automating screenshots for the Datasette documentation using shot-scraper. (#1844)
  • The datasette.check_visibility() method now accepts an optional permissions= list, allowing it to take multiple permissions into account at once when deciding if something should be shown as public or private. This has been used to correctly display padlock icons in more places in the Datasette interface. (#1829)
datasette 107914493
{
    "url": "https://api.github.com/repos/simonw/datasette/releases/80750406/reactions",
    "total_count": 2,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 2,
    "rocket": 0,
    "eyes": 0
}
78197386 https://github.com/simonw/datasette/releases/tag/0.63a0 RE_kwDOBm6k_c4EqTKK 0.63a0 main 0.63a0 0 simonw 9599 1 2022-09-26T21:14:25Z 2022-09-26T21:56:30Z
  • The prepare_jinja2_environment(env, datasette) plugin hook now accepts an optional datasette argument. Hook implementations can also now return an async function which will be awaited automatically. (#1809)
  • --load-extension option now supports entrypoints. Thanks, Alex Garcia. (#1789)
  • New tutorial: Cleaning data with sqlite-utils and Datasette.
  • Facet size can now be set per-table with the new facet_size table metadata option. (#1804)
  • truncate_cells_html setting now also affects long URLs in columns. (#1805)
  • Database(is_mutable=) now defaults to True. (#1808)
  • Non-JavaScript textarea now increases height to fit the SQL query. (#1786)
  • More detailed command descriptions on the CLI reference page. (#1787)
  • Datasette no longer enforces upper bounds on its depenedencies. (#1800)
  • Facets are now displayed with better line-breaks in long values. Thanks, Daniel Rech. (#1794)
  • The settings.json file used in Configuration directory mode is now validated on startup. (#1816)
datasette 107914493  
75560168 https://github.com/simonw/sqlite-utils/releases/tag/3.29 RE_kwDOCGYnMM4EgPTo 3.29 main 3.29 0 simonw 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 for details. (#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)
  • 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)
  • 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 by Alex Garcia. (#470)
  • Functions registered using the db.register_function() method can now have a custom name specified using the new db.register_function(fn, name=...) parameter. (#458)
  • sqlite-utils rows has a new --order option for specifying the sort order for the returned rows. (#469)
  • All of the CLI options that accept Python code blocks can now all be used to define functions that can access modules imported in that same block of code without needing to use the global keyword. (#472)
  • Fixed bug where table.extract() would not behave correctly for columns containing null values. Thanks, Forest Gregg. (#423)
  • New tutorial: Cleaning data with sqlite-utils and Datasette shows how to use sqlite-utils to import and clean an example CSV file.
  • Datasette and sqlite-utils now have a Discord community. Join the Discord here.
sqlite-utils 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
}
75010827 https://github.com/dogsheep/pocket-to-sqlite/releases/tag/0.2.2 RE_kwDODLZ_YM4EeJML 0.2.2 main 0.2.2 0 simonw 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. #7
  • pocket-to-sqlite auth command now updates the existing auth.json file rather than over-writing it. #10
pocket-to-sqlite 213286752  
74385093 https://github.com/simonw/datasette/releases/tag/0.62 RE_kwDOBm6k_c4EbwbF 0.62 main 0.62 0 simonw 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, take a look at the code or read more about it in Datasette Lite: a server-side Python web application running in a browser.

Datasette now has a Discord community for questions and discussions about Datasette and its ecosystem of projects.

Features

  • Datasette is now compatible with Pyodide. This is the enabling technology behind Datasette Lite. (#1733)
  • Database file downloads now implement conditional GET using ETags. (#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)
  • Datasette now runs some SQL queries in parallel. This has limited impact on performance, see this research issue for details.
  • New --nolock option for ignoring file locks when opening read-only databases. (#1744)
  • Spaces in the database names in URLs are now encoded as + rather than ~20. (#1701)
  • <Binary: 2427344 bytes> is now displayed as <Binary: 2,427,344 bytes> and is accompanied by tooltip showing "2.3MB". (#1712)
  • The base Docker image used by datasette publish cloudrun, datasette package and the official Datasette image has been upgraded to 3.10.6-slim-bullseye. (#1768)
  • Canned writable queries against immutable databases now show a warning message. (#1728)
  • datasette publish cloudrun has a new --timeout option which can be used to increase the time limit applied by the Google Cloud build environment. Thanks, Tim Sherratt. (#1717)
  • datasette publish cloudrun has new --min-instances and --max-instances options. (#1779)

Plugin hooks

  • New plugin hook: handle_exception(), for custom handling of exceptions caught by Datasette. (#1770)
  • The render_cell() plugin hook is now also passed a row argument, representing the sqlite3.Row object that is being rendered. (#1300)
  • The configuration directory is now stored in datasette.config_dir, making it available to plugins. Thanks, Chris Amico. (#1766)

Bug fixes

  • Don't show the facet option in the cog menu if faceting is not allowed. (#1683)
  • ?_sort and ?_sort_desc now work if the column that is being sorted has been excluded from the query using ?_col= or ?_nocol=. (#1773)
  • Fixed bug where ?_sort_desc was duplicated in the URL every time the Apply button was clicked. (#1738)

Documentation

  • Examples in the documentation now include a copy-to-clipboard button. (#1748)
  • Documentation now uses the Furo Sphinx theme. (#1746)
  • Code examples in the documentation are now all formatted using Black. (#1718)
  • Request.fake() method is now documented, see Request object.
  • New documentation for plugin authors: Registering a plugin for the duration of a test. (#903)
datasette 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
}
72184309 https://github.com/simonw/datasette/releases/tag/0.62a1 RE_kwDOBm6k_c4ETXH1 0.62a1 main 0.62a1 0 simonw 9599 1 2022-07-18T01:06:37Z 2022-07-18T01:09:05Z
  • New plugin hook: handle_exception(), for custom handling of exceptions caught by Datasette. (#1770)
  • The render_cell() plugin hook is now also passed a row argument, representing the sqlite3.Row object that is being rendered. (#1300)
  • New --nolock option for ignoring file locks when opening read-only databases. (#1744)
  • Documentation now uses the Furo Sphinx theme. (#1746)
  • Datasette now has a Discord community.
  • Database file downloads now implement conditional GET using ETags. (#1739)
  • Examples in the documentation now include a copy-to-clipboard button. (#1748)
  • HTML for facet results and suggested results has been extracted out into new templates _facet_results.html and _suggested_facets.html. Thanks, M. Nasimul Haque. (#1759)
datasette 107914493  
72130482 https://github.com/simonw/sqlite-utils/releases/tag/3.28 RE_kwDOCGYnMM4ETJ-y 3.28 main 3.28 0 simonw 9599 0 2022-07-15T22:56:01Z 2022-07-15T23:02:45Z
  • New table.duplicate(new_name) method for creating a copy of a table with a matching schema and row contents. Thanks, David. (#449)
  • New sqlite-utils duplicate data.db table_name new_name CLI command for Duplicating tables. (#454)
  • sqlite_utils.utils.rows_from_file() is now a documented API. 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)
  • 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. (#445)
  • sqlite_utils.utils.chunks() is now a documented API for splitting an iterator into chunks. (#451)
  • sqlite-utils enable-fts now has a --replace option for replacing the existing FTS configuration for a table. (#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)
sqlite-utils 140912432  
69481688 https://github.com/simonw/sqlite-utils/releases/tag/3.27 RE_kwDOCGYnMM4EJDTY 3.27 main 3.27 0 simonw 9599 0 2022-06-15T04:30:47Z 2022-06-15T04:34:45Z

See also the annotated release notes for this release.

  • Documentation now uses the Furo Sphinx theme. (#435)
  • Code examples in documentation now have a "copy to clipboard" button. (#436)
  • sqlite_utils.utils.utils.rows_from_file() is now a documented API, see Reading rows from a file. (#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)
  • 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. (#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(). (#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)
sqlite-utils 140912432  
65847605 https://github.com/simonw/datasette/releases/tag/0.62a0 RE_kwDOBm6k_c4D7ME1 0.62a0 main 0.62a0 0 simonw 9599 1 2022-05-02T21:38:34Z 2022-05-02T21:39:52Z
  • Datasette now runs some SQL queries in parallel. This has limited impact on performance, see this research issue for details.
  • Datasette should now be compatible with Pyodide. (#1733)
  • datasette publish cloudrun has a new --timeout option which can be used to increase the time limit applied by the Google Cloud build environment. Thanks, Tim Sherratt. (#1717)
  • Spaces in database names are now encoded as + rather than ~20. (#1701)
  • <Binary: 2427344 bytes> is now displayed as <Binary: 2,427,344 bytes> and is accompanied by tooltip showing "2.3MB". (#1712)
  • Don't show the facet option in the cog menu if faceting is not allowed. (#1683)
  • Code examples in the documentation are now all formatted using Black. (#1718)
  • Request.fake() method is now documented, see Request object.
datasette 107914493  
65833874 https://github.com/simonw/sqlite-utils/releases/tag/3.26.1 RE_kwDOCGYnMM4D7IuS 3.26.1 main 3.26.1 0 simonw 9599 0 2022-05-02T18:17:19Z 2022-05-02T18:18:01Z
  • Now depends on click-default-group-wheel, a pure Python wheel package. This means you can install and use this package with Pyodide, which can run Python entirely in your browser using WebAssembly. (#429)

Try that out using the Pyodide REPL:

```pycon

import micropip await micropip.install("sqlite-utils") import sqlite_utils db = sqlite_utils.Database(memory=True) list(db.query("select 3 * 5")) [{'3 * 5': 15}] ```

sqlite-utils 140912432
{
    "url": "https://api.github.com/repos/simonw/sqlite-utils/releases/65833874/reactions",
    "total_count": 1,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 1,
    "eyes": 0
}
64414802 https://github.com/simonw/sqlite-utils/releases/tag/3.26 RE_kwDOCGYnMM4D1uRS 3.26 main 3.26 0 simonw 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. (#416)
  • Fixed a bug where --multi could not be used in combination with --dry-run for the convert command. (#415)
  • New documentation: Using a convert() function to execute initialization. (#420)
  • More robust detection for whether or not deterministic=True is supported. (#425)
sqlite-utils 140912432  
62620866 https://github.com/simonw/datasette/releases/tag/0.61.1 RE_kwDOBm6k_c4Du4TC 0.61.1 main 0.61.1 0 simonw 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) returned errors when executing custom SQL queries. (#1682)
datasette 107914493  
62608891 https://github.com/simonw/datasette/releases/tag/0.61 RE_kwDOBm6k_c4Du1X7 0.61 main 0.61 0 simonw 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.

  • 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. (#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 for details. (#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)
  • Datasette is now covered by a Code of Conduct. (#1654)
  • Python 3.6 is no longer supported. (#1577)
  • Tests now run against Python 3.11-dev. (#1621)
  • New datasette.ensure_permissions(actor, permissions) internal method for checking multiple permissions at once. (#1675)
  • New datasette.check_visibility(actor, action, resource=None) internal method for checking if a user can see a resource that would otherwise be invisible to unauthenticated users. (#1678)
  • Table and row HTML pages now include a <link rel="alternate" type="application/json+datasette" href="..."> element and return a Link: URL; rel="alternate"; type="application/json+datasette" HTTP header pointing to the JSON version of those pages. (#1533)
  • Access-Control-Expose-Headers: Link is now added to the CORS headers, allowing remote JavaScript to access that header.
  • Canned queries are now shown at the top of the database page, directly below the SQL editor. Previously they were shown at the bottom, below the list of tables. (#1612)
  • Datasette now has a default favicon. (#1603)
  • sqlite_stat tables are now hidden by default. (#1587)
  • SpatiaLite tables data_licenses, KNN and KNN2 are now hidden by default. (#1601)
  • SQL query tracing mechanism now works for queries executed in asyncio sub-tasks, such as those created by asyncio.gather(). (#1576)
  • datasette.tracer mechanism is now documented.
  • Common Datasette symbols can now be imported directly from the top-level datasette package, see Import shortcuts. Those symbols are Response, Forbidden, NotFound, hookimpl, actor_matches_allow. (#957)
  • /-/versions page now returns additional details for libraries used by SpatiaLite. (#1607)
  • Documentation now links to the Datasette Tutorials.
  • Datasette will now also look for SpatiaLite in /opt/homebrew - thanks, Dan Peterson. (#1649)
  • Fixed bug where custom pages did not work on Windows. Thanks, Robert Christie. (#1545)
  • Fixed error caused when a table had a column named n. (#1228)
datasette 107914493  
62259800 https://github.com/simonw/datasette/releases/tag/0.61a0 RE_kwDOBm6k_c4DtgJY 0.61a0 main 0.61a0 0 simonw 9599 1 2022-03-20T01:14:40Z 2022-03-20T01:16:41Z
  • Removed hashed URL mode from Datasette. The new datasette-hashed-urls plugin can be used to achieve the same result, see datasette-hashed-urls for details. (#1661)
  • Databases can now have a custom path within the Datasette instance that is indpendent of the database name, using the db.route property. (#1668)
  • 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. (#1657)
  • Table and row HTML pages now include a <link rel="alternate" type="application/json+datasette" href="..."> element and return a Link: URL; rel="alternate"; type="application/json+datasette" HTTP header pointing to the JSON version of those pages. (#1533)
  • Access-Control-Expose-Headers: Link is now added to the CORS headers, allowing remote JavaScript to access that header.
  • Canned queries are now shown at the top of the database page, directly below the SQL editor. Previously they were shown at the bottom, below the list of tables. (#1612)
  • Datasette now has a default favicon. (#1603)
  • sqlite_stat tables are now hidden by default. (#1587)
  • SpatiaLite tables data_licenses, KNN and KNN2 are now hidden by default. (#1601)
  • Python 3.6 is no longer supported. (#1577)
  • Tests now run against Python 3.11-dev. (#1621)
  • Fixed bug where custom pages did not work on Windows. Thanks, Robert Christie. (#1545)
  • SQL query tracing mechanism now works for queries executed in asyncio sub-tasks, such as those created by asyncio.gather(). (#1576)
  • datasette.tracer mechanism is now documented.
  • Common Datasette symbols can now be imported directly from the top-level datasette package, see Import shortcuts. Those symbols are Response, Forbidden, NotFound, hookimpl, actor_matches_allow. (#957)
  • /-/versions page now returns additional details for libraries used by SpatiaLite. (#1607)
  • Documentation now links to the Datasette Tutorials.
  • Datasette will now also look for SpatiaLite in /opt/homebrew - thanks, Dan Peterson. (#1649)
  • Datasette is now covered by a Code of Conduct. (#1654)
datasette 107914493  
61628678 https://github.com/simonw/sqlite-utils/releases/tag/3.25.1 RE_kwDOCGYnMM4DrGEG 3.25.1 main 3.25.1 0 simonw 9599 0 2022-03-11T18:34:44Z 2022-03-11T18:35:41Z
  • Improved display of type information and parameters in the API reference documentation. #413
sqlite-utils 140912432  
60770975 https://github.com/simonw/sqlite-utils/releases/tag/3.25 RE_kwDOCGYnMM4Dn0qf 3.25 main 3.25 0 simonw 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 for details. (#343)
  • New db.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) caused errors on versions of SQLite prior to 3.8.3. (#408)
  • New documented hash_record(record, keys=...) function.
sqlite-utils 140912432  
59656694 https://github.com/simonw/sqlite-utils/releases/tag/3.24 RE_kwDOCGYnMM4Djkn2 3.24 main 3.24 0 simonw 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)
    • sqlite-utils create-database --init-spatialite option for initializing SpatiaLite on a newly created database.
    • sqlite-utils add-geometry-column command for adding geometry columns.
    • sqlite-utils create-spatial-index command for adding spatial indexes.
  • db[table].create(..., if_not_exists=True) option for creating a table only if it does not already exist. (#397)
  • Database(memory_name="my_shared_database") parameter for creating a named in-memory database that can be shared between multiple connections. (#405)
  • Documentation now describes how to add a primary key to a rowid table using sqlite-utils transform. (#403)
sqlite-utils 140912432
{
    "url": "https://api.github.com/repos/simonw/sqlite-utils/releases/59656694/reactions",
    "total_count": 2,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 1,
    "eyes": 0
}
58950482 https://github.com/simonw/datasette/releases/tag/0.60.2 RE_kwDOBm6k_c4Dg4NS 0.60.2 0.60.x 0.60.2 0 simonw 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)
datasette 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
}
58663467 https://github.com/simonw/sqlite-utils/releases/tag/3.23 RE_kwDOCGYnMM4DfyIr 3.23 main 3.23 0 simonw 9599 0 2022-02-04T06:41:46Z 2022-02-04T06:44:19Z

This release introduces four new utility methods for working with SpatiaLite. Thanks, Chris Amico. (#330)

  • sqlite_utils.utils.find_spatialite() finds the location of the SpatiaLite module on disk.
  • db.init_spatialite() initializes SpatiaLite for the given database.
  • table.add_geometry_column(...) adds a geometry column to an existing table.
  • table.create_spatial_index(...) creates a spatial index for a column.
  • sqlite-utils batch now accepts a --batch-size option. (#392)
sqlite-utils 140912432  
57980102 https://github.com/simonw/sqlite-utils/releases/tag/3.22.1 RE_kwDOCGYnMM4DdLTG 3.22.1 main 3.22.1 0 simonw 9599 0 2022-01-26T03:28:30Z 2022-01-26T03:29:24Z
  • All commands now include example usage in their --help - see CLI reference. (#384)
  • Python library documentation has a new Getting started section. (#387)
  • Documentation now uses Plausible analytics. (#389)
sqlite-utils 140912432  
57629048 https://github.com/simonw/datasette/releases/tag/0.60.1 RE_kwDOBm6k_c4Db1l4 0.60.1 0.60.x 0.60.1 0 simonw 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)
datasette 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
}
57068381 https://github.com/simonw/datasette/releases/tag/0.60 RE_kwDOBm6k_c4DZstd 0.60 main 0.60 0 simonw 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), which runs on the table page and can be used to support new custom query string parameters that modify the SQL query. (#473)
  • Added two additional methods for writing to the database: await db.execute_write_script(sql, block=True) and await db.execute_write_many(sql, params_seq, block=True). (#1570)
  • The db.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)
  • Database write connections now execute the prepare_connection(conn, database, datasette) plugin hook. (#1564)
  • The Datasette() constructor no longer requires the files= argument, and is now documented at Datasette class. (#1563)
  • The tracing feature now traces write queries, not just read queries. (#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)

Faceting

  • The number of unique values in a facet is now always displayed. Previously it was only displayed if the user specified ?_facet_size=max. (#1556)
  • Facets of type date or array can now be configured in metadata.json, see Facets in metadata.json. Thanks, David Larlet. (#1552)
  • New ?_nosuggest=1 parameter for table views, which disables facet suggestion. (#1557)
  • Fixed bug where ?_facet_array=tags&_facet=tags would only display one of the two selected facets. (#625)

Other small fixes

  • Made several performance improvements to the database schema introspection code that runs when Datasette first starts up. (#1555)
  • Label columns detected for foreign keys are now case-insensitive, so Name or TITLE will be detected in the same way as name or title. (#1544)
  • Upgraded Pluggy dependency to 1.0. (#1575)
  • Now using Plausible analytics for the Datasette documentation.
  • explain query plan is now allowed with varying amounts of whitespace in the query. (#1588)
  • New CLI reference page showing the output of --help for each of the datasette sub-commands. This lead to several small improvements to the help copy. (#1594)
  • Fixed bug where writable canned queries could not be used with custom templates. (#1547)
  • Improved fix for a bug where columns with a underscore prefix could result in unnecessary hidden form fields. (#1527)
datasette 107914493  
56875206 https://github.com/simonw/sqlite-utils/releases/tag/3.22 RE_kwDOCGYnMM4DY9jG 3.22 main 3.22 0 simonw 9599 0 2022-01-11T23:44:48Z 2022-01-11T23:49:28Z
  • New CLI reference documentation page, listing the output of --help for every one of the CLI commands. (#383)
  • sqlite-utils rows now has --limit and --offset options for paginating through data. (#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. (#382)
sqlite-utils 140912432  
56788942 https://github.com/simonw/sqlite-utils/releases/tag/3.21 RE_kwDOCGYnMM4DYofO 3.21 main 3.21 0 simonw 9599 0 2022-01-11T02:34:21Z 2022-01-11T02:35:02Z

CLI and Python library improvements to help run ANALYZE 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.

  • New sqlite-utils create-database command for creating new empty database files. (#348)
  • New Python methods for running ANALYZE against a database, table or index: db.analyze() and table.analyze(), see Optimizing index usage with ANALYZE. (#366)
  • New sqlite-utils analyze command for running ANALYZE using the CLI. (#379)
  • The create-index, insert and upsert commands now have a new --analyze option for running ANALYZE after the command has completed. (#379)
  • New sqlite-utils bulk command 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)
  • The CLI tool can now also be run using python -m sqlite_utils. (#368)
  • Using --fmt now implies --table, so you don't need to pass both options. (#374)
  • The --convert function applied to rows can now modify the row in place. (#371)
  • The insert-files command supports two new columns: stem and suffix. (#372)
  • The --nl import option now ignores blank lines in the input. (#376)
  • Fixed bug where streaming input to the insert command with --batch-size 1 would appear to only commit after several rows had been ingested, due to unnecessary input buffering. (#364)
sqlite-utils 140912432  
56514583 https://github.com/simonw/sqlite-utils/releases/tag/3.20 RE_kwDOCGYnMM4DXlgX 3.20 main 3.20 0 simonw 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.
  • 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, including details on special behavior when combined with --lines and --text. (#356)
  • sqlite-utils convert now accepts a code value of - to read code from standard input. (#353)
  • sqlite-utils convert also now accepts code that defines a named convert(value) function, see Converting data in columns.
  • db.supports_strict property showing if the database connection supports SQLite strict tables.
  • table.strict property (see .strict) indicating if the table uses strict mode. (#344)
  • Fixed bug where sqlite-utils upsert ... --detect-types ignored the --detect-types option. (#362)
sqlite-utils 140912432  
55633923 https://github.com/simonw/datasette/releases/tag/0.60a1 RE_kwDOBm6k_c4DUOgD 0.60a1 main 0.60a1 0 simonw 9599 1 2021-12-19T22:08:10Z 2021-12-19T22:11:16Z
  • Database write connections now execute the prepare_connection(conn, database, datasette) plugin hook. (#1564)
  • The Datasette() constructor no longer requires the files= argument, and is now documented at Datasette class. (#1563)
  • The tracing feature now traces write queries, not just read queries. (#1568)
  • Added two methods for writing to the database: await db.execute_write_script(sql, block=False) and await db.execute_write_many(sql, params_seq, block=False). (#1570)
  • Made several performance improvements to the database schema introspection code that runs when Datasette first starts up. (#1555)
  • Fixed bug where writable canned queries could not be used with custom templates. (#1547)
datasette 107914493  
55569404 https://github.com/simonw/datasette/releases/tag/0.60a0 RE_kwDOBm6k_c4DT-v8 0.60a0 main 0.60a0 0 simonw 9599 1 2021-12-17T19:13:51Z 2021-12-17T19:15:38Z
  • New plugin hook: filters_from_request(request, database, table, datasette), which runs on the table page and can be used to support new custom query string parameters that modify the SQL query. (#473)
  • The number of unique values in a facet is now always displayed. Previously it was only displayed if the user specified ?_facet_size=max. (#1556)
  • Fixed bug where ?_facet_array=tags&_facet=tags would only display one of the two selected facets. (#625)
  • Facets of type date or array can now be configured in metadata.json, see Facets in metadata.json. Thanks, David Larlet. (#1552)
  • New ?_nosuggest=1 parameter for table views, which disables facet suggestion. (#1557)
  • Label columns detected for foreign keys are now case-insensitive, so Name or TITLE will be detected in the same way as name or title. (#1544)
  • 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)
datasette 107914493  
54439832 https://github.com/dogsheep/github-to-sqlite/releases/tag/2.8.3 RE_kwDODFdgUs4DPq-Y 2.8.3 main 2.8.3 0 simonw 9599 0 2021-12-01T19:36:52Z 2021-12-01T19:37:19Z
  • Minor documentation and inline help improvements.
github-to-sqlite 207052882  
54295399 https://github.com/simonw/datasette/releases/tag/0.59.4 RE_kwDOBm6k_c4DPHtn 0.59.4 main 0.59.4 0 simonw 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)
  • 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)
  • Upgraded dependencies aiofiles, black and janus.
datasette 107914493  
53785562 https://github.com/simonw/sqlite-utils/releases/tag/3.19 RE_kwDOCGYnMM4DNLPa 3.19 main 3.19 0 simonw 9599 0 2021-11-21T04:41:56Z 2021-11-21T04:42:24Z
  • The table.lookup() method 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)
sqlite-utils 140912432  
53781549 https://github.com/simonw/datasette/releases/tag/0.59.3 RE_kwDOBm6k_c4DNKQt 0.59.3 main 0.59.3 0 simonw 9599 0 2021-11-20T23:40:21Z 2021-11-20T23:41:33Z
  • Fixed numerous bugs when running Datasette behind a proxy with a prefix URL path using the base_url setting. A live demo of this mode is now available at datasette-apache-proxy-demo.datasette.io/prefix/. (#1519, #838)
  • ?column__arraycontains= and ?column__arraynotcontains= table parameters now also work against SQL views. (#448)
  • ?_facet_array=column no longer returns incorrect counts if columns contain the same value more than once.
datasette 107914493  
53698399 https://github.com/simonw/sqlite-utils/releases/tag/3.19a0 RE_kwDOCGYnMM4DM19f 3.19a0 main 3.19a0 0 simonw 9599 1 2021-11-19T07:27:41Z 2021-11-19T07:28:50Z
  • Extra keyword arguments for table.lookup() which are passed through to .insert(). #342
sqlite-utils 140912432  
53350811 https://github.com/simonw/sqlite-utils/releases/tag/3.18 RE_kwDOCGYnMM4DLhGb 3.18 main 3.18 0 simonw 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. (#339)
  • sqlite-utils memory now has a --flatten option for flattening nested JSON objects into separate columns, consistent with sqlite-utils insert. (#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)
  • Added py.typed to the module, so mypy should now correctly pick up the type annotations. Thanks, Andreas Longo. (#331)
  • Now depends on python-dateutil instead of depending on dateutils. Thanks, Denys Pavlov. (#324)
  • table.create() (see Explicitly creating a table) now handles dict, list and tuple types, mapping them to TEXT columns in SQLite so that they can be stored encoded as JSON. (#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)
  • Now also tested against Python 3.10. (#330)
sqlite-utils 140912432
{
    "url": "https://api.github.com/repos/simonw/sqlite-utils/releases/53350811/reactions",
    "total_count": 1,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 1,
    "eyes": 0
}
53323406 https://github.com/simonw/datasette/releases/tag/0.59.2 RE_kwDOBm6k_c4DLaaO 0.59.2 main 0.59.2 0 simonw 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)
  • Applying ?_nocol= to a column no longer removes that column from the filtering interface. (#1503)
  • Official Datasette Docker container now uses Debian Bullseye as the base image. (#1497)
  • Datasette is four years old today! Here's the original release announcement from 2017.
datasette 107914493  
51940513 https://github.com/simonw/datasette/releases/tag/0.59.1 RE_kwDOBm6k_c4DGIyh 0.59.1 main 0.59.1 0 simonw 9599 0 2021-10-24T22:29:56Z 2021-10-24T22:32:25Z
  • Fix compatibility with Python 3.10. (#1482)
  • Documentation on how to use Named parameters with integer and floating point values. (#1496)
datasette 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
}
51387349 https://github.com/simonw/datasette/releases/tag/0.59 RE_kwDOBm6k_c4DEBvV 0.59 main 0.59 0 simonw 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. (#942)
  • New register_commands() plugin hook allows plugins to register additional Datasette CLI commands, e.g. datasette mycommand file.db. (#1449)
  • Adding ?_facet_size=max to a table page now shows the number of unique values in each facet. (#1423)
  • Upgraded dependency httpx 0.20 - the undocumented allow_redirects= parameter to datasette.client is now follow_redirects=, and defaults to False where it previously defaulted to True. (#1488)
  • The --cors option now causes Datasette to return the Access-Control-Allow-Headers: Authorization header, in addition to Access-Control-Allow-Origin: *. (#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)
  • Renamed --help-config option to --help-settings. (#1431)
  • datasette.databases property is now a documented API. (#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)
  • The render_cell() plugin hook can now return an awaitable function. This means the hook can execute SQL queries. (#1425)
  • register_routes(datasette) plugin hook now accepts an optional datasette argument. (#1404)
  • New hide_sql canned query option for defaulting to hiding the SQL quey used by a canned query, see Additional canned query options. (#1422)
  • New --cpu option for datasette publish cloudrun. (#1420)
  • If Rich is installed in the same virtual environment as Datasette, it will be used to provide enhanced display of error tracebacks on the console. (#1416)
  • datasette.utils parse_metadata(content) function, used by the new datasette-remote-metadata plugin, is now a documented API. (#1405)
  • Fixed bug where ?_next=x&_sort=rowid could throw an error. (#1470)
  • Column cog menu no longer shows the option to facet by a column that is already selected by the default facets in metadata. (#1469)
datasette 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
}
50089123 https://github.com/simonw/sqlite-utils/releases/tag/3.17.1 RE_kwDOCGYnMM4C_Eyj 3.17.1 main 3.17.1 0 simonw 9599 0 2021-09-22T20:49:36Z 2021-09-22T20:51:04Z
  • sqlite-utils memory now works if files passed to it share the same file name. (#325)
  • sqlite-utils query now returns [] in JSON mode if no rows are returned. (#328)
sqlite-utils 140912432  
50003635 https://github.com/dogsheep/twitter-to-sqlite/releases/tag/0.22 RE_kwDODEm0Qs4C-v6z 0.22 main 0.22 0 simonw 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
twitter-to-sqlite 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
}
48604143 https://github.com/simonw/datasette/releases/tag/0.59a2 MDc6UmVsZWFzZTQ4NjA0MTQz 0.59a2 main 0.59a2 0 simonw 9599 1 2021-08-28T01:55:54Z 2021-08-28T01:57:38Z
  • Columns can now have associated metadata descriptions in metadata.json, see Column descriptions. (#942)
  • New register_commands() plugin hook allows plugins to register additional Datasette CLI commands, e.g. datasette mycommand file.db. (#1449)
  • Adding ?_facet_size=max to a table page now shows the number of unique values in each facet. (#1423)
  • 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)
  • Renamed --help-config option to --help-settings. (#1431)
  • datasette.databases property is now a documented API. (#1443)
  • Datasette base template now wraps everything other than the <footer> in a <div class="not-footer"> element, to help with advanced CSS customization. (#1446)
datasette 107914493  
48523966 https://github.com/dogsheep/evernote-to-sqlite/releases/tag/0.3.2 MDc6UmVsZWFzZTQ4NTIzOTY2 0.3.2 main 0.3.2 0 simonw 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
evernote-to-sqlite 303218369  
48389722 https://github.com/simonw/sqlite-utils/releases/tag/3.17 MDc6UmVsZWFzZTQ4Mzg5NzIy 3.17 main 3.17 0 simonw 9599 0 2021-08-24T23:40:18Z 2021-08-24T23:42:22Z
  • The sqlite-utils memory command has a new --analyze option, which runs the equivalent of the analyze-tables command directly against the in-memory database created from the incoming CSV or JSON data. (#320)
  • sqlite-utils 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)
sqlite-utils 140912432
{
    "url": "https://api.github.com/repos/simonw/sqlite-utils/releases/48389722/reactions",
    "total_count": 1,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 1,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
48151477 https://github.com/dogsheep/healthkit-to-sqlite/releases/tag/1.0.1 MDc6UmVsZWFzZTQ4MTUxNDc3 1.0.1 main 1.0.1 0 simonw 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
healthkit-to-sqlite 197882382  
48150315 https://github.com/dogsheep/twitter-to-sqlite/releases/tag/0.21.4 MDc6UmVsZWFzZTQ4MTUwMzE1 0.21.4 main 0.21.4 0 simonw 9599 0 2021-08-20T00:14:08Z 2021-08-20T00:14:30Z
  • Fix for since_id error with user-timeline. #57
  • Document the use of --stop_after with favorites - thanks, Mike Lee Williams. #49
  • Fixes for Twitter archive imports, thanks Jacob Kaplan-Moss. #55
twitter-to-sqlite 206156866  
48077246 https://github.com/simonw/sqlite-utils/releases/tag/3.16 MDc6UmVsZWFzZTQ4MDc3MjQ2 3.16 main 3.16 0 simonw 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)
  • New db.quote_fts(value) method, see Quoting characters for use in search - thanks, Mark Neumann. (#246)
  • table.search() now accepts an optional quote=True parameter. (#296)
  • CLI command sqlite-utils search now accepts a --quote option. (#296)
  • Fixed bug where --no-headers and --tsv options to sqlite-utils insert could not be used together. (#295)
  • Various small improvements to API reference documentation.
sqlite-utils 140912432  
47636109 https://github.com/simonw/sqlite-utils/releases/tag/3.15.1 MDc6UmVsZWFzZTQ3NjM2MTA5 3.15.1 main 3.15.1 0 simonw 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)
  • New API Reference documentation page, powered by those docstrings.
  • Fixed bug where .add_foreign_keys() failed to raise an error if called against a View. (#313)
  • Fixed bug where .delete_where() returned a [] instead of returning self if called against a non-existant table. (#315)
sqlite-utils 140912432
{
    "url": "https://api.github.com/repos/simonw/sqlite-utils/releases/47636109/reactions",
    "total_count": 1,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 1,
    "rocket": 0,
    "eyes": 0
}
47569134 https://github.com/simonw/sqlite-utils/releases/tag/3.15 MDc6UmVsZWFzZTQ3NTY5MTM0 3.15 main 3.15 0 simonw 9599 0 2021-08-09T22:42:06Z 2021-08-09T22:43:16Z
  • sqlite-utils insert --flatten option for flattening nested JSON objects to create tables with column names like topkey_nestedkey. (#310)
  • Fixed several spelling mistakes in the documentation, spotted using codespell.
  • Errors that occur while using the sqlite-utils CLI tool now show the responsible SQL and query parameters, if possible. (#309)
sqlite-utils 140912432  
47507174 https://github.com/simonw/datasette/releases/tag/0.59a1 MDc6UmVsZWFzZTQ3NTA3MTc0 0.59a1 main 0.59a1 0 simonw 9599 1 2021-08-09T01:13:03Z 2021-08-09T01:14:06Z
  • The render_cell() plugin hook can now return an awaitable function. This means the hook can execute SQL queries. (#1425)
datasette 107914493
{
    "url": "https://api.github.com/repos/simonw/datasette/releases/47507174/reactions",
    "total_count": 1,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 1,
    "rocket": 0,
    "eyes": 0
}
47461737 https://github.com/simonw/datasette/releases/tag/0.59a0 MDc6UmVsZWFzZTQ3NDYxNzM3 0.59a0 main 0.59a0 0 simonw 9599 1 2021-08-07T05:40:07Z 2021-08-07T05:42:25Z
  • register_routes(datasette) plugin hook now accepts an optional datasette argument. (#1404)
  • New hide_sql canned query option for defaulting to hiding the SQL quey used by a canned query, see Additional canned query options. (#1422)
  • New --cpu option for datasette publish cloudrun. (#1420)
  • If Rich is installed in the same virtual environment as Datasette, it will be used to provide enhanced display of error tracebacks on the console. (#1416)
  • datasette.utils parse_metadata(content) function, used by the new datasette-remote-metadata plugin, is now a documented API. (#1405)
datasette 107914493  
47185841 https://github.com/simonw/sqlite-utils/releases/tag/3.14 MDc6UmVsZWFzZTQ3MTg1ODQx 3.14 main 3.14 0 simonw 9599 0 2021-08-02T21:29:16Z 2021-08-02T21:34:43Z

This release introduces the new sqlite-utils convert command (#251) and corresponding table.convert(...) Python method (#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 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 and the table.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)
  • New --silent option for the sqlite-utils insert-files command to hide the terminal progress bar, consistent with the --silent option for sqlite-utils convert. (#301)
sqlite-utils 140912432  
46720847 https://github.com/simonw/sqlite-utils/releases/tag/3.13 MDc6UmVsZWFzZTQ2NzIwODQ3 3.13 main 3.13 0 simonw 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)
  • sqlite-utils memory --help now describes the --schema option.
sqlite-utils 140912432  
46341814 https://github.com/simonw/datasette/releases/tag/0.58.1 MDc6UmVsZWFzZTQ2MzQxODE0 0.58.1 main 0.58.1 0 simonw 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)
datasette 107914493  
46222036 https://github.com/simonw/datasette/releases/tag/0.58 MDc6UmVsZWFzZTQ2MjIyMDM2 0.58 main 0.58 0 simonw 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. (#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. (#1389)
  • New plugin hook: get_metadata(datasette, key, database, table), for returning custom metadata for an instance, database or table. Thanks, Brandon Roberts! (#1384)
  • New plugin hook: skip_csrf(datasette, scope), for opting out of CSRF protection based on the incoming request. (#1377)
  • The menu_links(), table_actions() and database_actions() plugin hooks all gained a new optional request argument providing access to the current request. (#1371)
  • Major performance improvement for Datasette faceting. (#1394)
  • Improved documentation for Running Datasette behind a proxy to recommend using ProxyPreservehost On with Apache. (#1387)
  • POST requests to endpoints that do not support that HTTP verb now return a 405 error.
  • db.path can now be provided as a pathlib.Path object, useful when writing unit tests for plugins. Thanks, Chris Amico. (#1365)
datasette 107914493  
45251624 https://github.com/simonw/sqlite-utils/releases/tag/3.12 MDc6UmVsZWFzZTQ1MjUxNjI0 3.12 main 3.12 0 simonw 9599 0 2021-06-25T17:59:05Z 2021-06-25T18:00:18Z
  • New db.query(sql, params) method, which executes a SQL query and returns the results as an iterator over Python dictionaries. (#290)
  • This project now uses flake8 and has started to use mypy. (#291)
  • New documentation on contributing to this project. (#292)
sqlite-utils 140912432  
45182156 https://github.com/simonw/datasette/releases/tag/0.58a1 MDc6UmVsZWFzZTQ1MTgyMTU2 0.58a1 main 0.58a1 0 simonw 9599 1 2021-06-24T16:24:59Z 2021-06-24T16:29:09Z
  • New plugin hook: skip_csrf(datasette, scope), for opting out of CSRF protection based on the incoming request. (#1377)
  • POST requests to endpoints that do not support that HTTP verb now return a 405 error.
  • db.path can now be provided as a pathlib.Path object, useful when writing unit tests for plugins. Thanks, Chris Amico. (#1365)
datasette 107914493
{
    "url": "https://api.github.com/repos/simonw/datasette/releases/45182156/reactions",
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
44927292 https://github.com/simonw/sqlite-utils/releases/tag/3.11 MDc6UmVsZWFzZTQ0OTI3Mjky 3.11 main 3.11 0 simonw 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. (#288)
  • Added installation instructions. (#286)
sqlite-utils 140912432  
44904928 https://github.com/simonw/sqlite-utils/releases/tag/3.10 MDc6UmVsZWFzZTQ0OTA0OTI4 3.10 main 3.10 0 simonw 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 organization on GitHub using this JSON API, 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"}]

Here the species.csv file becomes the species table, the creatures.csv file becomes the creatures table and the output is JSON, the default output format.

You can also use the --attach option to attach existing SQLite database files to the in-memory database, in order to join data from CSV or JSON directly against your existing tables.

Full documentation of this new feature is available in Querying data directly using an in-memory database. (#272)

sqlite-utils insert --detect-types

The sqlite-utils insert command can be used to insert data from JSON, CSV or TSV files into a SQLite database file. The new --detect-types option (shortcut -d), when used in conjunction with a CSV or TSV import, will automatically detect if columns in the file are integers or floating point numbers as opposed to treating everything as a text column and create the new table with the corresponding schema. See Inserting CSV or TSV data for details. (#282)

Other changes

  • Bug fix: table.transform(), when run against a table without explicit primary keys, would incorrectly create a new version of the table with an explicit primary key column called rowid. (#284)
  • New table.use_rowid introspection property, see .use_rowid. (#285)
  • The new sqlite-utils dump file.db command outputs a SQL dump that can be used to recreate a database. (#274)
  • -h now works as a shortcut for --help, thanks Loren McIntyre. (#276)
  • Now using pytest-cov and Codecov to track test coverage - currently at 96%. (#275)
  • SQL errors that occur when using sqlite-utils query are now displayed as CLI errors.
sqlite-utils 140912432
{
    "url": "https://api.github.com/repos/simonw/sqlite-utils/releases/44904928/reactions",
    "total_count": 3,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 1,
    "eyes": 1
}
44537329 https://github.com/dogsheep/dogsheep-beta/releases/tag/0.10.2 MDc6UmVsZWFzZTQ0NTM3MzI5 0.10.2 main 0.10.2 0 simonw 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
dogsheep-beta 197431109  
44529219 https://github.com/simonw/sqlite-utils/releases/tag/3.9.1 MDc6UmVsZWFzZTQ0NTI5MjE5 3.9.1 main 3.9.1 0 simonw 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)
sqlite-utils 140912432  
44511190 https://github.com/simonw/sqlite-utils/releases/tag/3.9 MDc6UmVsZWFzZTQ0NTExMTkw 3.9 main 3.9 0 simonw 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). (#268)
  • db.schema introspection property exposing the same feature to the Python library, see Showing the schema (Python library).
sqlite-utils 140912432
{
    "url": "https://api.github.com/repos/simonw/sqlite-utils/releases/44511190/reactions",
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
44388485 https://github.com/simonw/datasette/releases/tag/0.58a0 MDc6UmVsZWFzZTQ0Mzg4NDg1 0.58a0 main 0.58a0 0 simonw 9599 1 2021-06-10T04:51:14Z 2021-06-10T04:52:45Z
  • The menu_links(), table_actions() and database_actions() plugin hooks all gained a new optional request argument providing access to the current request. (#1371)
datasette 107914493  
44292523 https://github.com/simonw/datasette/releases/tag/0.57.1 MDc6UmVsZWFzZTQ0MjkyNTIz 0.57.1 main 0.57.1 0 simonw 9599 0 2021-06-08T16:26:45Z 2021-06-08T16:28:31Z
  • Fixed visual display glitch with global navigation menu. (#1367)
  • No longer truncates the list of table columns displayed on the /database page. (#1364)
datasette 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
}
44155601 https://github.com/simonw/datasette/releases/tag/0.57 MDc6UmVsZWFzZTQ0MTU1NjAx 0.57 main 0.57 0 simonw 9599 0 2021-06-05T22:06:55Z 2021-06-05T22:11:18Z

Warning: This release fixes a reflected cross-site scripting security hole with the ?_trace=1 feature. You should upgrade to this version, or to Datasette 0.56.1, as soon as possible. (#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)
  • 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)
  • A new ?_facet_size= parameter for customizing the number of facet results returned on a table or view page. (#1332)
  • ?_facet_size=max sets that to the maximum, which defaults to 1,000 and is controlled by the the max_returned_rows setting. If facet results are truncated the ... at the bottom of the facet list now links to this parameter. (#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, #263)
  • ?_nocount=1 option to disable full query result counts. (#1353)
  • ?_trace=1 debugging option is now controlled by the new trace_debug setting, which is turned off by default. (#1359)

Bug fixes and other improvements

  • Custom pages now work correctly when combined with the base_url setting. (#1238)
  • Fixed intermittent error displaying the index page when the user did not have permission to access one of the tables. Thanks, Guy Freeman. (#1305)
  • Columns with the name "Link" are no longer incorrectly displayed in bold. (#1308)
  • Fixed error caused by tables with a single quote in their names. (#1257)
  • Updated dependencies: pytest-asyncio, Black, jinja2, aiofiles, click, and itsdangerous.
  • The official Datasette Docker image now supports apt-get install. (#1320)
  • The Heroku runtime used by datasette publish heroku is now python-3.8.10.
datasette 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
}
44155459 https://github.com/simonw/datasette/releases/tag/0.56.1 MDc6UmVsZWFzZTQ0MTU1NDU5 0.56.1 0.56.x 0.56.1 0 simonw 9599 0 2021-06-05T21:54:47Z 2021-06-05T22:00:01Z
  • Fix for a security hole: reflected cross-site scripting in the ?_trace=1 feature. #1360
datasette 107914493  
44019361 https://github.com/simonw/sqlite-utils/releases/tag/3.8 MDc6UmVsZWFzZTQ0MDE5MzYx 3.8 main 3.8 0 simonw 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. (#263)
  • table.xindexes introspection property returning more details about that table's indexes, see .xindexes. (#261)
sqlite-utils 140912432  
43797212 https://github.com/simonw/sqlite-utils/releases/tag/3.7 MDc6UmVsZWFzZTQzNzk3MjEy 3.7 main 3.7 0 simonw 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. (#240)
  • Fixed bug with table.add_foreign_key() against columns containing spaces. (#238)
  • table_or_view.drop(ignore=True) option for avoiding errors if the table or view does not exist. (#237)
  • sqlite-utils drop-view --ignore and sqlite-utils drop-table --ignore options. (#237)
  • Fixed a bug with inserts of nested JSON containing non-ascii strings - thanks, Dylan Wu. (#257)
  • Suggest --alter if an error occurs caused by a missing column. (#259)
  • Support creating indexes with columns in descending order, see API documentation and CLI documentation. (#260)
  • Correctly handle CSV files that start with a UTF-8 BOM. (#250)
sqlite-utils 140912432  
43713686 https://github.com/simonw/datasette/releases/tag/0.57a1 MDc6UmVsZWFzZTQzNzEzNjg2 0.57a1 main 0.57a1 0 simonw 9599 1 2021-05-27T16:54:21Z 2021-05-27T16:58:41Z
  • Docker image now allows apt-get install. #1320
  • ?_col= and ?_nocol= options to show and hide columns in a table, plus UI for doing this in the column cog menu. #615
  • New ?_facet_size=max option, linked to from the … on truncated facets. #1337
  • Heroku runtime used by datasette publish heroku is now python-3.8.10.
  • Multi-arch support for built Docker images using Buildx - thanks, Blair Drummand. #1319
datasette 107914493  
43419091 https://github.com/simonw/datasette/releases/tag/0.57a0 MDc6UmVsZWFzZTQzNDE5MDkx 0.57a0 main 0.57a0 0 simonw 9599 1 2021-05-23T00:45:54Z 2021-05-23T00:46:44Z

Mainly dependency bumps, plus a new ?_facet_size= argument.

  • Updated dependencies: pytest-asyncio, Black, jinja2, aiofiles, itsdangerous
  • Fixed bug where columns called "Link" were incorrectly displayed in bold. (#1308)
  • New ?_facet_size= argument for customizing the number of facet results returned on a page. (#1332)
datasette 107914493  
40608711 https://github.com/simonw/datasette/releases/tag/0.56 MDc6UmVsZWFzZTQwNjA4NzEx 0.56 main 0.56 0 simonw 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)
  • Fixed a bug with JSON faceting and the __arraycontains filter caused by tables with spaces in their names. (#1239)
  • Upgraded httpx dependency. (#1005)
  • JSON faceting is now suggested even if a column contains blank strings. (#1246)
  • New datasette.add_memory_database() method. (#1247)
  • The Response.asgi_send() method is now documented. (#1266)
  • The official Datasette Docker image now bundles SpatiaLite version 5. (#1278)
  • Fixed a no such table: pragma_database_list bug when running Datasette against SQLite versions prior to SQLite 3.16.0. (#1276)
  • HTML lists displayed in table cells are now styled correctly. Thanks, Bob Whitelock. (#1141, #1252)
  • Configuration directory mode now correctly serves immutable databases that are listed in inspect-data.json. Thanks Campbell Allen and Frankie Robertson. (#1031, #1229)
datasette 107914493  
39765751 https://github.com/dogsheep/hacker-news-to-sqlite/releases/tag/0.4 MDc6UmVsZWFzZTM5NzY1NzUx 0.4 main 0.4 0 simonw 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

hacker-news-to-sqlite 248903544  
38290990 https://github.com/simonw/sqlite-utils/releases/tag/3.6 MDc6UmVsZWFzZTM4MjkwOTkw 3.6 main 3.6 0 simonw 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.

  • 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. (#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. (#236)
sqlite-utils 140912432  

Next page

Advanced export

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

CSV options:

CREATE TABLE [releases] (
   [html_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [tag_name] TEXT,
   [target_commitish] TEXT,
   [name] TEXT,
   [draft] INTEGER,
   [author] INTEGER REFERENCES [users]([id]),
   [prerelease] INTEGER,
   [created_at] TEXT,
   [published_at] TEXT,
   [body] TEXT,
   [repo] INTEGER REFERENCES [repos]([id])
, [reactions] TEXT);
CREATE INDEX [idx_releases_repo]
                ON [releases] ([repo]);
CREATE INDEX [idx_releases_author]
                ON [releases] ([author]);
Powered by Datasette · Queries took 59.331ms · About: github-to-sqlite
  • Sort ascending
  • Sort descending
  • Facet by this
  • Hide this column
  • Show all columns
  • Show not-blank rows