Commit e2d13510 authored by gwenn's avatar gwenn

Add SetRecursiveTriggers helper.

parent 878a8077
......@@ -52,3 +52,9 @@ func (c *Conn) SchemaVersion() (int, error) {
}
return version, nil
}
// (See http://sqlite.org/pragma.html#pragma_recursive_triggers)
// TODO Make possible to specify the database-name (PRAGMA %Q.recursive_triggers=%)
func (c *Conn) SetRecursiveTriggers(on bool) error {
return c.exec(fmt.Sprintf("PRAGMA recursive_triggers=%t", on))
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment