Skip to content

GetTable

Source: src/AWS/Glue/GetTable.ts

Runtime binding for glue:GetTable.

Reads the bound Table’s full catalog definition — columns, storage descriptor, partition keys, and parameters — so a function can introspect the schema it is writing against. The database/table names and catalog id are injected from the binding. Provide the implementation with Effect.provide(AWS.Glue.GetTableHttp).

// init
const getTable = yield* AWS.Glue.GetTable(table);
// runtime
const { Table } = yield* getTable();
const columns = Table?.StorageDescriptor?.Columns ?? [];