new(core.gbapp): LLM alerts for data.
This commit is contained in:
parent
06ae13ba4f
commit
64c26632dd
1 changed files with 5 additions and 5 deletions
10
src/util.ts
10
src/util.ts
|
@ -211,12 +211,12 @@ export class GBUtil {
|
|||
|
||||
public static async listTables(dialect: any, seq: any) {
|
||||
let tables;
|
||||
if (dialect === 'mssql') {
|
||||
// Extracting table name from the object returned by MSSQL
|
||||
tables = await seq.getQueryInterface().showAllTables({ schema: 'dbo' });
|
||||
tables = tables.map((table: any) => table.tableName); // Extracting the table name
|
||||
} else {
|
||||
if (dialect === 'sqlite') {
|
||||
tables = await seq.getQueryInterface().showAllTables();
|
||||
} else {
|
||||
// Extracting table name from the object returned by MSSQL
|
||||
tables = await seq.getQueryInterface().showAllTables();
|
||||
tables = tables.map((table: any) => table.tableName); // Extracting the table name
|
||||
}
|
||||
return tables;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue