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 b987706 commit e305263Copy full SHA for e305263
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