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
90e211e3e2
Now complies with flake8, refs #291
2021-06-22 18:22:08 -07: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
771bd81b62
search_sql() returns most relevant first, not least
...
Refs #192
2020-11-06 15:50:02 -08:00
Simon Willison
d411fba1f4
.search() works for FTS4, yields dicts
...
Closes #198 , refs #197
2020-11-06 10:30:41 -08:00
Simon Willison
ecb50c8f76
.enable_fts(..., replace=True) argument, closes #160
2020-09-20 15:05:46 -07:00
Simon Willison
cf2cb244fa
Tracer mechanism for showing underlying SQL queries
...
* Pass a tracer= function to Database constructor
* New db.tracer() contextmanager
* Neater SQL indentation, because tracer means it could be visible now
* New db.execute() and db.executescript() methods
Closes #150
2020-09-07 14:56:59 -07:00