new(core.gbapp): LLM alerts for data.

This commit is contained in:
me@rodrigorodriguez.com 2024-10-17 08:47:01 -03:00
parent 7df5ab0244
commit c41d6bfdd0

View file

@ -212,21 +212,13 @@ export class GBUtil {
public static async listTables(dialect: any, seq: any) {
let tables;
if (dialect === 'mssql') {
tables = await seq.query(
`SELECT table_name, table_schema
FROM information_schema.tables
WHERE table_type = 'BASE TABLE'
ORDER BY table_name ASC`,
{
type: QueryTypes.RAW
}
)[0];
} else {
tables = await seq.getQueryInterface().showAllTables({ schema: 'dbo' });
} else {
tables = await seq.getQueryInterface().showAllTables();
}
return tables;
}
// Check if is a tree or flat object.