mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 01:14:31 +02:00
parent
405e092d59
commit
2ca63e3b2d
3 changed files with 61 additions and 0 deletions
|
|
@ -868,6 +868,17 @@ The ``.indexes`` property shows you all indexes created for a table. It is not a
|
|||
Index(seq=4, name='"Street_Tree_List_qCaretaker"', unique=0, origin='c', partial=0, columns=['qCaretaker']),
|
||||
Index(seq=5, name='"Street_Tree_List_PlantType"', unique=0, origin='c', partial=0, columns=['PlantType'])]
|
||||
|
||||
The ``.triggers`` property lists database triggers. It can be used on both database and table objects.
|
||||
|
||||
::
|
||||
|
||||
>>> db["authors"].triggers
|
||||
[Trigger(name='authors_ai', table='authors', sql='CREATE TRIGGER [authors_ai] AFTER INSERT...'),
|
||||
Trigger(name='authors_ad', table='authors', sql="CREATE TRIGGER [authors_ad] AFTER DELETE..."),
|
||||
Trigger(name='authors_au', table='authors', sql="CREATE TRIGGER [authors_au] AFTER UPDATE")]
|
||||
>>> db.triggers
|
||||
... similar output to db["authors"].triggers
|
||||
|
||||
Enabling full-text search
|
||||
=========================
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue