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 efeb754 commit 06ae13b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,15 @@ export class GBUtil {
public static async listTables(dialect: any, seq: any) {
let tables;
if (dialect === 'mssql') {
tables = await seq.getQueryInterface().showAllTables({ schema: 'dbo' });
// 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 {
tables = await seq.getQueryInterface().showAllTables();
}
return tables;
}


// Check if is a tree or flat object.

Expand Down

0 comments on commit 06ae13b

Please sign in to comment.