Skip to content

Commit

Permalink
new(core.gbapp): LLM alerts for data.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Oct 17, 2024
1 parent 06ae13b commit 64c2663
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
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;
}
Expand Down

0 comments on commit 64c2663

Please sign in to comment.