no_triggers#

barecat.Index.no_triggers()[source]#

Context manager to temporarily disable triggers.

Also disables foreign key checks, since triggers are what create parent directory rows - without them, FK constraints would fail.

Note: Does NOT rebuild dirs/treestats on exit. Use bulk_write_mode() for that, or call update_dirs() and update_treestats() manually.