
# Load the omw.sql schema file and create the main OMW database
#
# usage: make-omw-db.py DBFILE SCHEMAFILE

import sqlite3
import sys

if len(sys.argv) != 3:
    sys.exit('usage: make-omw-db.py DBFILE SCHEMAFILE')

dbfile = sys.argv[1]
schemafile = sys.argv[2]

con = sqlite3.connect(dbfile)
curs = con.cursor()

f = open(schemafile, 'r')
curs.executescript(f.read())

con.commit()
con.close()

7f784dfa09e9dafd196c3df59b3b6e896e1091ec
<mask token>

<mask token>
if len(sys.argv) != 3:
    sys.exit('usage: make-omw-db.py DBFILE SCHEMAFILE')
<mask token>
curs.executescript(f.read())
con.commit()
con.close()

<mask token>
if len(sys.argv) != 3:
    sys.exit('usage: make-omw-db.py DBFILE SCHEMAFILE')
dbfile = sys.argv[1]
schemafile = sys.argv[2]
con = sqlite3.connect(dbfile)
curs = con.cursor()
f = open(schemafile, 'r')
curs.executescript(f.read())
con.commit()
con.close()

import sqlite3
import sys
if len(sys.argv) != 3:
    sys.exit('usage: make-omw-db.py DBFILE SCHEMAFILE')
dbfile = sys.argv[1]
schemafile = sys.argv[2]
con = sqlite3.connect(dbfile)
curs = con.cursor()
f = open(schemafile, 'r')
curs.executescript(f.read())
con.commit()
con.close()


# Load the omw.sql schema file and create the main OMW database
#
# usage: make-omw-db.py DBFILE SCHEMAFILE

import sqlite3
import sys

if len(sys.argv) != 3:
    sys.exit('usage: make-omw-db.py DBFILE SCHEMAFILE')

dbfile = sys.argv[1]
schemafile = sys.argv[2]

con = sqlite3.connect(dbfile)
curs = con.cursor()

f = open(schemafile, 'r')
curs.executescript(f.read())

con.commit()
con.close()
