Commit graph

199 commits

Author SHA1 Message Date
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
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
54a2269e91 Optional second argument to .lookup() to populate extra columns, closes #339 2021-11-14 18:01:56 -08:00
Simon Willison
e8d958109e create_index(..., find_unique_name=True) option, refs #335 2021-11-14 14:49:42 -08:00
Simon Willison
8ae77a6961 table.search(quote=True) parameter, refs #296 2021-08-18 12:55:53 -07:00
Simon Willison
1fa5a12a49 Documentation for db.quote_fts(), refs #246 2021-08-18 11:55:50 -07:00
Simon Willison
6155da72c8
Add reference page to documentation using Sphinx autodoc (#312)
* Docstrings and type annotations for almost every method
* New /reference API documentation page using Sphink autodoc
* Custom Read The Docs config, to get autodoc working
* Fix for #313 (add_foreign_keys() doesn't reject being called with a View)
* Fixed #315 (.delete_where() returns [] when it should return self)
2021-08-10 16:09:28 -07:00
Simon Willison
991cf56ae2 Check spelling with codespell, closes #307 2021-08-03 09:48:49 -07:00
Simon Willison
ec50e5eebc sqlite3.enable_callback_tracebacks(True) in docs, closes #300 2021-08-02 14:53:44 -07:00
Simon Willison
69c7da5ec9 Implemented .convert(..., where=, where_args=), refs #304 2021-08-02 11:33:56 -07:00
Simon Willison
4823aff4c3 table.count_where() method, closes #305 2021-08-01 22:08:17 -07:00
Simon Willison
5ec6686153
sqlite-utils convert command and db[table].convert(...) method
Closes #251, closes #302.
2021-08-01 21:47:39 -07:00
Simon Willison
33c9d00879 Documentation for db.query(), closes #290 2021-06-24 15:54:38 -07:00
Simon Willison
5b257949d9 table.use_rowid introspection property, closes #285 2021-06-19 08:12:29 -07:00
Simon Willison
a54b6788b0
Sub-headings for .transform() 2021-06-15 15:34:29 -07:00
Simon Willison
a81c05d235
Clarify types that can be passed to .transform() 2021-06-14 20:47:34 -07:00
Simon Willison
0d2e4f49f3 db.schema and 'sqlite-utils schema' command, closes #268 2021-06-11 13:51:49 -07:00
Simon Willison
9dff7a3883
Fixed markup 2021-06-06 23:02:18 -07:00
Simon Willison
9c67cb9252 table.xindexes property plus improved introspection documentation, closes #261 2021-06-02 20:51:27 -07:00
Simon Willison
2dad4f583c Improved .rows_where() documentation, added test for :named parameters 2021-06-02 11:57:11 -07:00
Simon Willison
8c542d20ca Release 3.7
Refs #237, #238, #240, #250, #257, #259, #260
2021-05-28 22:47:59 -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
Juan E. D
328211eaca
Typo in upsert example (#244)
Remove extra `[`
2021-05-18 19:58:21 -07:00
Damien Ready
3e62ab62a8
Correct some typos (#245) 2021-05-18 19:58:04 -07:00
Simon Willison
c236894caa table.drop(ignore=True) option, refs #237 2021-02-25 09:05:08 -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
320f3ac33a offset= and limit= parameters, closes #231 2021-02-14 12:02:41 -08:00
Simon Willison
d4e00f8d01 table.m2m(..., alter=True) option, closes #222 2021-01-17 20:26:02 -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
94b5023066 table.count now uses cached counts if db.use_counts_table
Closes #215
2021-01-03 12:19:34 -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
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
6a34426b12 Docs now live at sqlite-utils.datasette.io 2020-12-29 13:34:55 -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
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
cbc9841646 Docs for .search() and .search_sql(), refs #197 2020-11-06 16:58:57 -08:00
Simon Willison
476825a224 How to use register_function as a method, not a decorator 2020-11-06 10:30:41 -08:00
Simon Willison
27b67f1cae @db.register_function(..., replace=True), closes #199 2020-11-06 10:30:41 -08:00
Simon Willison
59d8689ed0 table.virtual_table_using property, closes #196 2020-11-04 19:53:45 -08:00
Simon Willison
0789bad8f7 @db.register_function(deterministic=True), closes #191 2020-10-28 14:30:58 -07:00
Simon Willison
21ff60e3b1 --load-extension= for many more commands, closes #137
Also added --load-extension=spatialite shortcut, closes #136
2020-10-16 12:14:22 -07:00
Simon Willison
7eda0532e8 Consistent usage of db["dogs"], closes #185 2020-10-11 17:13:35 -07:00