Simon Willison
|
287cdcae89
|
Turn SQL errors into click errors
|
2021-06-15 21:40:28 -07:00 |
|
Simon Willison
|
b9629099ab
|
Fix bug with upsert_all() and single column tables, closes #271
|
2021-06-12 19:57:21 -07:00 |
|
Simon Willison
|
0d2e4f49f3
|
db.schema and 'sqlite-utils schema' command, closes #268
|
2021-06-11 13:51:49 -07:00 |
|
Simon Willison
|
28dc5aac34
|
sqlite-utils indexes command, refs #263
|
2021-06-02 21:26:49 -07:00 |
|
Simon Willison
|
9c67cb9252
|
table.xindexes property plus improved introspection documentation, closes #261
|
2021-06-02 20:51:27 -07:00 |
|
Simon Willison
|
8de5595c21
|
Handle BOM in CSV files, closes #250
|
2021-05-28 22:34:17 -07:00 |
|
Simon Willison
|
668e8c9fd1
|
Better help for sqlite-utils create-table
|
2021-05-28 22:01:54 -07:00 |
|
Simon Willison
|
51d01da30d
|
Ability to add descending order indexes (#262)
* DescIndex(column) for descending index columns, refs #260
* Ability to add desc indexes using CLI, closes #260
|
2021-05-28 22:01:38 -07:00 |
|
Simon Willison
|
b2302875c9
|
Document --type option better, closes #255
|
2021-05-28 20:55:46 -07:00 |
|
Simon Willison
|
2f3371ecb1
|
Suggest --alter if column is missing, closes #259, refs #256
|
2021-05-18 20:26:22 -07:00 |
|
Rob Wells
|
e7b2626291
|
Fix incorrect create-table cli description (#254)
The description for `create-table` was duplicated from `create-index`.
|
2021-05-18 19:57:26 -07:00 |
|
Dylan Wu
|
6f4f9a3eff
|
Fixing insert from JSON containing strings with non-ascii characters are escaped aps unicode for lists, tuples, dicts (#258)
|
2021-05-18 19:47:44 -07:00 |
|
Simon Willison
|
22f1d9e199
|
Expand FTS acronym in --help output
|
2021-03-07 08:41:49 -08:00 |
|
Simon Willison
|
bba6e241be
|
--ignore for sqlite-utils drop-table and drop-view, closes #237
|
2021-02-25 09:11:37 -08:00 |
|
Simon Willison
|
c236894caa
|
table.drop(ignore=True) option, refs #237
|
2021-02-25 09:05:08 -08:00 |
|
Simon Willison
|
a76e3b33ac
|
Fixed bug with add_foreign_key against columns with spaces, closes #238
|
2021-02-25 08:53:53 -08:00 |
|
Simon Willison
|
38e688fb8b
|
table.pks_and_rows_where() method, closes #240
|
2021-02-25 08:28:17 -08:00 |
|
Simon Willison
|
2ba5588881
|
sqlite-utils --attach option, closes #236
|
2021-02-18 21:08:39 -08:00 |
|
Simon Willison
|
999f099cbe
|
db.attach(alias, filepath) method, closes #113
Will also be useful for #236
|
2021-02-18 20:56:32 -08:00 |
|
Simon Willison
|
1f49f32814
|
Don't need line_buffering=True here, refs #230
|
2021-02-15 11:18:28 -08:00 |
|
Simon Willison
|
ef13bb046f
|
Useful error message for enable_fts() on views, closes #220
|
2021-02-14 14:34:22 -08:00 |
|
Simon Willison
|
50d2096f5e
|
--no-headers option for sqlite-utils insert --csv, closes #228
|
2021-02-14 14:25:03 -08:00 |
|
Simon Willison
|
1a93b72ba7
|
Increase csv field_size_limit to maximum, closes #229
Refs #227
|
2021-02-14 13:33:21 -08:00 |
|
Simon Willison
|
8f042ae1fd
|
Fix for bug with extra columns in later chunks, closes #234
Thanks @nieuwenhoven for the fix, proposed in #225
|
2021-02-14 13:03:31 -08:00 |
|
Simon Willison
|
320f3ac33a
|
offset= and limit= parameters, closes #231
|
2021-02-14 12:02:41 -08:00 |
|
Simon Willison
|
99ff0a288c
|
sqlite-utils insert --sniff option, closes #230
|
2021-02-14 11:23:12 -08:00 |
|
Simon Willison
|
1e9eb875a6
|
Switch from codecs.getreader to io.TextIOWrapper, refs #230
|
2021-02-14 10:33:26 -08:00 |
|
Simon Willison
|
7d04565010
|
Remove rogue import, refs #226
|
2021-02-05 18:09:48 -08:00 |
|
Simon Willison
|
1b666f9315
|
--delimiter and --quotechar, closes #223
|
2021-02-05 17:34:47 -08:00 |
|
Simon Willison
|
d4e00f8d01
|
table.m2m(..., alter=True) option, closes #222
|
2021-01-17 20:26:02 -08:00 |
|
Simon Willison
|
b6840646ba
|
.add_missing_columns() is now case insensitive, closes #221
|
2021-01-12 15:17:27 -08:00 |
|
Simon Willison
|
0d2a47eab9
|
.reset_counts() method and reset-counts command, closes #219
|
2021-01-03 12:59:31 -08:00 |
|
Simon Willison
|
b4f09146d3
|
table.has_counts_triggers property, refs #219
|
2021-01-03 12:41:24 -08:00 |
|
Simon Willison
|
c265541384
|
Shorter help summary for rebuild_fts
|
2021-01-03 12:22:07 -08:00 |
|
Simon Willison
|
94b5023066
|
table.count now uses cached counts if db.use_counts_table
Closes #215
|
2021-01-03 12:19:34 -08:00 |
|
Simon Willison
|
1e38a16ea8
|
Nicer error message for invalid JSON insert, closes #206
|
2021-01-03 10:42:17 -08:00 |
|
Simon Willison
|
ce042ff1f0
|
'sqlite-utils enable-counts' command, closes #214
|
2021-01-02 20:26:39 -08:00 |
|
Simon Willison
|
de08096989
|
database.triggers_dict, closes #216
|
2021-01-02 20:19:55 -08:00 |
|
Simon Willison
|
3d041d34d5
|
Renamed db.escape() to db.quote() and documented it
Closes #217
|
2021-01-02 20:15:04 -08:00 |
|
Simon Willison
|
5b246d17a0
|
'sqlite-utils triggers' command, closes #218
|
2021-01-02 19:03:15 -08:00 |
|
Simon Willison
|
9a5c92b63e
|
db.enable_counts() method, closes #213
|
2021-01-02 14:03:52 -08:00 |
|
Simon Willison
|
1cad7fad3e
|
table.enable_counts() method, closes #212
|
2021-01-02 13:40:10 -08:00 |
|
Simon Willison
|
b067f1ff57
|
table.triggers_dict property, closes #211
|
2021-01-01 18:10:04 -08:00 |
|
Simon Willison
|
69a121e088
|
sqlite-utils analyze-tables command and table.analyze_column() method
Closes #207
|
2020-12-12 23:20:11 -08:00 |
|
Andreas Madsack
|
c5f4f0f70c
|
Use jsonify_if_need for sql updates (#204)
* add failing tests for update with json values
* use jsonify_if_needed in for sql updates
Thanks, @mfa
|
2020-12-08 09:49:42 -08:00 |
|
Simon Willison
|
ce2b07c358
|
Updated docs for .search_sql() method
Also improved indentation of generated SQL queries. Refs #197
|
2020-11-08 09:04:37 -08:00 |
|
Simon Willison
|
79109939c3
|
search --limit now defaults to everything, refs #192
|
2020-11-08 09:00:43 -08:00 |
|
Simon Willison
|
c5a798c15f
|
.search_sql() fully respects columns=, closes #201
Refs #192 and #197
|
2020-11-08 08:53:53 -08:00 |
|
Simon Willison
|
bce1872109
|
order= is now order_by=, refs #197
|
2020-11-06 16:43:33 -08:00 |
|
Simon Willison
|
6863dc2677
|
sqlite-utils rows -c, closes #200
|
2020-11-06 16:28:41 -08:00 |
|