def activate(root):
    from . import structure
    from bazbase.structure import set_impl
    
    set_impl(structure)
    structure.root = root

    class hook(object):
        def begin(self):
            pass
        def abort(self):
            pass
        def prepare(self):
            pass
        def commit(self):
            pass

    from bazbase import db
    db.sql_hook = hook()
