Simon Willison
|
36ffcafb1a
|
table.default_values property, closes #475
Refs #468
|
2022-08-27 15:42:58 -07:00 |
|
Forest Gregg
|
c5f8a2eb1a
|
in extract code, check equality witH IS instead of = for nulls (#455)
sqlite "IS" is equivalent to SQL "IS NOT DISTINCT FROM"
close #423
|
2022-08-27 07:45:03 -07:00 |
|
Simon Willison
|
b5e902fcb0
|
Applied Black
|
2022-07-28 08:13:47 -07:00 |
|
Simon Willison
|
573de14ab6
|
Improved docstring comments for Table class and db.table()
|
2022-07-27 17:28:46 -07:00 |
|
Simon Willison
|
1491b66dd7
|
register_function(name=...) argument, closes #458
|
2022-07-27 17:13:49 -07:00 |
|
Simon Willison
|
bfbe69646e
|
Fixed incorrect register_function code example
|
2022-07-27 17:08:50 -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
|
da030d49fd
|
Documentation for .duplicate(), refs #449
|
2022-07-15 14:29:52 -07:00 |
|
David
|
b366e68deb
|
table.duplicate(new_table_name) feature, closes #449
Thanks, @davidleejy
|
2022-07-15 14:21:36 -07:00 |
|
Simon Willison
|
b8af3b96f5
|
Fix bug with detect_fts() and similar table names, closes #434
|
2022-06-14 16:24:06 -07:00 |
|
Simon Willison
|
1b09538bc6
|
where= and where_args= parameters to search() and search_sql()
Closes #441
|
2022-06-14 14:54:35 -07:00 |
|
Simon Willison
|
cbaad1f153
|
Removed unused sys import, refs #425
|
2022-04-13 15:40:57 -07:00 |
|
Simon Willison
|
0e60f3c80c
|
Better error message if table has no columns, closes #424
|
2022-04-13 15:39:48 -07:00 |
|
Simon Willison
|
4433eafff7
|
Fix for register() on Python 3.7, refs #425
|
2022-04-13 15:35:57 -07:00 |
|
Simon Willison
|
6f3ae864f1
|
Better support check for deterministic=True, closes #425
Bug first discovered in #421
|
2022-04-13 15:31:37 -07:00 |
|
Simon Willison
|
433813612f
|
Move sqls=[] closer to where it is populated
|
2022-03-11 13:44:07 -08:00 |
|
Simon Willison
|
6fd7c138e2
|
Fixed .transform() method which I broke in #413
|
2022-03-11 09:54:17 -08:00 |
|
Simon Willison
|
26e6d2622c
|
Use :param x: for docstring comments, refs #413
|
2022-03-11 09:39:17 -08:00 |
|
Simon Willison
|
d25cdd37a3
|
db.sqlite_version property and fix for deterministic=True on SQLite 3.8.3
Closes #408
|
2022-03-01 16:37:53 -08:00 |
|
Simon Willison
|
521921b849
|
Fixed mypy error, refs #343
|
2022-03-01 16:05:11 -08:00 |
|
Simon Willison
|
931b1e1513
|
.insert(hash_id_columns=) parameter, closes #343
|
2022-03-01 16:00:51 -08:00 |
|
Simon Willison
|
4bc06a2437
|
memory_name= feature, closes #405
|
2022-02-15 17:23:11 -08:00 |
|
Simon Willison
|
aa24903113
|
Create table if_not_exists=True argument, closes #397
|
2022-02-05 17:28:53 -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
|
82ea42ffee
|
Added missing docstring for db.supports_strict
|
2022-01-24 20:12:32 -08:00 |
|
Simon Willison
|
389cbd5792
|
delete_where(analyze=True), closes #378
|
2022-01-10 17:08:05 -08:00 |
|
Simon Willison
|
ab392157f7
|
analyze=True for insert_all/upsert_all, refs #378
|
2022-01-10 17:00:34 -08:00 |
|
Simon Willison
|
0d10402f7b
|
table.create_index(..., analyze=True), refs #378
|
2022-01-10 12:00:24 -08:00 |
|
Simon Willison
|
541f64ddb0
|
db.analyze() and table.analyze() methods, refs #366
|
2022-01-10 11:48:38 -08:00 |
|
Simon Willison
|
a8f9cc6f64
|
Add test for chunks(), refs #364
|
2022-01-08 13:16:52 -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
|
93b21c230a
|
Extra parameters for .lookup(), passed to .insert() - closes #342
|
2021-11-18 23:26:50 -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 |
|
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
|
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
|
8ae77a6961
|
table.search(quote=True) parameter, refs #296
|
2021-08-18 12:55:53 -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
|
7ee7b628e1
|
Fixed some rogue backticks, closes #316
|
2021-08-13 22:10:47 -07:00 |
|