Skip to content

Commit

Permalink
override sql commands for connection
Browse files Browse the repository at this point in the history
  • Loading branch information
mercurykd committed Mar 31, 2022
1 parent 1af1303 commit 6b4f9b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
*.py~
*.sublime-workspace
.idea/
/package-metadata.json
3 changes: 2 additions & 1 deletion SQLTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ def readConnections():

return ordered


def getDefaultConnectionName():
default = connectionsStore.get('default', False)
if not default:
Expand Down Expand Up @@ -343,6 +342,8 @@ def mergeConfig(config, promptedKeys=None):
def createConnection(connectionName, config, settings, callback=None):
# if DB cli binary could not be found in path a FileNotFoundError is thrown
try:
settingsConnection = config.get('cli_options', {})
Utils.merge({'cli_options':settingsConnection}, settings)
ST.conn = Connection(connectionName, config, settings=settings)
except FileNotFoundError as e:
# use only first line of the Exception in status message
Expand Down

0 comments on commit 6b4f9b2

Please sign in to comment.