Simon Willison
85247038f7
install and uninstall commands, closes #483
2022-09-26 11:57:11 -07:00
Mischa Untaga
0b315d3fa8
progressbar for inserts/upserts of other file formats
...
* progressbar for inserts/upserts of other file formats, closes #485
* Pin to Python 3.10.6 for the moment as workaround for mypy error
Co-authored-by: Simon Willison <swillison@gmail.com>
2022-09-15 13:37:51 -07:00
Simon Willison
104f37fa4d
db[table].create(..., transform=True) and create-table --transform
...
Closes #467
2022-08-27 16:17:55 -07:00
Simon Willison
19dd077944
Support entrypoints for --load-extension ( #473 )
...
* Entrypoint support, closes #470
2022-08-26 22:55:47 -07:00
Simon Willison
23ef1d6c20
bulk --functions, closes #471
2022-08-26 22:10:43 -07:00
Simon Willison
59e2cfbdc1
sqlite-utils memory --functions, refs #471
2022-08-26 22:03:53 -07:00
Simon Willison
31f062d4a7
sqlite-utils query --functions option, refs #471
2022-08-26 21:53:55 -07:00
Simon Willison
7a9a6363ff
sqlite-utils rows --order option, closes #469
2022-08-26 21:10:20 -07:00
Simon Willison
b9a89a0f2c
duplicate --ignore option, refs #450
2022-07-15 15:35:58 -07:00
Simon Willison
5fa823f03f
add-column --ignore option, refs #450
2022-07-15 15:31:37 -07:00
Simon Willison
2c77f4467e
Add --ignore to create-index as alias of --if-not-exists, refs #450
2022-07-15 15:25:49 -07:00
Simon Willison
40b6947255
enable-fts --replace option, refs #450
...
Also fixed up some sqlite3.OperationalError imports.
2022-07-15 15:20:26 -07:00
Simon Willison
9dd4cf891d
Improve CLI help for drop-table and drop-view, refs #450
2022-07-15 15:09:07 -07:00
Simon Willison
015c663464
Fixed lint errors, refs #454
2022-07-15 14:59:06 -07:00
Simon Willison
c710ade644
sqlite-utils duplicate command, closes #454 , refs #449
...
Also made it so .duplicate() raises new NoTable exception rather than raising
an AssertionError if the source table does not exist.
2022-07-15 14:45:47 -07:00
Simon Willison
0cee77b176
Update test for renamed restkey, refs #440 , #443
2022-06-14 14:14:20 -07:00
Simon Willison
93fa79d30b
Ignore flake8 lambda errors, refs #415
2022-03-20 21:22:09 -07:00
Simon Willison
751ab205ac
Fix for --multi combined with --dry-run, closes #415
2022-03-20 21:18:18 -07:00
Simon Willison
878d5f5cea
errors=r.SET_NULL/r.IGNORE options for parsedate/parsedatetime, closes #416
2022-03-20 21:01:35 -07:00
Chris Amico
a692c56659
Add SpatiaLite helpers to CLI ( #407 )
...
* Add SpatiaLite CLI helpers
* Add docs for spaitalite helpers
* Fix flake8 issues and add more detail on spatial types
* Run cog and add some help text.
* Use SpatiaLite when calculating coverage, refs #407
Co-authored-by: Simon Willison <swillison@gmail.com>
2022-02-15 16:58:07 -08:00
Simon Willison
e7f040106b
Add an example of --text too, refs #404
2022-02-08 23:03:04 -08:00
Simon Willison
7142dbd58d
Fixed typo in --help
2022-02-08 22:57:21 -08:00
Simon Willison
79a5ece62e
Add --convert example to sqlite-utils insert --help, closes #404
2022-02-08 22:55:01 -08:00
Chris Amico
ee11274fcb
New spatialite helper methods, closes #79
...
- db.init_spatialite()
- table.add_geometry_column()
- table.create_spatial_index()
Co-authored-by: Simon Willison <swillison@gmail.com>
2022-02-03 21:55:09 -08:00
Simon Willison
9dcb099905
Better error messages for --convert, closes #363
2022-02-03 14:51:25 -08:00
Simon Willison
d1d2a8e6fa
sqlite-utils bulk --batch-size option, closes #392
2022-01-26 10:15:23 -08:00
Simon Willison
be1e89da5f
Fixed flake8 errors
2022-01-25 19:22:06 -08:00
Simon Willison
2b20957b18
Better validation for upsert --pk, closes #390
2022-01-25 19:19:39 -08:00
Simon Willison
4c6023452c
Examples in --help for remaining commands, closes #384
2022-01-25 19:14:59 -08:00
Simon Willison
6e85a4bbbe
Added examples to more --help output, refs #384
2022-01-25 18:56:44 -08:00
Simon Willison
3091e6b6e9
Clearer help for --drop-foreign-key
2022-01-24 20:06:40 -08:00
Simon Willison
3b632f0a7e
sqlite-utils rows --where and -p options, closes #382
2022-01-11 15:32:43 -08:00
Simon Willison
324ebc3130
sqlite-utils rows --limit and --offset options, closes #381
2022-01-11 15:19:29 -08:00
Simon Willison
129141572f
sqlite-utils bulk command
...
* sqlite-utils bulk command, closes #375
* Refactor import_options and insert_upsert_options, refs #377
* Tests for sqlite-utils bulk, refs #377
* Documentation for sqlite-utils bulk, refs #377
2022-01-10 18:10:54 -08:00
Simon Willison
1b84c175b4
--analyze option for create-index, insert, update commands, closes #379 , closes #365
2022-01-10 17:36:41 -08:00
Simon Willison
e0ef9288fe
sqlite-utils analyze command, refs #379
2022-01-10 17:24:17 -08:00
Simon Willison
cfb3f12358
Only buffer input if --sniff, closes #364
2022-01-09 20:39:58 -08:00
Simon Willison
d2a79d200f
--nl now ignores blank lines, closes #376
2022-01-09 20:12:39 -08:00
Simon Willison
2f8879235a
Renamed function to fix lint error, refs #348
2022-01-09 12:39:14 -08:00
Simon Willison
1d64cd2e5b
sqlite-utils create-database command, closes #348
2022-01-09 12:33:16 -08:00
Simon Willison
c9ecd0d6a3
stem and suffix columns for insert-files, closes #372
2022-01-09 12:16:52 -08:00
Simon Willison
22c8d10dd3
--convert function can now modify row in place, closes #371
2022-01-09 12:06:02 -08:00
Simon Willison
b8c134059e
--fmt now implies --table, closes #374
2022-01-09 10:07:48 -08:00
Simon Willison
a7b29bfaa9
Fixed bug with sqlite-utils upsert --detect-types, closes #362
2022-01-05 22:28:29 -08:00
Simon Willison
413f8ed754
--convert --text for iterators, docs for --convert
2022-01-05 22:24:53 -08:00
Simon Willison
2e4847e493
Implemented --convert for different things, renamed --all to --text
2022-01-05 22:24:53 -08:00
Simon Willison
e66299c6ed
Implemented and documented sqlite-utils insert --all
2022-01-05 22:24:53 -08:00
Simon Willison
f1569c9f7f
Implemented sqlite-utils insert --lines
2022-01-05 22:24:53 -08:00
Simon Willison
9e286cc6d2
New help for --lines and --all and --convert and --import, refs #356
2022-01-05 22:24:53 -08:00
Simon Willison
500a35ad4d
Also support def convert(value), closes #355
...
Plus added custom syntax error display
2021-12-10 16:49:28 -08:00