You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
351 B
Python
12 lines
351 B
Python
from db import create_instrument, get_db_connection
|
|
|
|
connection = get_db_connection()
|
|
|
|
with open('schema.sql') as f:
|
|
connection.executescript(f.read())
|
|
|
|
|
|
create_instrument('Test Instrument', 'test_instrument', 'The classic original the one we like to test', ['eye','back'], ['feet','faat', 'foot', 'nose'] )
|
|
|
|
connection.commit()
|
|
connection.close() |