Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions orpheus/clt/click_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,10 @@ def execute_sql_file(ctx, param, value):
click.echo("Executing SQL file at %s" % value)
with open(abs_path, 'r') as f:
for line in f:
if len(line.strip()) == 0: continue
executable_sql = parser.parse(line)
#print executable_sql
conn.execute_sql(executable_sql)
ctx.exit()

@cli.command()
Expand Down