Commit graph

166 commits

Author SHA1 Message Date
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
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
fea8c9bcc5 Improved SpatiaLite example, closes #401 2022-02-05 18:03:21 -08:00
Simon Willison
aa24903113 Create table if_not_exists=True argument, closes #397 2022-02-05 17:28:53 -08:00
Simon Willison
44894c6f6c Fix warning about duplicate object description 2022-02-03 22:31:13 -08:00
Simon Willison
cea25c28ba Capitalization of SpatiaLite 2022-02-03 21:59:59 -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
813b6d07ab Much improved insert-replace documentation, refs #393 2022-02-03 14:11:38 -08:00
Simon Willison
a6da26a856
Simplified example 2022-01-30 07:24:13 -08:00
Simon Willison
feb01c1ddd
Fixed duplicated example 2022-01-30 07:22:39 -08:00
Simon Willison
6663d28952
SQL injection, not XSS 2022-01-30 07:17:20 -08:00
Simon Willison
b3efb29212 SQLite can drop columns now
It gained that ability in 3.35.0 in 2021-03-12:
https://www.sqlite.org/changes.html#version_3_35_0
2022-01-25 17:48:57 -08:00
Simon Willison
8d51ae48ab Getting started section for Python library, closes #387 2022-01-25 17:35:26 -08:00
Simon Willison
e0ef9288fe sqlite-utils analyze command, refs #379 2022-01-10 17:24:17 -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
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