{"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.35.2", "date": "2023-11-04", "body_markdown": "- The `--load-extension=spatialite` option and [find_spatialite()](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-gis-find-spatialite) utility function now both work correctly on `arm64` Linux. Thanks, [Mike Coats](https://github.com/MikeCoats). ([#599](https://github.com/simonw/sqlite-utils/issues/599))\r\n- Fix for bug where `sqlite-utils insert` could cause your terminal cursor to disappear. Thanks, [Luke Plant](https://github.com/spookylukey). ([#433](https://github.com/simonw/sqlite-utils/issues/433))\r\n- `datetime.timedelta` values are now stored as `TEXT` columns. Thanks, [Harald Nezbeda](https://github.com/nezhar). ([#522](https://github.com/simonw/sqlite-utils/issues/522))\r\n- Test suite is now also run against Python 3.12.", "published_at": "2023-11-04T01:05:56Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.35.1", "date": "2023-09-09", "body_markdown": "- Fixed a bug where [table.transform()](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-transform) would sometimes re-assign the `rowid` values for a table rather than keeping them consistent across the operation. ([#592](https://github.com/simonw/sqlite-utils/issues/592))", "published_at": "2023-09-09T00:50:42Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.35", "date": "2023-08-18", "body_markdown": "Adding foreign keys to a table no longer uses `PRAGMA writable_schema = 1` to directly manipulate the `sqlite_master` table. This was resulting in errors in some Python installations where the SQLite library was compiled in a way that prevented this from working, in particular on macOS. Foreign keys are now added using the [table transformation](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-transform) mechanism instead. ([#577](https://github.com/simonw/sqlite-utils/issues/577))\r\n\r\nThis 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`.\r\n\r\nA new plugin, [sqlite-utils-fast-fks](https://github.com/simonw/sqlite-utils-fast-fks), is now available for developers who still want to use that faster but riskier implementation.\r\n\r\nOther changes:\r\n\r\n- The [table.transform() method](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-transform) has two new parameters: `foreign_keys=` allows you to replace the foreign key constraints defined on a table, and `add_foreign_keys=` lets you specify new foreign keys to add. These complement the existing `drop_foreign_keys=` parameter. ([#577](https://github.com/simonw/sqlite-utils/issues/577))\r\n- The [sqlite-utils transform](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-transform-table) command has a new `--add-foreign-key` option which can be called multiple times to add foreign keys to a table that is being transformed. ([#585](https://github.com/simonw/sqlite-utils/issues/585))\r\n- [sqlite-utils convert](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-convert) now has a `--pdb` option for opening a debugger on the first encountered error in your conversion script. ([#581](https://github.com/simonw/sqlite-utils/issues/581))\r\n- Fixed a bug where `sqlite-utils install -e '.[test]'` option did not work correctly.", "published_at": "2023-08-18T02:05:22Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.34", "date": "2023-07-22", "body_markdown": "This release introduces a new [plugin system](https://sqlite-utils.datasette.io/en/stable/plugins.html#plugins). ([#567](https://github.com/simonw/sqlite-utils/issues/567))\r\n\r\n- Documentation describing [how to build a plugin](https://sqlite-utils.datasette.io/en/stable/plugins.html#plugins-building).\r\n- Plugin hook: [register_commands(cli)](https://sqlite-utils.datasette.io/en/stable/plugins.html#plugins-hooks-register-commands), for plugins to add extra commands to `sqlite-utils`. ([#569](https://github.com/simonw/sqlite-utils/issues/569))\r\n- Plugin hook: [prepare_connection(conn)](https://sqlite-utils.datasette.io/en/stable/plugins.html#plugins-hooks-prepare-connection). Plugins can use this to help prepare the SQLite connection to do things like registering custom SQL functions. Thanks, [Alex Garcia](https://github.com/asg017). ([#574](https://github.com/simonw/sqlite-utils/issues/574))\r\n- `sqlite_utils.Database(..., execute_plugins=False)` option for disabling plugin execution. ([#575](https://github.com/simonw/sqlite-utils/issues/575))\r\n- `sqlite-utils install -e path-to-directory` option for installing editable code. This option is useful during the development of a plugin. ([#570](https://github.com/simonw/sqlite-utils/issues/570))\r\n- `table.create(...)` method now accepts `replace=True` to drop and replace an existing table with the same name, or `ignore=True` to silently do nothing if a table already exists with the same name. ([#568](https://github.com/simonw/sqlite-utils/issues/568))\r\n- `sqlite-utils insert ... --stop-after 10` option for stopping the insert after a specified number of records. Works for the `upsert` command as well. ([#561](https://github.com/simonw/sqlite-utils/issues/561))\r\n- The `--csv` and `--tsv` modes for `insert` now accept a `--empty-null` option, which cases empty strings in the CSV file to be stored as `null` in the database. ([#563](https://github.com/simonw/sqlite-utils/issues/563))\r\n- New `db.rename_table(table_name, new_name)` method for renaming tables. ([#565](https://github.com/simonw/sqlite-utils/issues/565))\r\n- `sqlite-utils rename-table my.db table_name new_name` command for renaming tables. ([#565](https://github.com/simonw/sqlite-utils/issues/565))\r\n- 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](https://github.com/simonw/sqlite-utils/issues/571))\r\n- Documentation now notes that calling `table.transform()` without any arguments will reformat the SQL schema stored by SQLite to be more aesthetically pleasing. ([#564](https://github.com/simonw/sqlite-utils/issues/564))", "published_at": "2023-07-22T23:30:49Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 213286752, "repo": "https://github.com/dogsheep/pocket-to-sqlite", "release": "https://github.com/dogsheep/pocket-to-sqlite/releases/tag/0.2.3", "date": "2023-07-09", "body_markdown": "- Progress bar now includes a count of the total number of items to fetch.\r\n- Now packaged using `pyproject.toml`. [#12](https://github.com/dogsheep/pocket-to-sqlite/issues/12)", "published_at": "2023-07-09T01:15:03Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-tool\", \"dogsheep\", \"pocket\", \"pocket-api\", \"sqlite\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.33", "date": "2023-06-26", "body_markdown": "- `sqlite-utils` will now use [sqlean.py](https://github.com/nalgeon/sqlean.py) in place of `sqlite3` if it is installed in the same virtual environment. This is useful for Python environments with either an outdated version of SQLite or with restrictions on SQLite such as disabled extension loading or restrictions resulting in the `sqlite3.OperationalError: table sqlite_master may not be modified` error. ([#559](https://github.com/simonw/sqlite-utils/issues/559))\r\n- 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`.\r\n- 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.", "published_at": "2023-06-26T01:32:30Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.32.1", "date": "2023-05-21", "body_markdown": "- Examples in the [CLI documentation](https://sqlite-utils.datasette.io/en/stable/cli.html) can now all be copied and pasted without needing to remove a leading `$`. ([#551](https://github.com/simonw/sqlite-utils/issues/551))\r\n- Documentation now covers [Setting up shell completion](https://sqlite-utils.datasette.io/en/stable//installation.html#installation-completion) for `bash` and `zsh`. ([#552](https://github.com/simonw/sqlite-utils/issues/552))", "published_at": "2023-05-21T21:12:05Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.32", "date": "2023-05-21", "body_markdown": "- New experimental `sqlite-utils tui` interface for interactively building command-line invocations, powered by [Trogon](https://github.com/Textualize/trogon). This requires an optional dependency, installed using `sqlite-utils install trogon`. There is a screenshot [in the documentation](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-tui). ([#545](https://github.com/simonw/sqlite-utils/issues/545))\r\n- `sqlite-utils analyze-tables` command ([documentation](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-analyze-tables)) now has a `--common-limit 20` option for changing the number of common/least-common values shown for each column. ([#544](https://github.com/simonw/sqlite-utils/issues/544))\r\n- `sqlite-utils analyze-tables --no-most` and `--no-least` options for disabling calculation of most-common and least-common values.\r\n- If a column contains only `null` values, `analyze-tables` will no longer attempt to calculate the most common and least common values for that column. ([#547](https://github.com/simonw/sqlite-utils/issues/547))\r\n- Calling `sqlite-utils analyze-tables` with non-existent columns in the `-c/--column` option now results in an error message. ([#548](https://github.com/simonw/sqlite-utils/issues/548))\r\n- The `table.analyze_column()` method ([documented here](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-analyze-column)) now accepts `most_common=False` and `least_common=False` options for disabling calculation of those values.", "published_at": "2023-05-21T18:55:42Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.31", "date": "2023-05-08", "body_markdown": "- Dropped support for Python 3.6. Tests now ensure compatibility with Python 3.11. ([#517](https://github.com/simonw/sqlite-utils/issues/517))\r\n- Automatically locates the SpatiaLite extension on Apple Silicon. Thanks, Chris Amico. ([#536](https://github.com/simonw/sqlite-utils/pull/536))\r\n- New `--raw-lines` option for the `sqlite-utils query` and `sqlite-utils memory` commands, which outputs just the raw value of the first column of evy row. ([#539](https://github.com/simonw/sqlite-utils/issues/539))\r\n- Fixed a bug where `table.upsert_all()` failed if the `not_null=` option was passed. ([#538](https://github.com/simonw/sqlite-utils/issues/538))\r\n- Fixed a `ResourceWarning` when using `sqlite-utils insert`. ([#534](https://github.com/simonw/sqlite-utils/issues/534))\r\n- Now shows a more detailed error message when `sqlite-utils insert` is called with invalid JSON. ([#532](https://github.com/simonw/sqlite-utils/ises/532))\r\n- `table.convert(..., skip_false=False)` and `sqlite-utils convert --no-skip-false` options, for avoiding a misfeature where the [convert()](http://127.0.0.1:8000/python-api.html#python-api-convert) mechanism skips rows in the database with a falsey value for the specified column. Fixing this by default would be a backwards-incompatible change and is under consideration for a 4.0 release in the future. ([#527](https://github.com/simonw/sqlite-utils/issues/527))\r\n- Tables can now be created with self-referential foreign keys. Thanks, Scott Perry. ([#537](https://github.com/simonw/sqlite-utils/pull/537))\r\n- `sqlite-utils transform` no longer breaks if a table defines default values for columns. Thanks, Kenny Song. ([#509](https://github.com/simonw/sqlite-utils/issues/509))\r\n- Fixed a bug where repeated calls to `table.transform()` did not work correctly. Thanks, Martin Carpenter. ([#525](https://github.com/simonw/sqlite-utils/issues/525))\r\n- Improved error message if `rows_from_file()` is passed a non-binary-mode file-like object. ([#520](https://github.com/simonw/sqlite-utils/issues/520))", "published_at": "2023-05-08T22:37:24Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 205429375, "repo": "https://github.com/dogsheep/swarm-to-sqlite", "release": "https://github.com/dogsheep/swarm-to-sqlite/releases/tag/0.3.4", "date": "2023-04-11", "body_markdown": "- Fixed an error in the `checkins_detail` view. [#15](https://github.com/dogsheep/swarm-to-sqlite/issues/15)", "published_at": "2023-04-11T03:18:16Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-tool\", \"dogsheep\", \"foursquare\", \"foursquare-api\", \"sqlite\", \"swarm\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.30", "date": "2022-10-25", "body_markdown": "- Now tested against Python 3.11. ([#502](https://github.com/simonw/sqlite-utils/issues/502))\r\n- New `table.search_sql(include_rank=True)` option, which adds a `rank` column to the generated SQL. Thanks, Jacob Chapman. ([#480](https://github.com/simonw/sqlite-utils/pull/480))\r\n- Progress bars now display for newline-delimited JSON files using the `--nl` option. Thanks, Mischa Untaga. ([#485](https://github.com/simonw/sqlite-utils/issues/485))\r\n- New `db.close()` method. ([#504](https://github.com/simonw/sqlite-utils/issues/504))\r\n- Conversion functions passed to [table.convert(...)](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-convert) can now return lists or dictionaries, which will be inserted into the database as JSON strings. ([#495](https://github.com/simonw/sqlite-utils/issues/495))\r\n- `sqlite-utils install` and `sqlite-utils uninstall` commands for installing packages into the same virtual environment as `sqlite-utils`, [described here](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-install). ([#483](https://github.com/simonw/sqlite-utils/issues/483))\r\n- New [sqlite_utils.utils.flatten()](https://sqlite-utils.datasette.io/en/stable/reference.html#reference-utils-flatten) utility function. ([#500](https://github.com/simonw/sqlite-utils/issues/500))\r\n- Documentation on [using Just](https://sqlite-utils.datasette.io/en/stable/contributing.html#contributing-just) to run tests, linters and build documentation.\r\n- Documentation now covers the [Release process](https://sqlite-utils.datasette.io/en/stable/contributing.html#release-process) for this package.", "published_at": "2022-10-25T22:34:48Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.29", "date": "2022-08-28", "body_markdown": "- The `sqlite-utils query`, `memory` and `bulk` commands now all accept a new `--functions` option. This can be passed a string of Python code, and any callable objects defined in that code will be made available to SQL queries as custom SQL functions. See [Defining custom SQL functions](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-query-functions) for details. ([#471](https://github.com/simonw/sqlite-utils/issues/471))\r\n- `db[table].create(...)` method now accepts a new `transform=True` parameter. If the table already exists it will be transform to match the schema configuration options passed to the function. This may result in columns being added or dropped, column types being changed, column order being updated or not null and default values for columns being set. ([#467](https://github.com/simonw/sqlite-utils/issues/467))\r\n- Related to the above, the `sqlite-utils create-table` command now accepts a `--transform` option.\r\n- New introspection property: `table.default_values` returns a dictionary mapping each column name with a default value to the configured default value. ([#475](https://github.com/simonw/sqlite-utils/issues/475))\r\n- The `--load-extension` option can now be provided a path to a compiled SQLite extension module accompanied by the name of an entrypoint, separated by a colon - for example `--load-extension ./lines0:sqlite3_lines0_noread_init`. This feature is modelled on code first [contributed to Datasette](https://github.com/simonw/datasette/pull/1789) by Alex Garcia. ([#470](https://github.com/simonw/sqlite-utils/issues/470))\r\n- Functions registered using the [db.register_function()](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-register-function) method can now have a custom name specified using the new `db.register_function(fn, name=...)` parameter. ([#458](https://github.com/simonw/sqlite-utils/issues/458))\r\n- [sqlite-utils rows](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-rows) has a new `--order` option for specifying the sort order for the returned rows. ([#469](https://github.com/simonw/sqlite-utils/issues/469))\r\n- All of the CLI options that accept Python code blocks can now all be used to define functions that can access modules imported in that same block of code without needing to use the `global` keyword. ([#472](https://github.com/simonw/sqlite-utils/issues/472))\r\n- Fixed bug where `table.extract()` would not behave correctly for columns containing null values. Thanks, Forest Gregg. ([#423](https://github.com/simonw/sqlite-utils/issues/423))\r\n- New tutorial: [Cleaning data with sqlite-utils and Datasette](https://datasette.io/tutorials/clean-data) shows how to use `sqlite-utils` to import and clean an example CSV file.\r\n- Datasette and `sqlite-utils` now have a Discord community. [Join the Discord here](https://discord.gg/Ass7bCAMDw).", "published_at": "2022-08-28T03:50:29Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 213286752, "repo": "https://github.com/dogsheep/pocket-to-sqlite", "release": "https://github.com/dogsheep/pocket-to-sqlite/releases/tag/0.2.2", "date": "2022-08-22", "body_markdown": "- `-a` is now the shortcut for `--auth` - previously it was duplicated as a shortcut for `--all`. Thanks, [Thomas Lockney](https://github.com/tlockney). [#7](https://github.com/dogsheep/pocket-to-sqlite/issues/7)\r\n- `pocket-to-sqlite auth` command now updates the existing `auth.json` file rather than over-writing it. [#10](https://github.com/dogsheep/pocket-to-sqlite/issues/10)", "published_at": "2022-08-22T16:21:34Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-tool\", \"dogsheep\", \"pocket\", \"pocket-api\", \"sqlite\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.28", "date": "2022-07-15", "body_markdown": "- New [table.duplicate(new_name)](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-duplicate) method for creating a copy of a table with a matching schema and row contents. Thanks, [David](https://github.com/davidleejy). ([#449](https://github.com/simonw/sqlite-utils/issues/449))\r\n- New `sqlite-utils duplicate data.db table_name new_name` CLI command for [Duplicating tables](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-duplicate-table). ([#454](https://github.com/simonw/sqlite-utils/issues/454))\r\n- `sqlite_utils.utils.rows_from_file()` is now a [documented API](https://sqlite-utils.datasette.io/en/stable/reference.html#reference-utils-rows-from-file). It can be used to read a sequence of dictionaries from a file-like object containing CSV, TSV, JSON or newline-delimited JSON. It can be passed an explicit format or can attempt to detect the format automatically. ([#443](https://github.com/simonw/sqlite-utils/issues/443))\r\n- `sqlite_utils.utils.TypeTracker` is now a documented API for detecting the likely column types for a sequence of string rows, see [Detecting column types using TypeTracker](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-typetracker). ([#445](https://github.com/simonw/sqlite-utils/issues/445))\r\n- `sqlite_utils.utils.chunks()` is now a documented API for [splitting an iterator into chunks](https://sqlite-utils.datasette.io/en/stable/reference.html#reference-utils-chunks). ([#451](https://github.com/simonw/sqlite-utils/issues/451))\r\n- `sqlite-utils enable-fts` now has a `--replace` option for replacing the existing FTS configuration for a table. ([#450](https://github.com/simonw/sqlite-utils/issues/450))\r\n- The `create-index`, `add-column` and `duplicate` commands all now take a `--ignore` option for ignoring errors should the database not be in the right state for them to operate. ([#450](https://github.com/simonw/sqlite-utils/issues/450))", "published_at": "2022-07-15T23:02:45Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.27", "date": "2022-06-15", "body_markdown": "See also [the annotated release notes](https://simonwillison.net/2022/Jun/19/weeknotes/#sqlite-utils-3-27) for this release.\r\n\r\n- Documentation now uses the [Furo](https://github.com/pradyunsg/furo) Sphinx theme. ([#435](https://github.com/simonw/sqlite-utils/issues/435))\r\n- Code examples in documentation now have a \"copy to clipboard\" button. ([#436](https://github.com/simonw/sqlite-utils/issues/436))\r\n- `sqlite_utils.utils.utils.rows_from_file()` is now a documented API, see [Reading rows from a file](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-rows-from-file). ([#443](https://github.com/simonw/sqlite-utils/issues/443))\r\n- `rows_from_file()` has two new parameters to help handle CSV files with rows that contain more values than are listed in that CSV file's headings: `ignore_extras=True` and `extras_key=\"name-of-key\"`. ([#440](https://github.com/simonw/sqlite-utils/issues/440))\r\n- `sqlite_utils.utils.maximize_csv_field_size_limit()` helper function for increasing the field size limit for reading CSV files to its maximum, see [Setting the maximum CSV field size limit](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-maximize-csv-field-size-limit). ([#442](https://github.com/simonw/sqlite-utils/issues/442))\r\n- `table.search(where=, where_args=)` parameters for adding additional `WHERE` clauses to a search query. The `where=` parameter is available on `table.search_sql(...)` as well. See [Searching with table.search()](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-fts-search). ([#441](https://github.com/simonw/sqlite-utils/issues/441))\r\n- Fixed bug where `table.detect_fts()` and other search-related functions could fail if two FTS-enabled tables had names that were prefixes of each other. ([#434](https://github.com/simonw/sqlite-utils/issues/434))", "published_at": "2022-06-15T04:34:45Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.26.1", "date": "2022-05-02", "body_markdown": "- Now depends on [click-default-group-wheel](https://github.com/simonw/click-default-group-wheel), a pure Python wheel package. This means you can install and use this package with [Pyodide](https://pyodide.org/), which can run Python entirely in your browser using WebAssembly. ([#429](https://github.com/simonw/sqlite-utils/pull/429))\r\n\r\n Try that out using the [Pyodide REPL](https://pyodide.org/en/stable/console.html):\r\n\r\n ```pycon\r\n >>> import micropip\r\n >>> await micropip.install(\"sqlite-utils\")\r\n >>> import sqlite_utils\r\n >>> db = sqlite_utils.Database(memory=True)\r\n >>> list(db.query(\"select 3 * 5\"))\r\n [{'3 * 5': 15}]\r\n ```", "published_at": "2022-05-02T18:18:01Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.26", "date": "2022-04-13", "body_markdown": "- New `errors=r.IGNORE/r.SET_NULL` parameter for the `r.parsedatetime()` and `r.parsedate()` [convert recipes](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-convert-recipes). ([#416](https://github.com/simonw/sqlite-utils/issues/416))\r\n- Fixed a bug where `--multi` could not be used in combination with `--dry-run` for the [convert](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-convert) command. ([#415](https://github.com/simonw/sqlite-utils/issues/415))\r\n- New documentation: [Using a convert() function to execute initialization](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-convert-complex). ([#420](https://github.com/simonw/sqlite-utils/issues/420))\r\n- More robust detection for whether or not `deterministic=True` is supported. ([#425](https://github.com/simonw/sqlite-utils/issues/425))", "published_at": "2022-04-13T22:53:36Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.25.1", "date": "2022-03-11", "body_markdown": "- Improved display of type information and parameters in the [API reference documentation](https://sqlite-utils.datasette.io/en/stable/reference.html). [#413](https://github.com/simonw/sqlite-utils/issues/413)", "published_at": "2022-03-11T18:35:41Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.25", "date": "2022-03-02", "body_markdown": "- New `hash_id_columns=` parameter for creating a primary key that's a hash of the content of specific columns - see [Setting an ID based on the hash of the row contents](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-hash) for details. ([#343](https://github.com/simonw/sqlite-utils/issues/343))\r\n- New [db.sqlite_version](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-sqlite-version) property, returning a tuple of integers representing the version of SQLite, for example `(3, 38, 0)`.\r\n- Fixed a bug where [register_function(deterministic=True)](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-register-function) caused errors on versions of SQLite prior to 3.8.3. ([#408](https://github.com/simonw/sqlite-utils/issues/408))\r\n- New documented [hash_record(record, keys=...)](https://sqlite-utils.datasette.io/en/stable/reference.html#reference-utils-hash-record) function.", "published_at": "2022-03-02T06:35:18Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.24", "date": "2022-02-16", "body_markdown": "- SpatiaLite helpers for the `sqlite-utils` command-line tool - thanks, Chris Amico. ([#398](https://github.com/simonw/sqlite-utils/issues/398))\r\n - [sqlite-utils create-database](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-create-database) `--init-spatialite` option for initializing SpatiaLite on a newly created database.\r\n - [sqlite-utils add-geometry-column](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-spatialite) command for adding geometry columns.\r\n - [sqlite-utils create-spatial-index](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-spatialite-indexes) command for adding spatial indexes.\r\n- `db[table].create(..., if_not_exists=True)` option for [creating a table](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-explicit-create) only if it does not already exist. ([#397](https://github.com/simonw/sqlite-utils/issues/397))\r\n- `Database(memory_name=\"my_shared_database\")` parameter for creating a [named in-memory database](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-connect) that can be shared between multiple connections. ([#405](https://github.com/simonw/sqlite-utils/issues/405))\r\n- Documentation now describes [how to add a primary key to a rowid table](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-transform-table-add-primary-key-to-rowid) using `sqlite-utils transform`. ([#403](https://github.com/simonw/sqlite-utils/issues/403))", "published_at": "2022-02-16T01:41:50Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.23", "date": "2022-02-04", "body_markdown": "This release introduces four new utility methods for working with [SpatiaLite](https://www.gaia-gis.it/fossil/libspatialite/index). Thanks, Chris Amico. ([#330](https://github.com/simonw/sqlite-utils/pull/385))\r\n\r\n- `sqlite_utils.utils.find_spatialite()` [finds the location of the SpatiaLite module](https://sqlite-utils.readthedocs.io/en/stable/python-api.html#python-api-gis-find-spatialite) on disk.\r\n- `db.init_spatialite()` [initializes SpatiaLite](https://sqlite-utils.readthedocs.io/en/stable/python-api.html#python-api-gis-init-spatialite) for the given database.\r\n- `table.add_geometry_column(...)` [adds a geometry column](https://sqlite-utils.readthedocs.io/en/stable/python-api.html#python-api-gis-add-geometry-column) to an existing table.\r\n- `table.create_spatial_index(...)` [creates a spatial index](https://sqlite-utils.readthedocs.io/en/stable/python-api.html#python-api-gis-create-spatial-index) for a column.\r\n- `sqlite-utils batch` now accepts a `--batch-size` option. ([#392](https://github.com/simonw/sqlite-utils/issues/392))", "published_at": "2022-02-04T06:44:19Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.22.1", "date": "2022-01-26", "body_markdown": "- All commands now include example usage in their `--help` - see [CLI reference](https://sqlite-utils.datasette.io/en/stable/cli-reference.html#cli-reference). ([#384](https://github.com/simonw/sqlite-utils/issues/384))\r\n- Python library documentation has a new [Getting started](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-getting-started) section. ([#387](https://github.com/simonw/sqlite-utils/issues/387))\r\n- Documentation now uses [Plausible analytics](https://plausible.io/). ([#389](https://github.com/simonw/sqlite-utils/issues/389))", "published_at": "2022-01-26T03:29:24Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.22", "date": "2022-01-11", "body_markdown": "- New [CLI reference](https://sqlite-utils.datasette.io/en/stable/cli-reference.html#cli-reference) documentation page, listing the output of `--help` for every one of the CLI commands. ([#383](https://github.com/simonw/sqlite-utils/issues/383))\r\n- `sqlite-utils rows` now has `--limit` and `--offset` options for paginating through data. ([#381](https://github.com/simonw/sqlite-utils/issues/381))\r\n- `sqlite-utils rows` now has `--where` and `-p` options for filtering the table using a `WHERE` query, see [Returning all rows in a table](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-rows). ([#382](https://github.com/simonw/sqlite-utils/issues/382))", "published_at": "2022-01-11T23:49:28Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.21", "date": "2022-01-11", "body_markdown": "CLI and Python library improvements to help run [ANALYZE](https://www.sqlite.org/lang_analyze.html) after creating indexes or inserting rows, to gain better performance from the SQLite query planner when it runs against indexes.\r\n\r\nThree new CLI commands: `create-database`, `analyze` and `bulk`.\r\n\r\nMore details and examples can be found in the [annotated release notes](https://simonwillison.net/2022/Jan/11/sqlite-utils/).\r\n\r\n- New `sqlite-utils create-database` command for creating new empty database files. ([#348](https://github.com/simonw/sqlite-utils/issues/348))\r\n- New Python methods for running `ANALYZE` against a database, table or index: `db.analyze()` and `table.analyze()`, see [Optimizing index usage with ANALYZE](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-analyze). ([#366](https://github.com/simonw/sqlite-utils/issues/366))\r\n- New [sqlite-utils analyze command](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-analyze) for running `ANALYZE` using the CLI. ([#379](https://github.com/simonw/sqlite-utils/issues/379))\r\n- The `create-index`, `insert` and `upsert` commands now have a new `--analyze` option for running `ANALYZE` after the command has completed. ([#379](https://github.com/simonw/sqlite-utils/issues/379))\r\n- New [sqlite-utils bulk command](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-bulk) which can import records in the same way as `sqlite-utils insert` (from JSON, CSV or TSV) and use them to bulk execute a parametrized SQL query. ([#375](https://github.com/simonw/sqlite-utils/issues/375))\r\n- The CLI tool can now also be run using `python -m sqlite_utils`. ([#368](https://github.com/simonw/sqlite-utils/issues/368))\r\n- Using `--fmt` now implies `--table`, so you don't need to pass both options. ([#374](https://github.com/simonw/sqlite-utils/issues/374))\r\n- The `--convert` function applied to rows can now modify the row in place. ([#371](https://github.com/simonw/sqlite-utils/issues/371))\r\n- The [insert-files command](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-insert-files) supports two new columns: `stem` and `suffix`. ([#372](https://github.com/simonw/sqlite-utils/issues/372))\r\n- The `--nl` import option now ignores blank lines in the input. ([#376](https://github.com/simonw/sqlite-utils/issues/376))\r\n- Fixed bug where streaming input to the `insert` command with `--batch-size 1` would appear to only commit after several rows had been ingested, due to unnecessary input buffering. ([#364](https://github.com/simonw/sqlite-utils/issues/364))", "published_at": "2022-01-11T02:35:02Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.20", "date": "2022-01-06", "body_markdown": "- `sqlite-utils insert ... --lines` to insert the lines from a file into a table with a single `line` column, see [Inserting unstructured data with --lines and --text](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-insert-unstructured).\r\n- `sqlite-utils insert ... --text` to insert the contents of the file into a table with a single `text` column and a single row.\r\n- `sqlite-utils insert ... --convert` allows a Python function to be provided that will be used to convert each row that is being inserted into the database. See [Applying conversions while inserting data](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-insert-convert), including details on special behavior when combined with `--lines` and `--text`. ([#356](https://github.com/simonw/sqlite-utils/issues/356))\r\n- `sqlite-utils convert` now accepts a code value of `-` to read code from standard input. ([#353](https://github.com/simonw/sqlite-utils/issues/353))\r\n- `sqlite-utils convert` also now accepts code that defines a named `convert(value)` function, see [Converting data in columns](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-convert).\r\n- `db.supports_strict` property showing if the database connection supports [SQLite strict tables](https://www.sqlite.org/stricttables.html).\r\n- `table.strict` property (see [.strict](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-introspection-strict)) indicating if the table uses strict mode. ([#344](https://github.com/simonw/sqlite-utils/issues/344))\r\n- Fixed bug where `sqlite-utils upsert ... --detect-types` ignored the `--detect-types` option. ([#362](https://github.com/simonw/sqlite-utils/issues/362))", "published_at": "2022-01-06T06:57:09Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 207052882, "repo": "https://github.com/dogsheep/github-to-sqlite", "release": "https://github.com/dogsheep/github-to-sqlite/releases/tag/2.8.3", "date": "2021-12-01", "body_markdown": "- Minor documentation and inline help improvements.", "published_at": "2021-12-01T19:37:19Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-tool\", \"dogsheep\", \"github-api\", \"sqlite\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.19", "date": "2021-11-21", "body_markdown": "- The [table.lookup() method](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-lookup-tables) now accepts keyword arguments that match those on the underlying `table.insert()` method: `foreign_keys=`, `column_order=`, `not_null=`, `defaults=`, `extracts=`, `conversions=` and `columns=`. You can also now pass `pk=` to specify a different column name to use for the primary key. ([#342](https://github.com/simonw/sqlite-utils/issues/342))", "published_at": "2021-11-21T04:42:24Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.19a0", "date": "2021-11-19", "body_markdown": "- Extra keyword arguments for `table.lookup()` which are passed through to `.insert()`. [#342](https://github.com/simonw/sqlite-utils/issues/342)", "published_at": "2021-11-19T07:28:50Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.18", "date": "2021-11-15", "body_markdown": "- The `table.lookup()` method now has an optional second argument which can be used to populate columns only the first time the record is created, see [Working with lookup tables](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-lookup-tables). ([#339](https://github.com/simonw/sqlite-utils/issues/339))\r\n- `sqlite-utils memory` now has a `--flatten` option for [flattening nested JSON objects](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-inserting-data-flatten) into separate columns, consistent with `sqlite-utils insert`. ([#332](https://github.com/simonw/sqlite-utils/issues/332))\r\n- `table.create_index(..., find_unique_name=True)` parameter, which finds an available name for the created index even if the default name has already been taken. This means that `index-foreign-keys` will work even if one of the indexes it tries to create clashes with an existing index name. ([#335](https://github.com/simonw/sqlite-utils/issues/335))\r\n- Added `py.typed` to the module, so [mypy](http://mypy-lang.org/) should now correctly pick up the type annotations. Thanks, Andreas Longo. ([#331](https://github.com/simonw/sqlite-utils/issues/331))\r\n- Now depends on `python-dateutil` instead of depending on `dateutils`. Thanks, Denys Pavlov. ([#324](https://github.com/simonw/sqlite-utils/issues/324))\r\n- `table.create()` (see [Explicitly creating a table](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-explicit-create)) now handles `dict`, `list` and `tuple` types, mapping them to `TEXT` columns in SQLite so that they can be stored encoded as JSON. ([#338](https://github.com/simonw/sqlite-utils/issues/338))\r\n- Inserted data with square braces in the column names (for example a CSV file containing a `item[price]`) column now have the braces converted to underscores: `item_price_`. Previously such columns would be rejected with an error. ([#329](https://github.com/simonw/sqlite-utils/issues/329))\r\n- Now also tested against Python 3.10. ([#330](https://github.com/simonw/sqlite-utils/pull/330))", "published_at": "2021-11-15T03:17:31Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.17.1", "date": "2021-09-22", "body_markdown": "- [sqlite-utils memory](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-memory) now works if files passed to it share the same file name. ([#325](https://github.com/simonw/sqlite-utils/issues/325))\r\n- [sqlite-utils query](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-query) now returns `[]` in JSON mode if no rows are returned. ([#328](https://github.com/simonw/sqlite-utils/issues/328))", "published_at": "2021-09-22T20:51:04Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 206156866, "repo": "https://github.com/dogsheep/twitter-to-sqlite", "release": "https://github.com/dogsheep/twitter-to-sqlite/releases/tag/0.22", "date": "2021-09-21", "body_markdown": "- `twitter-to-sqlite import` now imports `app.js` to `archive_app` table.\r\n- Small fixes for `twitter-to-sqlite import` reflecting changed filenames in the Twitter export.\r\n- Fix for remaining `since_id` bug, thanks Ruben Vermeersch! [#58](https://github.com/dogsheep/twitter-to-sqlite/issues/58)", "published_at": "2021-09-21T17:41:05Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-tool\", \"dogsheep\", \"sqlite\", \"twitter\", \"twitter-api\"]"} {"rowid": 303218369, "repo": "https://github.com/dogsheep/evernote-to-sqlite", "release": "https://github.com/dogsheep/evernote-to-sqlite/releases/tag/0.3.2", "date": "2021-08-26", "body_markdown": "- Fixed error when encountering `` documents that were not well-formed XML. [#13](https://github.com/dogsheep/evernote-to-sqlite/issues/13)", "published_at": "2021-08-26T19:02:47Z", "topics": "[\"datasette-io\", \"datasette-tool\", \"dogsheep\", \"evernote\", \"sqlite\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.17", "date": "2021-08-24", "body_markdown": "- The [sqlite-utils memory](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-memory) command has a new `--analyze` option, which runs the equivalent of the [analyze-tables](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-analyze-tables) command directly against the in-memory database created from the incoming CSV or JSON data. ([#320](https://github.com/simonw/sqlite-utils/issues/320))\r\n- [sqlite-utils insert-files](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-insert-files) now has the ability to insert file contents in to `TEXT` columns in addition to the default `BLOB`. Pass the `--text` option or use `content_text` as a column specifier. ([#319](https://github.com/simonw/sqlite-utils/issues/319))", "published_at": "2021-08-24T23:42:22Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 197882382, "repo": "https://github.com/dogsheep/healthkit-to-sqlite", "release": "https://github.com/dogsheep/healthkit-to-sqlite/releases/tag/1.0.1", "date": "2021-08-20", "body_markdown": "- Fixed bug where `activity_summary` table could fail to be built with an error. [#19](https://github.com/dogsheep/healthkit-to-sqlite/issues/19)", "published_at": "2021-08-20T00:56:17Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-tool\", \"dogsheep\", \"healthkit\", \"sqlite\"]"} {"rowid": 206156866, "repo": "https://github.com/dogsheep/twitter-to-sqlite", "release": "https://github.com/dogsheep/twitter-to-sqlite/releases/tag/0.21.4", "date": "2021-08-20", "body_markdown": "- Fix for `since_id` error with `user-timeline`. [#57](https://github.com/dogsheep/twitter-to-sqlite/issues/57)\r\n- Document the use of `--stop_after` with favorites - thanks, Mike Lee Williams. [#49](https://github.com/dogsheep/twitter-to-sqlite/pull/49)\r\n- Fixes for Twitter archive imports, thanks Jacob Kaplan-Moss. [#55](https://github.com/dogsheep/twitter-to-sqlite/pull/55)\r\n\r\n", "published_at": "2021-08-20T00:14:30Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-tool\", \"dogsheep\", \"sqlite\", \"twitter\", \"twitter-api\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.16", "date": "2021-08-18", "body_markdown": "- Type signatures added to more methods, including `table.resolve_foreign_keys()`, `db.create_table_sql()`, `db.create_table()` and `table.create()`. ([#314](https://github.com/simonw/sqlite-utils/issues/314))\r\n- New `db.quote_fts(value)` method, see [Quoting characters for use in search](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-quote-fts) - thanks, Mark Neumann. ([#246](https://github.com/simonw/sqlite-utils/issues/246))\r\n- `table.search()` now accepts an optional `quote=True` parameter. ([#296](https://github.com/simonw/sqlite-utils/issues/296))\r\n- CLI command `sqlite-utils search` now accepts a `--quote` option. ([#296](https://github.com/simonw/sqlite-utils/issues/296))\r\n- Fixed bug where `--no-headers` and `--tsv` options to [sqlite-utils insert](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-insert-csv-tsv) could not be used together. ([#295](https://github.com/simonw/sqlite-utils/issues/295))\r\n- Various small improvements to [API reference](https://sqlite-utils.datasette.io/en/stable/reference.html#reference) documentation.", "published_at": "2021-08-18T22:37:55Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.15.1", "date": "2021-08-10", "body_markdown": "- Python library now includes type annotations on almost all of the methods, plus detailed docstrings describing each one. ([#311](https://github.com/simonw/sqlite-utils/issues/311))\r\n- New [API Reference](https://sqlite-utils.datasette.io/en/stable/reference.html) documentation page, powered by those docstrings.\r\n- Fixed bug where `.add_foreign_keys()` failed to raise an error if called against a `View`. ([#313](https://github.com/simonw/sqlite-utils/issues/313))\r\n- Fixed bug where `.delete_where()` returned a `[]` instead of returning `self` if called against a non-existant table. ([#315](https://github.com/simonw/sqlite-utils/issues/315))", "published_at": "2021-08-10T23:55:38Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.15", "date": "2021-08-09", "body_markdown": "- `sqlite-utils insert --flatten` option for [flattening nested JSON objects](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-inserting-data-flatten) to create tables with column names like `topkey_nestedkey`. ([#310](https://github.com/simonw/sqlite-utils/issues/310))\r\n- Fixed several spelling mistakes in the documentation, spotted [using codespell](https://til.simonwillison.net/python/codespell).\r\n- Errors that occur while using the `sqlite-utils` CLI tool now show the responsible SQL and query parameters, if possible. ([#309](https://github.com/simonw/sqlite-utils/issues/309))", "published_at": "2021-08-09T22:43:16Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.14", "date": "2021-08-02", "body_markdown": "This release introduces the new [sqlite-utils convert command](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-convert) ([#251](https://github.com/simonw/sqlite-utils/issues/251)) and corresponding [table.convert(...)](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-convert) Python method ([#302](https://github.com/simonw/sqlite-utils/issues/302)). These tools can be used to apply a Python conversion function to one or more columns of a table, either updating the column in place or using transformed data from that column to populate one or more other columns.\r\n\r\nThis command-line example uses the Python standard library [textwrap module](https://docs.python.org/3/library/textwrap.html) to wrap the content of the `content` column in the `articles` table to 100 characters:\r\n```\r\n$ sqlite-utils convert content.db articles content\\\r\n '\"\\n\".join(textwrap.wrap(value, 100))'\\\r\n --import=textwrap\r\n```\r\nThe same operation in Python code looks like this:\r\n```python\r\nimport sqlite_utils, textwrap\r\n\r\ndb = sqlite_utils.Database(\"content.db\")\r\ndb[\"articles\"].convert(\"content\", lambda v: \"\\n\".join(textwrap.wrap(v, 100)))\r\n```\r\nSee the full documentation for the [sqlite-utils convert command](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-convert) and the [table.convert(...)](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-convert) Python method for more details.\r\n\r\nAlso in this release:\r\n\r\n- The new `table.count_where(...)` method, for counting rows in a table that match a specific SQL `WHERE` clause. ([#305](https://github.com/simonw/sqlite-utils/issues/305))\r\n- New `--silent` option for the [sqlite-utils insert-files command](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-insert-files) to hide the terminal progress bar, consistent with the `--silent` option for `sqlite-utils convert`. ([#301](https://github.com/simonw/sqlite-utils/issues/301))", "published_at": "2021-08-02T21:34:43Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.13", "date": "2021-07-24", "body_markdown": "- `sqlite-utils schema my.db table1 table2` command now accepts optional table names. ([#299](https://github.com/simonw/sqlite-utils/issues/299))\r\n- `sqlite-utils memory --help` now describes the `--schema` option.", "published_at": "2021-07-24T22:17:47Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.12", "date": "2021-06-25", "body_markdown": "- New [db.query(sql, params)](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-query) method, which executes a SQL query and returns the results as an iterator over Python dictionaries. ([#290](https://github.com/simonw/sqlite-utils/issues/290))\r\n- This project now uses `flake8` and has started to use `mypy`. ([#291](https://github.com/simonw/sqlite-utils/issues/291))\r\n- New documentation on [contributing](https://sqlite-utils.datasette.io/en/stable/contributing.html#contributing) to this project. ([#292](https://github.com/simonw/sqlite-utils/issues/292))", "published_at": "2021-06-25T18:00:18Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.11", "date": "2021-06-20", "body_markdown": "- New `sqlite-utils memory data.csv --schema` option, for outputting the schema of the in-memory database generated from one or more files. See [--schema, --dump and --save](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-memory-schema-dump-save). ([#288](https://github.com/simonw/sqlite-utils/issues/288))\r\n- Added [installation instructions](https://sqlite-utils.datasette.io/en/stable/installation.html#installation). ([#286](https://github.com/simonw/sqlite-utils/issues/286))", "published_at": "2021-06-20T18:53:09Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.10", "date": "2021-06-19", "body_markdown": "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.\r\n\r\nAlso new: `sqlite-utils insert --detect-types`, `sqlite-utils dump`, `table.use_rowid` plus some smaller fixes.\r\n\r\n### sqlite-utils memory\r\n\r\nThis example of `sqlite-utils memory` retrieves information about the all of the repositories in the [Dogsheep](https://github.com/dogsheep) organization on GitHub using [this JSON API](https://api.github.com/users/dogsheep/repos), sorts them by their number of stars and outputs a table of the top five (using `-t`):\r\n\r\n```\r\n$ curl -s 'https://api.github.com/users/dogsheep/repos'\\\r\n | sqlite-utils memory - '\r\n select full_name, forks_count, stargazers_count\r\n from stdin order by stargazers_count desc limit 5\r\n ' -t\r\nfull_name forks_count stargazers_count\r\n--------------------------------- ------------- ------------------\r\ndogsheep/twitter-to-sqlite 12 225\r\ndogsheep/github-to-sqlite 14 139\r\ndogsheep/dogsheep-photos 5 116\r\ndogsheep/dogsheep.github.io 7 90\r\ndogsheep/healthkit-to-sqlite 4 85\r\n```\r\n\r\nThe tool works against files on disk as well. This example joins data from two CSV files:\r\n\r\n```\r\n$ cat creatures.csv\r\nspecies_id,name\r\n1,Cleo\r\n2,Bants\r\n2,Dori\r\n2,Azi\r\n$ cat species.csv\r\nid,species_name\r\n1,Dog\r\n2,Chicken\r\n$ sqlite-utils memory species.csv creatures.csv '\r\n select * from creatures join species on creatures.species_id = species.id\r\n'\r\n[{\"species_id\": 1, \"name\": \"Cleo\", \"id\": 1, \"species_name\": \"Dog\"},\r\n {\"species_id\": 2, \"name\": \"Bants\", \"id\": 2, \"species_name\": \"Chicken\"},\r\n {\"species_id\": 2, \"name\": \"Dori\", \"id\": 2, \"species_name\": \"Chicken\"},\r\n {\"species_id\": 2, \"name\": \"Azi\", \"id\": 2, \"species_name\": \"Chicken\"}]\r\n```\r\n\r\nHere 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.\r\n\r\nYou 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.\r\n\r\nFull documentation of this new feature is available in [Querying data directly using an in-memory database](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-memory). ([#272](https://github.com/simonw/sqlite-utils/issues/272))\r\n\r\n### sqlite-utils insert --detect-types\r\n\r\nThe [sqlite-utils insert](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-inserting-data) 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](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-insert-csv-tsv) for details. ([#282](https://github.com/simonw/sqlite-utils/issues/282))\r\n\r\n### Other changes\r\n\r\n- **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](https://github.com/simonw/sqlite-utils/issues/284))\r\n- New `table.use_rowid` introspection property, see [.use_rowid](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-introspection-use-rowid). ([#285](https://github.com/simonw/sqlite-utils/issues/285))\r\n- The new `sqlite-utils dump file.db` command outputs a SQL dump that can be used to recreate a database. ([#274](https://github.com/simonw/sqlite-utils/issues/274))\r\n- `-h` now works as a shortcut for `--help`, thanks Loren McIntyre. ([#276](https://github.com/simonw/sqlite-utils/issues/276))\r\n- Now using [pytest-cov](https://pytest-cov.readthedocs.io/) and [Codecov](https://about.codecov.io/) to track test coverage - currently at 96%. ([#275](https://github.com/simonw/sqlite-utils/issues/275))\r\n- SQL errors that occur when using `sqlite-utils query` are now displayed as CLI errors.", "published_at": "2021-06-19T16:13:11Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 197431109, "repo": "https://github.com/dogsheep/dogsheep-beta", "release": "https://github.com/dogsheep/dogsheep-beta/releases/tag/0.10.2", "date": "2021-06-13", "body_markdown": "- Fixed bug where searches consisting only of whitespace caused a server error. [#33](https://github.com/dogsheep/dogsheep-beta/issues/33)", "published_at": "2021-06-13T14:38:09Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-plugin\", \"datasette-tool\", \"dogsheep\", \"search\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.9.1", "date": "2021-06-13", "body_markdown": "- Fixed bug when using `table.upsert_all()` to create a table with only a single column that is treated as the primary key. ([#271](https://github.com/simonw/sqlite-utils/issues/271))", "published_at": "2021-06-13T03:00:45Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.9", "date": "2021-06-12", "body_markdown": "- New `sqlite-utils schema` command showing the full SQL schema for a database, see [Showing the schema (CLI)](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-schema). ([#268](https://github.com/simonw/sqlite-utils/issues/268))\r\n- `db.schema` introspection property exposing the same feature to the Python library, see [Showing the schema (Python library)](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-schema).", "published_at": "2021-06-12T02:08:03Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.8", "date": "2021-06-03", "body_markdown": "- New `sqlite-utils indexes` command to list indexes in a database, see [Listing indexes](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-indexes). ([#263](https://github.com/simonw/sqlite-utils/issues/263))\r\n- `table.xindexes` introspection property returning more details about that table's indexes, see [.xindexes](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-introspection-xindexes). ([#261](https://github.com/simonw/sqlite-utils/issues/261))", "published_at": "2021-06-03T05:17:33Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.7", "date": "2021-05-29", "body_markdown": "- New `table.pks_and_rows_where()` method returning `(primary_key, row_dictionary)` tuples - see [Listing rows with their primary keys](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-pks-and-rows-where). ([#240](https://github.com/simonw/sqlite-utils/issues/240))\r\n- Fixed bug with *table.add_foreign_key()* against columns containing spaces. ([#238](https://github.com/simonw/sqlite-utils/issues/238))\r\n- `table_or_view.drop(ignore=True)` option for avoiding errors if the table or view does not exist. ([#237](https://github.com/simonw/sqlite-utils/issues/237))\r\n- `sqlite-utils drop-view --ignore` and `sqlite-utils drop-table --ignore` options. ([#237](https://github.com/simonw/sqlite-utils/issues/237))\r\n- Fixed a bug with inserts of nested JSON containing non-ascii strings - thanks, Dylan Wu. ([#257](https://github.com/simonw/sqlite-utils/issues/257))\r\n- Suggest `--alter` if an error occurs caused by a missing column. ([#259](https://github.com/simonw/sqlite-utils/issues/259))\r\n- Support creating indexes with columns in descending order, see [API documentation](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-create-index) and [CLI documentation](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-create-index). ([#260](https://github.com/simonw/sqlite-utils/issues/260))\r\n- Correctly handle CSV files that start with a UTF-8 BOM. ([#250](https://github.com/simonw/sqlite-utils/issues/250))", "published_at": "2021-05-29T05:49:59Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 248903544, "repo": "https://github.com/dogsheep/hacker-news-to-sqlite", "release": "https://github.com/dogsheep/hacker-news-to-sqlite/releases/tag/0.4", "date": "2021-03-13", "body_markdown": "Progress display now shows the total as well as the number currently in the queue.\r\n```\r\n% hacker-news-to-sqlite trees hn.db 26440397\r\ndone: 1, in queue: 0, total: 1\r\ndone: 2, in queue: 28, total: 30\r\ndone: 3, in queue: 27, total: 30\r\n```", "published_at": "2021-03-13T19:15:06Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-tool\", \"dogsheep\", \"hacker-news\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.6", "date": "2021-02-19", "body_markdown": "This release adds the ability to execute queries joining data from more than one database file - similar to the cross database querying feature introduced in [Datasette 0.55](https://docs.datasette.io/en/stable/changelog.html#v0-55).\r\n\r\n- The `db.attach(alias, filepath)` Python method can be used to attach extra databases to the same connection, see [db.attach() in the Python API documentation](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-attach). ([#113](https://github.com/simonw/sqlite-utils/issues/113))\r\n- The `--attach` option attaches extra aliased databases to run SQL queries against directly on the command-line, see [attaching additional databases in the CLI documentation](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-attach). ([#236](https://github.com/simonw/sqlite-utils/issues/236))", "published_at": "2021-02-19T05:19:00Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.5", "date": "2021-02-14", "body_markdown": "- `sqlite-utils insert --sniff` option for detecting the delimiter and quote character used by a CSV file, see [Alternative delimiters and quote characters](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-insert-csv-tsv-delimiter). ([#230](https://github.com/simonw/sqlite-utils/issues/230))\r\n- The `table.rows_where()`, `table.search()` and `table.search_sql()` methods all now take optional `offset=` and `limit=` arguments. ([#231](https://github.com/simonw/sqlite-utils/issues/231))\r\n- New `--no-headers` option for `sqlite-utils insert --csv` to handle CSV files that are missing the header row, see [CSV files without a header row](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-insert-csv-tsv-no-header). ([#228](https://github.com/simonw/sqlite-utils/issues/228))\r\n- Fixed bug where inserting data with extra columns in subsequent chunks would throw an error. Thanks [@nieuwenhoven](https://github.com/nieuwenhoven) for the fix. ([#234](https://github.com/simonw/sqlite-utils/issues/234))\r\n- Fixed bug importing CSV files with columns containing more than 128KB of data. ([#229](https://github.com/simonw/sqlite-utils/issues/229))\r\n- Test suite now runs in CI against Ubuntu, macOS and Windows. Thanks [@nieuwenhoven](https://github.com/nieuwenhoven) for the Windows test fixes. ([#232](https://github.com/simonw/sqlite-utils/issues/232))", "published_at": "2021-02-14T22:44:21Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 303218369, "repo": "https://github.com/dogsheep/evernote-to-sqlite", "release": "https://github.com/dogsheep/evernote-to-sqlite/releases/tag/0.3.1", "date": "2021-02-11", "body_markdown": "- Explicitly open file using utf-8 encoding - thanks, RiverZhou. [#10](https://github.com/dogsheep/evernote-to-sqlite/pull/10)\r\n- Fix import error if note has no \"updated\" element - thanks, Matej Korosec. [#8](https://github.com/dogsheep/evernote-to-sqlite/pull/8)\r\n", "published_at": "2021-02-11T22:40:40Z", "topics": "[\"datasette-io\", \"datasette-tool\", \"dogsheep\", \"evernote\", \"sqlite\"]"} {"rowid": 303218369, "repo": "https://github.com/dogsheep/evernote-to-sqlite", "release": "https://github.com/dogsheep/evernote-to-sqlite/releases/tag/0.3", "date": "2021-02-11", "body_markdown": "- Correctly handle entities in XHTML notes. [#9](https://github.com/dogsheep/evernote-to-sqlite/issues/9)\r\n- Fixed a bug importing ENEX files on Windows. Thanks, [dskrad](https://github.com/dskrad). [#11](https://github.com/dogsheep/evernote-to-sqlite/issues/11)\r\n", "published_at": "2021-02-11T22:16:20Z", "topics": "[\"datasette-io\", \"datasette-tool\", \"dogsheep\", \"evernote\", \"sqlite\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.4.1", "date": "2021-02-06", "body_markdown": "- Fixed a code import bug that slipped in to 3.4. ([#226](https://github.com/simonw/sqlite-utils/issues/226))", "published_at": "2021-02-06T02:11:15Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.4", "date": "2021-02-06", "body_markdown": "- `sqlite-utils insert --csv` now accepts optional `--delimiter` and `--quotechar` options. See [Alternative delimiters and quote characters](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-insert-csv-tsv-delimiter). ([#223](https://github.com/simonw/sqlite-utils/issues/223))", "published_at": "2021-02-06T01:38:26Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 205429375, "repo": "https://github.com/dogsheep/swarm-to-sqlite", "release": "https://github.com/dogsheep/swarm-to-sqlite/releases/tag/0.3.3", "date": "2021-01-18", "body_markdown": "- Fixed bug where tool could crash with an error about missing columns. #11", "published_at": "2021-01-18T04:36:03Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-tool\", \"dogsheep\", \"foursquare\", \"foursquare-api\", \"sqlite\", \"swarm\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.3", "date": "2021-01-18", "body_markdown": "- The `table.m2m()` method now accepts an optional `alter=True` argument to specify that any missing columns should be added to the referenced table. See [Working with many-to-many relationships](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-m2m). ([#222](https://github.com/simonw/sqlite-utils/issues/222))", "published_at": "2021-01-18T04:29:48Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.2.1", "date": "2021-01-12", "body_markdown": "- Fixed a bug where `.add_missing_columns()` failed to take case insensitive column names into account. ([#221](https://github.com/simonw/sqlite-utils/issues/221))", "published_at": "2021-01-12T23:23:25Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.2", "date": "2021-01-03", "body_markdown": "This release introduces a new mechanism for speeding up `count(*)` queries using cached table counts, stored in a `_counts` table and updated by triggers. This mechanism is described in [Cached table counts using triggers](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-cached-table-counts), and can be enabled using Python API methods or the new `enable-counts` CLI command. ([#212](https://github.com/simonw/sqlite-utils/issues/212))\r\n\r\n- `table.enable_counts()` method for enabling these triggers on a specific table.\r\n- `db.enable_counts()` method for enabling triggers on every table in the database. ([#213](https://github.com/simonw/sqlite-utils/issues/213))\r\n- New `sqlite-utils enable-counts my.db` command for enabling counts on all or specific tables, see [Enabling cached counts](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-enable-counts). ([#214](https://github.com/simonw/sqlite-utils/issues/214))\r\n- New `sqlite-utils triggers` command for listing the triggers defined for a database or specific tables, see [Listing triggers](https://sqlite-utils.datasette.io/en/stable/cli.html#cli-triggers). ([#218](https://github.com/simonw/sqlite-utils/issues/218))\r\n- New `db.use_counts_table` property which, if `True`, causes `table.count` to read from the `_counts` table. ([#215](https://github.com/simonw/sqlite-utils/issues/215))\r\n- `table.has_counts_triggers` property revealing if a table has been configured with the new `_counts` database triggers.\r\n- `db.reset_counts()` method and `sqlite-utils reset-counts` command for resetting the values in the `_counts` table. ([#219](https://github.com/simonw/sqlite-utils/issues/219))\r\n- The previously undocumented `db.escape()` method has been renamed to `db.quote()` and is now covered by the documentation: [Quoting strings for use in SQL](https://sqlite-utils.datasette.io/en/stable/python-api.html#python-api-quote). ([#217](https://github.com/simonw/sqlite-utils/issues/217))\r\n- New `table.triggers_dict` and `db.triggers_dict` introspection properties. ([#211](https://github.com/simonw/sqlite-utils/issues/211), [#216](https://github.com/simonw/sqlite-utils/issues/216))\r\n- `sqlite-utils insert` now shows a more useful error message for invalid JSON. ([#206](https://github.com/simonw/sqlite-utils/issues/206))", "published_at": "2021-01-03T21:17:37Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.1.1", "date": "2021-01-01", "body_markdown": "- Fixed failing test caused by `optimize` sometimes creating larger database files. ([#209](https://github.com/simonw/sqlite-utils/issues/209))\r\n- Documentation now lives on \r\n- README now includes `brew install sqlite-utils` installation method.", "published_at": "2021-01-01T23:57:07Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 197431109, "repo": "https://github.com/dogsheep/dogsheep-beta", "release": "https://github.com/dogsheep/dogsheep-beta/releases/tag/0.10.1", "date": "2020-12-19", "body_markdown": "- Fix for error if search query contains hyphens such as `github-to-sqlite`. #31 ", "published_at": "2020-12-19T06:19:13Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-plugin\", \"datasette-tool\", \"dogsheep\", \"search\"]"} {"rowid": 197431109, "repo": "https://github.com/dogsheep/dogsheep-beta", "release": "https://github.com/dogsheep/dogsheep-beta/releases/tag/0.10", "date": "2020-12-16", "body_markdown": "- Now depends on [sqlite-utils](https://github.com/simonw/sqlite-utils) >= 3.0. #30\r\n- The user's original search term is now passed to the `display_sql` SQL query as the `:q` parameter. #29\r\n", "published_at": "2020-12-16T21:28:13Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-plugin\", \"datasette-tool\", \"dogsheep\", \"search\"]"} {"rowid": 207052882, "repo": "https://github.com/dogsheep/github-to-sqlite", "release": "https://github.com/dogsheep/github-to-sqlite/releases/tag/2.8.2", "date": "2020-12-16", "body_markdown": "- `--readme` now stores `null` if the README file does not exist, rather than throwing an error. #57\r\n- README HTML is rewritten to fix broken internal links, e.g. for a table of contents. #58\r\n", "published_at": "2020-12-16T19:21:58Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-tool\", \"dogsheep\", \"github-api\", \"sqlite\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.1", "date": "2020-12-13", "body_markdown": "- New command: `sqlite-utils analyze-tables my.db` outputs useful information about the table columns in the database, such as the number of distinct values and how many rows are null. See [Analyzing tables](https://sqlite-utils.readthedocs.io/en/stable/cli.html#cli-analyze-tables) for documentation. ([#207](https://github.com/simonw/sqlite-utils/issues/207))\r\n- New `table.analyze_column(column)` Python method used by the `analyze-tables` command - see [Analyzing a column](https://sqlite-utils.readthedocs.io/en/stable/python-api.html#python-api-analyze-column).\r\n- The `table.update()` method now correctly handles values that should be stored as JSON. Thanks, Andreas Madsack. ([#204](https://github.com/simonw/sqlite-utils/pull/204))", "published_at": "2020-12-13T07:31:40Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 207052882, "repo": "https://github.com/dogsheep/github-to-sqlite", "release": "https://github.com/dogsheep/github-to-sqlite/releases/tag/2.8.1", "date": "2020-11-30", "body_markdown": "- README now links to example database tables for each command. #56\r\n- Added documentation for `github-to-sqlite releases`.", "published_at": "2020-11-30T04:18:21Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-tool\", \"dogsheep\", \"github-api\", \"sqlite\"]"} {"rowid": 207052882, "repo": "https://github.com/dogsheep/github-to-sqlite", "release": "https://github.com/dogsheep/github-to-sqlite/releases/tag/2.8", "date": "2020-11-30", "body_markdown": "- New command: `github-to-sqlite workflows`, for fetching the YAML configuration used by [GitHub Actions](https://github.com/features/actions) workflows and using it to populate new `workflows`, `jobs` and `steps` tables. #54\r\n- New command: `github-to-sqlite pull-requests` - thanks, @adamjonas! #48\r\n- `github-to-sqlite issues --issue` option can now be used multiple times.", "published_at": "2020-11-30T01:41:38Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-tool\", \"dogsheep\", \"github-api\", \"sqlite\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.0", "date": "2020-11-08", "body_markdown": "This release introduces a new `sqlite-utils search` command for searching tables, see [Executing searches](https://sqlite-utils.readthedocs.io/en/latest/cli.html#cli-search). ([#192](https://github.com/simonw/sqlite-utils/issues/192))\r\n\r\nThe `table.search()` method has been redesigned, see [Searching with table.search()](https://sqlite-utils.readthedocs.io/en/latest/python-api.html#python-api-fts-search). ([#197](https://github.com/simonw/sqlite-utils/issues/197))\r\n\r\nThe release includes minor backwards-incompatible changes, hence the version bump to 3.0. Those changes, which should not affect most users, are:\r\n\r\n- The `-c` shortcut option for outputting CSV is no longer available. The full `--csv` option is required instead.\r\n- The `-f` shortcut for `--fmt` has also been removed - use `--fmt`.\r\n- The `table.search()` method now defaults to sorting by relevance, not sorting by `rowid`. ([#198](https://github.com/simonw/sqlite-utils/issues/198))\r\n- The `table.search()` method now returns a generator over a list of Python dictionaries. It previously returned a list of tuples.\r\n\r\nAlso in this release:\r\n\r\n- The `query`, `tables`, `rows` and `search` CLI commands now accept a new `--tsv` option which outputs the results in TSV. ([#193](https://github.com/simonw/sqlite-utils/issues/193))\r\n- A new `table.virtual_table_using` property reveals if a table is a virtual table, and returns the upper case type of virtual table (e.g. `FTS4` or `FTS5`) if it is. It returns `None` if the table is not a virtual table. ([#196](https://github.com/simonw/sqlite-utils/issues/196))\r\n- The new `table.search_sql()` method returns the SQL for searching a table, see [Building SQL queries with table.search_sql()](https://sqlite-utils.readthedocs.io/en/latest/python-api.html#python-api-fts-search-sql).\r\n- `sqlite-utils rows` now accepts multiple optional `-c` parameters specifying the columns to return. ([#200](https://github.com/simonw/sqlite-utils/issues/200))\r\n\r\nChanges since the 3.0a0 alpha release:\r\n\r\n- The `sqlite-utils search` command now defaults to returning every result, unless you add a `--limit 20` option.\r\n- The `sqlite-utils search -c` and `table.search(columns=[])` options are now fully respected. ([#201](https://github.com/simonw/sqlite-utils/issues/201))", "published_at": "2020-11-08T17:24:27Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/3.0a0", "date": "2020-11-07", "body_markdown": "This release introduces a new `sqlite-utils search` command for searching tables, see [Executing searches](https://sqlite-utils.readthedocs.io/en/latest/cli.html#cli-search). ([#192](https://github.com/simonw/sqlite-utils/issues/192))\r\n\r\nThe `table.search()` method has been redesigned, see [Searching with table.search()](https://sqlite-utils.readthedocs.io/en/latest/python-api.html#python-api-fts-search). ([#197](https://github.com/simonw/sqlite-utils/issues/197))\r\n\r\nThe release includes minor backwards-incompatible changes, hence the version bump to 3.0. Those changes, which should not affect most users, are:\r\n\r\n- The `-c` shortcut option for outputting CSV is no longer available. The full `--csv` option is required instead.\r\n- The `-f` shortcut for `--fmt` has also been removed - use `--fmt`.\r\n- The `table.search()` method now defaults to sorting by relevance, not sorting by `rowid`. ([#198](https://github.com/simonw/sqlite-utils/issues/198))\r\n- The `table.search()` method now returns a generator over a list of Python dictionaries. It previously returned a list of tuples.\r\n\r\nAlso in this release:\r\n\r\n- The `query`, `tables`, `rows` and `search` CLI commands now accept a new `--tsv` option which outputs the results in TSV. ([#193](https://github.com/simonw/sqlite-utils/issues/193))\r\n- A new `table.virtual_table_using` property reveals if a table is a virtual table, and returns the upper case type of virtual table (e.g. `FTS4` or `FTS5`) if it is. It returns `None` if the table is not a virtual table. ([#196](https://github.com/simonw/sqlite-utils/issues/196))\r\n- The new `table.search_sql()` method returns the SQL for searching a table, see [Building SQL queries with table.search_sql()](https://sqlite-utils.readthedocs.io/en/latest/python-api.html#python-api-fts-search-sql).\r\n- `sqlite-utils rows` now accepts multiple optional `-c` parameters specifying the columns to return. ([#200](https://github.com/simonw/sqlite-utils/issues/200))", "published_at": "2020-11-07T01:24:43Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/2.23", "date": "2020-10-28", "body_markdown": "- `table.m2m(other_table, records)` method now takes any iterable, not just a list or tuple. Thanks, Adam Wolf. ([#189](https://github.com/simonw/sqlite-utils/pull/189))\r\n- `sqlite-utils insert` now displays a progress bar for CSV or TSV imports. ([#173](https://github.com/simonw/sqlite-utils/issues/173))\r\n- New `@db.register_function(deterministic=True)` option for registering deterministic SQLite functions in Python 3.8 or higher. ([#191](https://github.com/simonw/sqlite-utils/issues/191))", "published_at": "2020-10-28T21:38:54Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 206202864, "repo": "https://github.com/dogsheep/inaturalist-to-sqlite", "release": "https://github.com/dogsheep/inaturalist-to-sqlite/releases/tag/0.2.1", "date": "2020-10-22", "body_markdown": "- Tweaked dependencies for compatibility with new PyPI resolver.\r\n\r\n", "published_at": "2020-10-22T00:08:58Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-tool\", \"dogsheep\", \"inaturalist\", \"sqlite\"]"} {"rowid": 213286752, "repo": "https://github.com/dogsheep/pocket-to-sqlite", "release": "https://github.com/dogsheep/pocket-to-sqlite/releases/tag/0.2.1", "date": "2020-10-22", "body_markdown": "- Tweaked dependencies for compatibility with new PyPI resolver.", "published_at": "2020-10-22T00:08:24Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-tool\", \"dogsheep\", \"pocket\", \"pocket-api\", \"sqlite\"]"} {"rowid": 207052882, "repo": "https://github.com/dogsheep/github-to-sqlite", "release": "https://github.com/dogsheep/github-to-sqlite/releases/tag/2.7", "date": "2020-10-19", "body_markdown": "- `github-to-sqlite repos` command now takes options `--readme` and `--readme-html`, which write the README or rendered HTML README into the `readme` or `readme_html` columns, respectively. #52\r\n- New `--accept` option for `github-to-sqlite get`. #50", "published_at": "2020-10-19T05:38:34Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-tool\", \"dogsheep\", \"github-api\", \"sqlite\"]"} {"rowid": 197431109, "repo": "https://github.com/dogsheep/dogsheep-beta", "release": "https://github.com/dogsheep/dogsheep-beta/releases/tag/0.9", "date": "2020-10-17", "body_markdown": "- Facet by date. #16\r\n- Now depends on [Datasette 0.50.2](https://docs.datasette.io/en/stable/changelog.html#v0-50-2)\r\n- Uses `datasette.client` and passes through authentication cookies. #28 ", "published_at": "2020-10-17T23:03:04Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-plugin\", \"datasette-tool\", \"dogsheep\", \"search\"]"} {"rowid": 197882382, "repo": "https://github.com/dogsheep/healthkit-to-sqlite", "release": "https://github.com/dogsheep/healthkit-to-sqlite/releases/tag/1.0", "date": "2020-10-17", "body_markdown": "- Fixed a bug where export files generated in languages other than English failed to import. #11\r\n- CI now uses GitHub Actions", "published_at": "2020-10-17T21:17:34Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-tool\", \"dogsheep\", \"healthkit\", \"sqlite\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/2.22", "date": "2020-10-16", "body_markdown": "- New `--encoding` option for processing CSV and TSV files that use a non-utf-8 encoding, for both the `insert` and `update` commands. ([#182](https://github.com/simonw/sqlite-utils/issues/182))\r\n- The `--load-extension` option is now available to many more commands. ([#137](https://github.com/simonw/sqlite-utils/issues/137))\r\n- `--load-extension=spatialite` can be used to load SpatiaLite from common installation locations, if it is available. ([#136](https://github.com/simonw/sqlite-utils/issues/136))\r\n- Tests now also run against Python 3.9. ([#184](https://github.com/simonw/sqlite-utils/issues/184))\r\n- Passing `pk=[\"id\"]` now has the same effect as passing `pk=\"id\"`. ([#181](https://github.com/simonw/sqlite-utils/issues/181))", "published_at": "2020-10-16T19:31:45Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 205429375, "repo": "https://github.com/dogsheep/swarm-to-sqlite", "release": "https://github.com/dogsheep/swarm-to-sqlite/releases/tag/0.3.2", "date": "2020-10-12", "body_markdown": "- Fix for \"table photos has no column named hasSticker\" bug, thanks @mattiaborsoi. #10\r\n- Switched CI to GitHub Actions.", "published_at": "2020-10-12T20:33:48Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-tool\", \"dogsheep\", \"foursquare\", \"foursquare-api\", \"sqlite\", \"swarm\"]"} {"rowid": 303218369, "repo": "https://github.com/dogsheep/evernote-to-sqlite", "release": "https://github.com/dogsheep/evernote-to-sqlite/releases/tag/0.2", "date": "2020-10-12", "body_markdown": "- Notes now use an ID derived from a hash of their contents. #3\r\n- Date columns are now in ISO format, and indexd. #4\r\n- Notes and resources table now have full-text search configured. #4\r\n- Improved how OCR is stored in the database, only storing the most confident matches. #6", "published_at": "2020-10-12T00:07:24Z", "topics": "[\"datasette-io\", \"datasette-tool\", \"dogsheep\", \"evernote\", \"sqlite\"]"} {"rowid": 303218369, "repo": "https://github.com/dogsheep/evernote-to-sqlite", "release": "https://github.com/dogsheep/evernote-to-sqlite/releases/tag/0.1", "date": "2020-10-11", "body_markdown": "- Initial release, with support for importing ENEX files.", "published_at": "2020-10-11T21:47:39Z", "topics": "[\"datasette-io\", \"datasette-tool\", \"dogsheep\", \"evernote\", \"sqlite\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/2.21", "date": "2020-09-24", "body_markdown": "- `table.extract()` and `sqlite-utils extract` now apply much, much faster - one example operation reduced from twelve minutes to just four seconds! ([#172](https://github.com/simonw/sqlite-utils/issues/172))\r\n- `sqlite-utils extract` no longer shows a progress bar, because it's fast enough not to need one.\r\n- New `column_order=` option for `table.transform()` which can be used to alter the order of columns in a table. ([#175](https://github.com/simonw/sqlite-utils/issues/175))\r\n- `sqlite-utils transform --column-order=` option (with a `-o` shortcut) for changing column order. ([#176](https://github.com/simonw/sqlite-utils/issues/176))\r\n- The `table.transform(drop_foreign_keys=)` parameter and the `sqlite-utils transform --drop-foreign-key` option have changed. They now accept just the name of the column rather than requiring all three of the column, other table and other column. This is technically a backwards-incompatible change but I chose not to bump the major version number because the transform feature is so new. ([#177](https://github.com/simonw/sqlite-utils/issues/177))\r\n- The table `.disable_fts()`, `.rebuild_fts()`, `.delete()`, `.delete_where()` and `.add_missing_columns()` methods all now `return self`, which means they can be chained together with other table operations.", "published_at": "2020-09-24T16:45:44Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/2.20", "date": "2020-09-23", "body_markdown": "This release introduces two key new capabilities: **transform** ([#114](https://github.com/simonw/sqlite-utils/issues/114)) and **extract** ([#42](https://github.com/simonw/sqlite-utils/issues/42)).\r\n\r\n### Transform\r\n\r\nSQLite's ALTER TABLE has [several documented limitations](https://sqlite.org/lang_altertable.html). The `table.transform()` Python method and `sqlite-utils transform` CLI command work around these limitations using a pattern where a new table with the desired structure is created, data is copied over to it and the old table is then dropped and replaced by the new one.\r\n\r\nYou can use these tools to drop columns, change column types, rename columns, add and remove `NOT NULL` and defaults, remove foreign key constraints and more. See the [transforming tables (CLI)](https://sqlite-utils.readthedocs.io/en/stable/cli.html#cli-transform-table) and [transforming tables (Python library)](https://sqlite-utils.readthedocs.io/en/stable/python-api.html#python-api-transform) documentation for full details of how to use them.\r\n\r\n### Extract\r\n\r\nSometimes a database table - especially one imported from a CSV file - will contain duplicate data. A `Trees` table may include a `Species` column with only a few dozen unique values, when the table itself contains thousands of rows.\r\n\r\nThe `table.extract()` method and `sqlite-utils extract` commands can extract a column - or multiple columns - out into a separate lookup table, and set up a foreign key relationship from the original table.\r\n\r\nThe Python library [extract() documentation](https://sqlite-utils.readthedocs.io/en/stable/python-api.html#python-api-extract) describes how extraction works in detail, and [Extracting columns into a separate table](https://sqlite-utils.readthedocs.io/en/stable/cli.html#cli-extract) in the CLI documentation includes a detailed example.\r\n\r\n### Other changes\r\n\r\n- The `@db.register_function` decorator can be used to quickly register Python functions as custom SQL functions, see [Registering custom SQL functions](https://sqlite-utils.readthedocs.io/en/stable/python-api.html#python-api-register-function). ([#162](https://github.com/simonw/sqlite-utils/issues/162))\r\n- The `table.rows_where()` method now accepts an optional `select=` argument for specifying which columns should be selected, see [Listing rows](https://sqlite-utils.readthedocs.io/en/stable/python-api.html#python-api-rows).", "published_at": "2020-09-23T00:37:01Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 197431109, "repo": "https://github.com/dogsheep/dogsheep-beta", "release": "https://github.com/dogsheep/dogsheep-beta/releases/tag/0.9a0", "date": "2020-09-20", "body_markdown": "- Added by date, as part of developing a timeline view. #16", "published_at": "2020-09-20T23:37:48Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-plugin\", \"datasette-tool\", \"dogsheep\", \"search\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/2.19", "date": "2020-09-20", "body_markdown": "- New `sqlite-utils add-foreign-keys` command for [Adding multiple foreign keys at once](https://sqlite-utils.readthedocs.io/en/stable/cli.html#cli-add-foreign-keys). ([#157](https://github.com/simonw/sqlite-utils/issues/157))\r\n- New `table.enable_fts(..., replace=True)` argument for replacing an existing FTS table with a new configuration. ([#160](https://github.com/simonw/sqlite-utils/issues/160))\r\n- New `table.add_foreign_key(..., ignore=True)` argument for ignoring a foreign key if it already exists. ([#112](https://github.com/simonw/sqlite-utils/issues/112))", "published_at": "2020-09-20T22:24:04Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 197431109, "repo": "https://github.com/dogsheep/dogsheep-beta", "release": "https://github.com/dogsheep/dogsheep-beta/releases/tag/0.8", "date": "2020-09-18", "body_markdown": "- New `template_debug` configuration setting. #25\r\n- Templates now autoescape by default, use `{{ display.foo|safe }}` if you know you want HTML not to be escaped.\r\n- Fixed bug where the wrong template fragment could be used for a row. #24\r\n- Sort order is now persisted when you execute a new search. #23 ", "published_at": "2020-09-18T22:41:33Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-plugin\", \"datasette-tool\", \"dogsheep\", \"search\"]"} {"rowid": 197431109, "repo": "https://github.com/dogsheep/dogsheep-beta", "release": "https://github.com/dogsheep/dogsheep-beta/releases/tag/0.7.1", "date": "2020-09-17", "body_markdown": "- Fixed bug with sort orders displayed for the timeline view. #22", "published_at": "2020-09-17T23:13:46Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-plugin\", \"datasette-tool\", \"dogsheep\", \"search\"]"} {"rowid": 197431109, "repo": "https://github.com/dogsheep/dogsheep-beta", "release": "https://github.com/dogsheep/dogsheep-beta/releases/tag/0.7", "date": "2020-09-17", "body_markdown": "- Option to sort by relevance / oldest / newest. #21 \r\n- Renamed `table` column to `type`. #17\r\n- New `-d` option for passing one or more databases to index. Without this all databases in the config file will be indexed.", "published_at": "2020-09-17T22:57:09Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-plugin\", \"datasette-tool\", \"dogsheep\", \"search\"]"} {"rowid": 207052882, "repo": "https://github.com/dogsheep/github-to-sqlite", "release": "https://github.com/dogsheep/github-to-sqlite/releases/tag/2.6", "date": "2020-09-17", "body_markdown": "- New `github-to-sqlite get /gists` command for making authenticated API calls against any API path. #50 ", "published_at": "2020-09-17T03:55:03Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-tool\", \"dogsheep\", \"github-api\", \"sqlite\"]"} {"rowid": 197431109, "repo": "https://github.com/dogsheep/dogsheep-beta", "release": "https://github.com/dogsheep/dogsheep-beta/releases/tag/0.7a0", "date": "2020-09-09", "body_markdown": "- Renamed `table` column to `type`. #17\r\n- New `-d` option for passing one or more databases to index. Without this all databases in the config file will be indexed.", "published_at": "2020-09-09T00:46:06Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-plugin\", \"datasette-tool\", \"dogsheep\", \"search\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/2.18", "date": "2020-09-08", "body_markdown": "- `table.rebuild_fts()` method for rebuilding a FTS index, see [Rebuilding a full-text search table](https://sqlite-utils.readthedocs.io/en/stable/python-api.html#python-api-fts-rebuild). ([#155](https://github.com/simonw/sqlite-utils/issues/155))\r\n- `sqlite-utils rebuild-fts data.db` command for rebuilding FTS indexes across all tables, or just specific tables. ([#155](https://github.com/simonw/sqlite-utils/issues/155))\r\n- `table.optimize()` method no longer deletes junk rows from the `*_fts_docsize` table. This was added in 2.17 but it turns out running `table.rebuild_fts()` is a better solution to this problem.\r\n- Fixed a bug where rows with additional columns that are inserted after the first batch of records could cause an error due to breaking SQLite's maximum number of parameters. Thanks, Simon Wiles. ([#145](https://github.com/simonw/sqlite-utils/issues/145))", "published_at": "2020-09-08T23:39:21Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 140912432, "repo": "https://github.com/simonw/sqlite-utils", "release": "https://github.com/simonw/sqlite-utils/releases/tag/2.17", "date": "2020-09-07", "body_markdown": "This release handles a bug where replacing rows in FTS tables could result in growing numbers of unneccessary rows in the associated `*_fts_docsize` table. ([#149](https://github.com/simonw/sqlite-utils/issues/149))\r\n\r\n- `PRAGMA recursive_triggers=on` by default for all connections. You can turn it off with `Database(recursive_triggers=False)`. ([#152](https://github.com/simonw/sqlite-utils/issues/152))\r\n- `table.optimize()` method now deletes unnecessary rows from the `*_fts_docsize` table. ([#153](https://github.com/simonw/sqlite-utils/issues/153))\r\n- New tracer method for tracking underlying SQL queries, see [Tracing queries](http://127.0.0.1:8000/python-api.html#python-api-tracing). ([#150](https://github.com/simonw/sqlite-utils/issues/150))\r\n- Neater indentation for schema SQL. ([#148](https://github.com/simonw/sqlite-utils/issues/148))\r\n- Documentation for `sqlite_utils.AlterError` exception thrown by in `add_foreign_keys()`.", "published_at": "2020-09-07T22:08:33Z", "topics": "[\"cli\", \"click\", \"datasette\", \"datasette-io\", \"datasette-tool\", \"python\", \"sqlite\", \"sqlite-database\"]"} {"rowid": 197431109, "repo": "https://github.com/dogsheep/dogsheep-beta", "release": "https://github.com/dogsheep/dogsheep-beta/releases/tag/0.6", "date": "2020-09-05", "body_markdown": "- Rerun the search query with FTS quoting if a SQLite FTS error occurs. This means searching for e.g. \"#dogfest\" will no longer throw an error, while still supporting advanced SQLite FTS syntax. #14\r\n- Maximum width 100% on images in results\r\n- Don't display facet headers if there are no results for that facet.", "published_at": "2020-09-05T16:26:06Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-plugin\", \"datasette-tool\", \"dogsheep\", \"search\"]"} {"rowid": 197431109, "repo": "https://github.com/dogsheep/dogsheep-beta", "release": "https://github.com/dogsheep/dogsheep-beta/releases/tag/0.5", "date": "2020-09-04", "body_markdown": "- Custom template displays can now render a point on a map. #12", "published_at": "2020-09-04T01:46:16Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-plugin\", \"datasette-tool\", \"dogsheep\", \"search\"]"} {"rowid": 197431109, "repo": "https://github.com/dogsheep/dogsheep-beta", "release": "https://github.com/dogsheep/dogsheep-beta/releases/tag/0.4.1", "date": "2020-09-03", "body_markdown": "- Fixed support for [advanced FTS query syntax](https://www.sqlite.org/fts5.html#full_text_query_syntax). #13", "published_at": "2020-09-03T21:41:52Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-plugin\", \"datasette-tool\", \"dogsheep\", \"search\"]"} {"rowid": 197431109, "repo": "https://github.com/dogsheep/dogsheep-beta", "release": "https://github.com/dogsheep/dogsheep-beta/releases/tag/0.4", "date": "2020-09-03", "body_markdown": "- Working faceted search interface at `/-/beta` #3\r\n- `is_public` column for filtering between public and private data. #11\r\n- New `received` category. #10", "published_at": "2020-09-03T21:11:28Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-plugin\", \"datasette-tool\", \"dogsheep\", \"search\"]"} {"rowid": 197431109, "repo": "https://github.com/dogsheep/dogsheep-beta", "release": "https://github.com/dogsheep/dogsheep-beta/releases/tag/0.4a1", "date": "2020-09-03", "body_markdown": "- Added `received` category. #10\r\n- New `is_public` column. #11", "published_at": "2020-09-03T18:03:50Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-plugin\", \"datasette-tool\", \"dogsheep\", \"search\"]"} {"rowid": 197431109, "repo": "https://github.com/dogsheep/dogsheep-beta", "release": "https://github.com/dogsheep/dogsheep-beta/releases/tag/0.4a0", "date": "2020-09-03", "body_markdown": "- Incomplete preview of the `/-/beta` search interface. #3 #9\r\n\r\n", "published_at": "2020-09-03T03:54:23Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-plugin\", \"datasette-tool\", \"dogsheep\", \"search\"]"} {"rowid": 197431109, "repo": "https://github.com/dogsheep/dogsheep-beta", "release": "https://github.com/dogsheep/dogsheep-beta/releases/tag/0.3", "date": "2020-09-02", "body_markdown": "- New `category` column plus default `categories` table. #7", "published_at": "2020-09-02T21:07:44Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-plugin\", \"datasette-tool\", \"dogsheep\", \"search\"]"} {"rowid": 197431109, "repo": "https://github.com/dogsheep/dogsheep-beta", "release": "https://github.com/dogsheep/dogsheep-beta/releases/tag/0.2", "date": "2020-09-01", "body_markdown": "- Use Porter stemming by default, allow that to be over-ridden with the new `--tokenize=` option. #2", "published_at": "2020-09-01T20:41:31Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-plugin\", \"datasette-tool\", \"dogsheep\", \"search\"]"} {"rowid": 197431109, "repo": "https://github.com/dogsheep/dogsheep-beta", "release": "https://github.com/dogsheep/dogsheep-beta/releases/tag/0.1", "date": "2020-09-01", "body_markdown": "- Optimize the FTS table and vacuum the database. #4\r\n- First non-alpha release", "published_at": "2020-09-01T06:12:05Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-plugin\", \"datasette-tool\", \"dogsheep\", \"search\"]"} {"rowid": 197431109, "repo": "https://github.com/dogsheep/dogsheep-beta", "release": "https://github.com/dogsheep/dogsheep-beta/releases/tag/0.1a2", "date": "2020-09-01", "body_markdown": "- Now creates an index on the `timestamp` column. #1", "published_at": "2020-09-01T04:50:01Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-plugin\", \"datasette-tool\", \"dogsheep\", \"search\"]"} {"rowid": 197431109, "repo": "https://github.com/dogsheep/dogsheep-beta", "release": "https://github.com/dogsheep/dogsheep-beta/releases/tag/0.1a", "date": "2020-09-01", "body_markdown": "- First working version", "published_at": "2020-09-01T04:19:00Z", "topics": "[\"datasette\", \"datasette-io\", \"datasette-plugin\", \"datasette-tool\", \"dogsheep\", \"search\"]"}