9 lines
165 B
Python
9 lines
165 B
Python
|
import sqlite3
|
||
|
|
||
|
connection = sqlite3.connect("data.sqlite")
|
||
|
|
||
|
with open("quotes.sql") as fp:
|
||
|
connection.execute(fp.read())
|
||
|
|
||
|
connection.commit()
|
||
|
connection.close()
|