Beispiel #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
Beispiel #2
0
 def install(self):
     """ Create tables and trigger functions in database. """
     core.create_schema(self.cursor)
     core.create_triggers(self.cursor)
     return True
Beispiel #3
0
 def install(self):
     """ Create tables and trigger functions in database. """
     core.create_schema(self.cursor)
     core.create_triggers(self.cursor)
     return True