Warning
This document is for an in-development version of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.
Source code for galaxy.model.triggers.utils
from sqlalchemy import DDL
[docs]def execute_statements(engine, raw_sql):
statements = raw_sql if isinstance(raw_sql, list) else [raw_sql]
with engine.begin() as connection:
for sql in statements:
cmd = DDL(sql)
connection.execute(cmd)