Exemplo n.º 1
0
    def install(self):
        """
        Create tables and trigger functions in database.
        Return `False` if `libtree` was already installed, other `True`.
        """
        if self.is_installed():
            return False

        core.create_schema(self.cursor)
        core.create_triggers(self.cursor)

        return True
Exemplo n.º 2
0
 def install(self):
     """ Create tables and trigger functions in database. """
     core.create_schema(self.cursor)
     core.create_triggers(self.cursor)
     return True
Exemplo n.º 3
0
 def install(self):
     """ Create tables and trigger functions in database. """
     core.create_schema(self.cursor)
     core.create_triggers(self.cursor)
     return True