diff options
Diffstat (limited to 'python/londiste/setup.py')
| -rw-r--r-- | python/londiste/setup.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/python/londiste/setup.py b/python/londiste/setup.py index 48335867..a323ab20 100644 --- a/python/londiste/setup.py +++ b/python/londiste/setup.py @@ -56,6 +56,8 @@ class LondisteSetup(CascadeAdmin): help="include all tables", default=False) p.add_option("--create-only", help="pkey,fkeys,indexes") + p.add_option("--trigger-flags", + help="Set trigger flags (BAIUDLQ)") p.add_option("--trigger-arg", action="append", help="Custom trigger arg") p.add_option("--handler", action="append", @@ -168,7 +170,12 @@ class LondisteSetup(CascadeAdmin): attrs['handlers'] = ":".join(hlist) # actual table registration + tgflags = self.options.trigger_flags tgargs = self.options.trigger_arg # None by default + if tgflags: + if not tgargs: + tgargs = [] + tgargs.append('tgflags='+tgflags) q = "select * from londiste.local_add_table(%s, %s, %s)" self.exec_cmd(dst_curs, q, [self.set_name, tbl, tgargs]) |
