Simon Willison
|
5a184a5d21
|
Display column type in column action menu, closes #993
Also added new documented db.table_column_details() introspection method.
|
2020-10-05 17:32:10 -07:00 |
|
Simon Willison
|
b86f94883b
|
Don't hang in db.execute_write_fn() if connection fails
Closes #935
Refs https://github.com/simonw/latest-datasette-with-all-plugins/issues/3
|
2020-08-15 15:35:31 -07:00 |
|
Simon Willison
|
563f5a2d3a
|
Magic parameters for canned queries
Closes #842
Includes a new plugin hook, register_magic_parameters()
|
2020-06-27 19:58:16 -07:00 |
|
Simon Willison
|
124acf34a6
|
Removed db.get_outbound_foreign_keys method
It duplicated the functionality of db.foreign_keys_for_table.
|
2020-05-30 11:39:46 -07:00 |
|
Simon Willison
|
4d798ca0e3
|
Added test for db.mtime_ns
|
2020-05-30 11:17:20 -07:00 |
|
Simon Willison
|
012c76901a
|
_ prefix for many private methods of Datasette, refs #576
|
2020-05-30 07:38:46 -07:00 |
|
Simon Willison
|
4433306c18
|
Improvements + docs for db.execute() and Results class
* Including new results.first() and results.single_value() methods. Closes #685
|
2020-05-08 09:05:46 -07:00 |
|
Simon Willison
|
69e3a855dd
|
Rename execute_against_connection_in_thread() to execute_fn(), refs #685
|
2020-05-08 07:16:39 -07:00 |
|
Simon Willison
|
b796519da2
|
Print exceptions if they occur in the write thread
|
2020-03-02 17:59:29 -08:00 |
|
Simon Willison
|
a093c5f79f
|
.execute_write() and .execute_write_fn() methods on Database (#683)
Closes #682.
|
2020-02-24 20:45:07 -08:00 |
|
Simon Willison
|
6303ea5048
|
prepare_connection() now takes datasette and database args, refs #678
|
2020-02-21 17:32:40 -08:00 |
|
Simon Willison
|
f1442a8151
|
Replaced self.ds.execute with db.execute in more places
|
2020-02-13 18:20:05 -08:00 |
|
Simon Willison
|
16665c9ee6
|
Better handling of corrupted database files
|
2019-12-22 15:31:40 +00:00 |
|
Simon Willison
|
a9909c29cc
|
Move .execute() from Datasette to Database
Refs #569 - I split this change out from #579
|
2019-11-15 14:52:03 -08:00 |
|
Simon Willison
|
28c4a6db5b
|
CREATE INDEX statements on table page, closes #618
|
2019-11-09 17:29:36 -08:00 |
|
Simon Willison
|
f04deebec4
|
Refactored connection logic to database.connect()
|
2019-07-26 13:22:57 +03:00 |
|
Simon Willison
|
bd4dbc8519
|
Rename InterruptedError => QueryInterrupted, closes #490
|
2019-05-27 17:16:36 -07:00 |
|
Simon Willison
|
edb36629e7
|
Database.get_outbound_foreign_keys() refactor
Following this, the only module that ever makes calls to the low-level
execute_against_connection_in_thread() method is datasette/database.py
|
2019-05-27 11:41:44 -07:00 |
|
Simon Willison
|
20f98c3e20
|
Databse.primary_keys(table) / fts_table(table) refactor, closes #488
Also cleaned up some unused imports spotted by the linter.
|
2019-05-27 11:27:42 -07:00 |
|
Simon Willison
|
6569287d90
|
Refactored ConnectedDatabase to datasette/database.py
Closes #487
|
2019-05-26 22:07:43 -07:00 |
|