Commit graph

381 commits

Author SHA1 Message Date
Simon Willison
7e9aad7e1c --load-extension option for sqlite-utils query, closes #134 2020-08-21 13:54:11 -07:00
Simon Willison
bf4c6b7c82 find_spatialite() utility function, closes #135 2020-08-21 13:30:02 -07:00
Simon Willison
c8d7969192 Release 2.15.1 2.15.1
Refs #133
2020-08-12 09:59:48 -07:00
Simon Willison
d03fc607b3
Package as sdist as well, refs #133
Also refs https://github.com/simonw/homebrew-datasette/issues/10
2020-08-12 09:56:36 -07:00
Simon Willison
66ed36258a Renaming from master to main 2020-08-10 14:04:32 -07:00
Simon Willison
7536a5a0f6 Release 0.15 2.15
Refs #132
2020-08-10 12:06:02 -07:00
Simon Willison
2d2d724e32 Tools for enabling and disabling WAL, closes #132 2020-08-10 11:59:21 -07:00
Simon Willison
957f8c9b4c
2.14.1 release notes 2.14.1 2020-08-05 23:31:11 -07:00
Simon Willison
5de24ee0a4
Release 2.14.1 2020-08-05 23:28:50 -07:00
Simon Willison
db1e08c2c8
Documentation for table.detect_fts() method 2020-08-05 19:21:49 -07:00
Simon Willison
5560d717cb
Updated list of supported parameters to db.table() 2020-08-01 14:30:43 -07:00
Simon Willison
a8b922bcb9 Release 2.14 2.14
Refs #127, #130
2020-08-01 13:58:47 -07:00
Simon Willison
57e4eb8e55 sqlite-utils populate-fts --tokenize= option, closes #130 2020-08-01 13:51:05 -07:00
Simon Willison
617e6f070c enable_fts(..., tokenize=X) parameter, refs #130 2020-08-01 13:40:36 -07:00
Simon Willison
8fe1e6d1be insert-files can now read from stdin, closes #127 2020-07-29 20:08:12 -07:00
Simon Willison
710454d72a Release 2.13 2.13
Refs #128
2020-07-29 18:13:53 -07:00
Simon Willison
f804690274 Support inserting UUID and memoryview, closes #128 2020-07-29 18:10:33 -07:00
Simon Willison
3214af4a20
Fixed bug in one of the insert-files examples 2020-07-27 18:53:57 -07:00
Simon Willison
3f6a10b807 Release 2.12 2.12
Refs #122, #123, #124, #125, #126
2020-07-27 00:21:26 -07:00
Simon Willison
ebc802f7ff sqlite-utils insert-files command, closes #122 2020-07-27 00:08:57 -07:00
Simon Willison
1a61a6d3d6 Ability to insert base64 binary data as JSON, closes #126 2020-07-26 20:59:34 -07:00
Simon Willison
814d4a7f90 -p for passing named params to query, closes #124 2020-07-26 20:53:51 -07:00
Simon Willison
20e543e9a4 Output binary columns as base64 in JSON, closes #125 2020-07-26 17:48:36 -07:00
Simon Willison
bc8409941f --raw option, refs #123 2020-07-26 09:43:45 -07:00
Simon Willison
a236a6bc77 Release notes for 2.11 2.11
Refs #118, #120
2020-07-08 10:36:07 -07:00
Simon Willison
0f8b042b47
Release 2.11
Refs #118, #120
2020-07-08 10:28:29 -07:00
Thomas Sibley
ae4593316c Add insert --truncate option
Deletes all rows in the table (if it exists) before inserting new rows.
SQLite doesn't implement a TRUNCATE TABLE statement but does optimize an
unqualified DELETE FROM.

This can be handy if you want to refresh the entire contents of a table
but a) don't have a PK (so can't use --replace), b) don't want the table
to disappear (even briefly) for other connections, and c) have to handle
records that used to exist being deleted.

Ideally the replacement of rows would appear instantaneous to other
connections by putting the DELETE + INSERT in a transaction, but this is
very difficult without breaking other code as the current transaction
handling is inconsistent and non-systematic.  There exists the
possibility for the DELETE to succeed but the INSERT to fail, leaving an
empty table.  This is not much worse, however, than the current
possibility of one chunked INSERT succeeding and being committed while
the next chunked INSERT fails, leaving a partially complete operation.
2020-07-08 10:26:20 -07:00
Thomas Sibley
f8277d0fb9
sqlite-utils query can now run DML (#120)
* Failing test showing that DML in `sqlite-utils query` doesn't work
* Run `sqlite-utils query` in a transaction so that DML is committed

Thanks, @tsibley!
2020-07-07 22:14:04 -07:00
Simon Willison
d0cdaaaf00
Release notes for 2.10.1 2020-06-23 14:13:18 -07:00
Simon Willison
97246f9ef7
Release 2.10.1 2.10.1
Refs #116
2020-06-23 14:04:07 -07:00
Simon Willison
fbeb61e49c
Documentation for table.pks, closes #116 2020-06-23 14:03:13 -07:00
Simon Willison
4d9a320436 Release 2.10 2.10
Refs #115
2020-06-12 10:43:45 -07:00
Simon Willison
03ee97d225 CLI now supports upsert/insert - closes #115 2020-06-12 10:40:53 -07:00
Simon Willison
8eaac7c5f1 pip, not pip3 2020-05-11 12:23:11 -07:00
Simon Willison
3b5c931287 Release 2.9.1 2.9.1 2020-05-11 12:20:29 -07:00
Simon Willison
74b30af31b
Added project_urls 2020-05-11 12:16:22 -07:00
Simon Willison
3936512edd Release 2.9 2.9 2020-05-10 18:54:56 -07:00
Simon Willison
af3f81b540 Store decimal.Decimal in DB as FLOAT, closes #110 2020-05-10 18:50:03 -07:00
Simon Willison
e8c57e09b6 More things to .gitignore 2020-05-10 18:29:29 -07:00
Simon Willison
98019e92d0 Ran black, refs #111 2020-05-10 18:26:16 -07:00
Simon Willison
4e9cb739c7 drop-table and drop-view commands, closes #111 2020-05-10 17:44:21 -07:00
Simon Willison
396bee9236
Don't show documentation badge on docs index 2020-05-03 08:47:28 -07:00
Simon Willison
60e380e551
Add badges to documentation index 2020-05-03 08:44:41 -07:00
Simon Willison
30a390780a Release 2.8, refs #27 and #107 2.8 2020-05-03 08:39:56 -07:00
Simon Willison
d16097231c Added sqlite-utils create-view command, closes #107 2020-05-03 08:36:29 -07:00
Simon Willison
78264b738c Removed docs for feature I decided not to implement, refs #27 2020-05-03 08:25:21 -07:00
Simon Willison
9f6085b4e4 create-table --ignore and --replace, refs #27 2020-05-03 08:24:39 -07:00
Simon Willison
4d5916075d create-table --not-null, --default, --fk, refs #27 2020-05-03 08:09:00 -07:00
Simon Willison
99a7906fd9 sqlite-utils create-table docs, plus doc unit test
Refs #27. Closes #108
2020-05-02 21:13:49 -07:00
Simon Willison
36d256b047 Initial implementation of create-table command, refs #27 2020-05-02 20:55:40 -07:00