We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40a5ddd commit f9d9ac1Copy full SHA for f9d9ac1
dev_server/cloudsql.py
@@ -91,6 +91,11 @@ def do_desc(self, args):
91
def do_load(self, args):
92
self.do_run(args)
93
94
+ def preloop(self, *args, **kwargs):
95
+ sqlcmd.SQLCmd.preloop(self, *args, **kwargs)
96
+ # Just exit if the connect failed
97
+ if self._SQLCmd__db is None: sys.exit(1)
98
+
99
def __init__(self, *args, **kwargs):
100
sqlcmd.SQLCmd.__init__(self, *args, **kwargs)
101
self.prompt = sqlcmd.SQLCmd.MAIN_PROMPT
0 commit comments