Commit graph

641 commits

Author SHA1 Message Date
Simon Willison
7a43af232e Support nested imports, closes #351 2021-12-10 16:11:22 -08:00
Simon Willison
a3df483c80 sqlite-utils convert db table column -, refs #353 2021-12-10 16:01:02 -08:00
Simon Willison
e328db8eba
Improved schema example for sqlite-utils extract 2021-12-10 13:12:38 -08:00
Simon Willison
213a0ff177 Really fix flake8 error, refs #344, #345 2021-11-29 14:34:40 -08:00
Simon Willison
1f8178f7e4 Fix flake8 error, refs #344, #345 2021-11-29 14:29:57 -08:00
Simon Willison
e3f108e0f3 db.supports_strict and table.strict properties, refs #344 2021-11-29 14:19:30 -08:00
Simon Willison
126703706e Release 3.19 3.19
Refs #342
2021-11-20 20:41:56 -08:00
Simon Willison
33176ad47b
Run pytest with colors
Tip from https://twitter.com/cjolowicz/status/1461266663681187841
2021-11-19 00:09:16 -08:00
Simon Willison
8f386a0d30
Release 3.19a0 3.19a0
Refs #342
2021-11-18 23:27:41 -08:00
Simon Willison
93b21c230a Extra parameters for .lookup(), passed to .insert() - closes #342 2021-11-18 23:26:50 -08:00
Simon Willison
3b8abe6087 Release 3.18 3.18
Refs #324, #329, #330, #331, #332, #335, #338, #339
2021-11-14 19:15:23 -08:00
Simon Willison
ffb54427d3 insert now replaces square braces in column name with underscore, closes #341 2021-11-14 18:56:35 -08:00
Simon Willison
fb9d61754a Better type signature for hash_id, closes #341 2021-11-14 18:19:28 -08:00
Simon Willison
54a2269e91 Optional second argument to .lookup() to populate extra columns, closes #339 2021-11-14 18:01:56 -08:00
Simon Willison
9cda5b070f Handle dict/tuple/list mapping to TEXT, closes #338 2021-11-14 16:36:00 -08:00
Simon Willison
84007dffa8 Applied Black, refs #322, #328 2021-11-14 16:28:53 -08:00
Mina Rizk
271b894af5
Map dict to TEXT
Thanks, @minaeid90
2021-11-14 16:27:40 -08:00
Denys Pavlov
bc4c42d688
Use python-dateutil package instead of dateutils (#324) 2021-11-14 15:25:40 -08:00
Simon Willison
adea5bc396 flake8 fix, refs #331 2021-11-14 15:24:15 -08:00
Simon Willison
73e214a976 py.typed file so mypy picks up the types, closes #331 2021-11-14 15:21:04 -08:00
Simon Willison
12b8c9de25 sqlite-utils memory --flatten, closes #332 2021-11-14 15:05:00 -08:00
Simon Willison
13195d8747 Test demonstrating fix for #335 2021-11-14 14:55:42 -08:00
Simon Willison
e8d958109e create_index(..., find_unique_name=True) option, refs #335 2021-11-14 14:49:42 -08:00
Simon Willison
92aa5c9c5d
Fixed typo 2021-11-11 12:50:22 -08:00
Simon Willison
fda4dad23a
Test against Python 3.10 (#330)
* Test against Python 3.10
* Added 3.10 to classifiers
* Test on Python 3.10 before publish
2021-10-13 15:25:05 -07:00
Simon Willison
718a8f61bc
Clarified description of --quote 2021-10-02 09:54:39 -07:00
Simon Willison
54191d4dc1 Release 3.17.1 3.17.1
Refs #325, #328
2021-09-22 13:49:36 -07:00
Simon Willison
c1b26eed03 sqlite-utils memory handles files with same filename, closes #325 2021-09-22 13:45:37 -07:00
Simon Willison
7427a9137f Output [] in JSON mode if no rows, closes #328 2021-09-22 13:20:04 -07:00
Simon Willison
77c240df56 Release 3.17 3.17
Refs #319, #320
2021-08-24 16:40:18 -07:00
Simon Willison
49a010c93d
Ability to insert file contents as text, in addition to blob (#321) 2021-08-24 16:31:13 -07:00
Simon Willison
9258f4bd84 sqlite-utils memory --analyze, closes #320 2021-08-22 08:44:25 -07:00
Simon Willison
d7b1024d3a
Corrected stdin example 2021-08-18 16:02:55 -07:00
Simon Willison
b30f725d98
Small improvement to example 2021-08-18 16:02:07 -07:00
Simon Willison
ddfdff657f
Fixed incorrecte output example 2021-08-18 16:01:00 -07:00
Simon Willison
5912878d62 Release 3.16 3.16
Refs #37, #246, #294, #295, #296, #314, #316
2021-08-18 15:36:32 -07:00
Simon Willison
c79737bb4f Type signatures for .create_table() and .create_table_sql() and .create() and Table.__init__
Closes #314
2021-08-18 15:25:18 -07:00
Simon Willison
282e81362a Applied Black plus some extra type hints 2021-08-18 14:55:37 -07:00
Simon Willison
c62363ebdc Run mypy against tests/ too, refs #37 2021-08-18 14:49:12 -07:00
Simon Willison
7479933bc4
More sqlite-utils memory examples in README closes #294 2021-08-18 14:40:02 -07:00
Simon Willison
7e2dcbbbea Fixed bug with --no-headers --tsv, closes #295 2021-08-18 13:18:54 -07:00
Simon Willison
61b60f58ce Nice capitalization of API reference 2021-08-18 13:13:52 -07:00
Simon Willison
ccf128cd6d sqlite-utils search --quote option, closes #296 2021-08-18 13:10:44 -07:00
Simon Willison
8ae77a6961 table.search(quote=True) parameter, refs #296 2021-08-18 12:55:53 -07:00
Simon Willison
f0fd19267f Black/flake8, refs #246 2021-08-18 11:56:36 -07:00
Simon Willison
1fa5a12a49 Documentation for db.quote_fts(), refs #246 2021-08-18 11:55:50 -07:00
Simon Willison
e6b1022791 Fix markup warning in docstring 2021-08-18 11:55:19 -07:00
Mark Neumann
53fec0d863
db.quote_fts() method, thanks Mark Neumann
Refs #296, closes #246.
2021-08-18 11:43:11 -07:00
Simon Willison
1fe73c898b
Remove link to older code example 2021-08-18 11:31:20 -07:00
Simon Willison
7a19822ac9
Updated tagline 2021-08-17 08:42:02 -07:00