mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-24 09:54:31 +02:00
parent
ce918195a4
commit
3d041d34d5
4 changed files with 38 additions and 7 deletions
|
|
@ -1127,7 +1127,7 @@ def triggers(
|
|||
"Show triggers configured in this database"
|
||||
sql = "select name, tbl_name as [table], sql from sqlite_master where type = 'trigger'"
|
||||
if tables:
|
||||
quote = sqlite_utils.Database(memory=True).escape
|
||||
quote = sqlite_utils.Database(memory=True).quote
|
||||
sql += " and [table] in ({})".format(
|
||||
", ".join(quote(table) for table in tables)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue