mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 01:14:31 +02:00
table.triggers_dict property, closes #211
This commit is contained in:
parent
0dca784dbe
commit
b067f1ff57
3 changed files with 22 additions and 1 deletions
|
|
@ -759,6 +759,11 @@ class Table(Queryable):
|
|||
).fetchall()
|
||||
]
|
||||
|
||||
@property
|
||||
def triggers_dict(self):
|
||||
"Returns {trigger_name: sql} dictionary"
|
||||
return {trigger.name: trigger.sql for trigger in self.triggers}
|
||||
|
||||
def create(
|
||||
self,
|
||||
columns,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue