Skip to content

Commit

Permalink
Merge pull request mtxr#168 from mtxr/feature/mssql-review-before-aft…
Browse files Browse the repository at this point in the history
…er-usage

Add MSSQL support, unify and fix "before" & "after" sql config, review most RDBMS configs
  • Loading branch information
mtxr authored Jan 5, 2018
2 parents 439732a + e400a63 commit 15aed0f
Show file tree
Hide file tree
Showing 5 changed files with 478 additions and 246 deletions.
10 changes: 4 additions & 6 deletions SQLTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ def run():
return

Window().status_message(MESSAGE_RUNNING_CMD)
ST.conn.execute(getSelection(), createOutput(), stream=settings.get('use_streams', False))
ST.conn.execute(getSelection(), createOutput())


class StExecuteAll(WindowCommand):
Expand All @@ -509,7 +509,7 @@ def run():

Window().status_message(MESSAGE_RUNNING_CMD)
allText = View().substr(sublime.Region(0, View().size()))
ST.conn.execute(allText, createOutput(), stream=settings.get('use_streams', False))
ST.conn.execute(allText, createOutput())


class StFormat(TextCommand):
Expand Down Expand Up @@ -543,8 +543,7 @@ def run():
def cb(index):
if index < 0:
return None
return ST.conn.execute(history.get(index), createOutput(),
stream=settings.get('use_streams', False))
return ST.conn.execute(history.get(index), createOutput())

Window().show_quick_panel(history.all(), cb)

Expand Down Expand Up @@ -583,8 +582,7 @@ def cb(index):

alias, query = options[index]
if mode == "run":
ST.conn.execute(query, createOutput(),
stream=settings.get('use_streams', False))
ST.conn.execute(query, createOutput())
elif mode == "insert":
insertContent(query)
else:
Expand Down
Loading

0 comments on commit 15aed0f

Please sign in to comment.