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.
2 parents b987706 + e305263 commit fd3123eCopy full SHA for fd3123e
aiq.js
@@ -50,7 +50,8 @@ async function getConnectionConfig(dbConfigs, nameOrFilePath) {
50
51
52
async function generateQuery(command, client, dbAdapter) {
53
- if (USE_PROMPT) { const spinner = ora(gradient.cristal("Thinking...")).start(); }
+ let spinner = null;
54
+ if (USE_PROMPT) { spinner = ora(gradient.cristal("Thinking...")).start(); }
55
const queryString = await client.generateQuery(command, dbAdapter);
56
if (USE_PROMPT) { spinner.succeed(gradient.cristal("Query generated.")); }
57
consoleLog(queryString);
0 commit comments