deleteme/database.py
def create_tables(self, schema=None):
        '''
        Create programmatically the tables from a schema file.

        :param schema: path to the .sql schema file. If this parmeter is
            None, then *db/deleteme_schema_dump.sql* is utilized.

        '''
        con = sqlite3.connect(self.db_path)
        if schema is None:
            schema = DEFAULT_SCHEMA
        try:
            with open(schema, encoding="utf-8") as f:
                sql = f.read()
                cur = con.cursor()
                cur.executescript(sql)
        finally:
            con.close()

        Create programmatically the tables from a schema file.

        :param schema: path to the .sql schema file. If this parmeter is
            None, then *db/deleteme_schema_dump.sql* is utilized.

        
Create programmatically the tables from a schema file.
Create programmatically the tables from a schema file .
def create_tables(self, schema=None):
        con = sqlite3.connect(self.db_path)
        if schema is None:
            schema = DEFAULT_SCHEMA
        try:
            with open(schema, encoding="utf-8") as f:
                sql = f.read()
                cur = con.cursor()
                cur.executescript(sql)
        finally:
            con.close()
def create_tables ( self , schema = None ) : con = sqlite3 . connect ( self . db_path ) if schema is None : schema = DEFAULT_SCHEMA try : with open ( schema , encoding = "utf-8" ) as f : sql = f . read ( ) cur = con . cursor ( ) cur . executescript ( sql ) finally : con . close ( )
Create programmatically the tables from a schema file.
Create programmatically the tables from a schema file .
'''
        Create programmatically the tables from a schema file.

        :param schema: path to the .sql schema file. If this parmeter is
            None, then *db/deleteme_schema_dump.sql* is utilized.

        '''
self
schema
path to the .sql schema file. If this parmeter is
None, then *db/deleteme_schema_dump.sql* is utilized.
path to the . sql schema file . If this parmeter is None then * db / deleteme_schema_dump . sql * is utilized .