Skip to content

GetTables

Source: src/AWS/Glue/GetTables.ts

Runtime binding for glue:GetTables.

Lists the table definitions of the bound Database (optionally filtered by an Expression pattern, paginated via NextToken) — runtime schema discovery over the Data Catalog. The database name and catalog id are injected from the binding. Provide the implementation with Effect.provide(AWS.Glue.GetTablesHttp).

// init
const getTables = yield* AWS.Glue.GetTables(database);
// runtime
const { TableList } = yield* getTables({ Expression: "events_*" });
const names = (TableList ?? []).map((t) => t.Name);