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.
16 lines
378 B
Python
16 lines
378 B
Python
from .env_setup import postgres_conn
|
|
from pathlib import Path
|
|
|
|
|
|
def run():
|
|
#get relative path
|
|
p = Path(__file__).with_name("selected_trials.sql")
|
|
with open(p,'r') as fh:
|
|
sqlfile = fh.read()
|
|
with postgres_conn() as connection:
|
|
with connection.cursor() as curse:
|
|
curse.execute(sqlfile)
|
|
|
|
if __name__ == "__main__":
|
|
run()
|