13 lines
195 B
Python
Executable File
13 lines
195 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
import sqlite3
|
|
|
|
connection = sqlite3.connect('database.db')
|
|
|
|
with open('schema.sql') as f:
|
|
connection.executescript(f.read())
|
|
|
|
connection.commit()
|
|
connection.close()
|
|
|