From 6b4f9b2b66d3bc12d4d4fce2e8a618d6b7a834a5 Mon Sep 17 00:00:00 2001 From: mercury Date: Thu, 31 Mar 2022 16:42:12 +0400 Subject: [PATCH] override sql commands for connection --- .gitignore | 1 + SQLTools.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index bd473d3..6bf5845 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ *.py~ *.sublime-workspace .idea/ +/package-metadata.json diff --git a/SQLTools.py b/SQLTools.py index 65b3d24..d6e8262 100644 --- a/SQLTools.py +++ b/SQLTools.py @@ -123,7 +123,6 @@ def readConnections(): return ordered - def getDefaultConnectionName(): default = connectionsStore.get('default', False) if not default: @@ -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