Skip to content

GetTableMetadata

Source: src/AWS/Athena/GetTableMetadata.ts

Runtime binding for athena:GetTableMetadata.

Reads a single table’s metadata (columns, partition keys, table type) from the bound data catalog — the catalog name is injected automatically. Provide the implementation with Effect.provide(AWS.Athena.GetTableMetadataHttp).

// init — bind the operation to the data catalog
const getTableMetadata = yield* AWS.Athena.GetTableMetadata(catalog);
// runtime
const res = yield* getTableMetadata({
DatabaseName: "analytics",
TableName: "orders",
});
console.log(res.TableMetadata?.Columns?.map((c) => c.Name));