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).
Browsing Catalog Metadata
Section titled “Browsing Catalog Metadata”// init — bind the operation to the data catalogconst getTableMetadata = yield* AWS.Athena.GetTableMetadata(catalog);
// runtimeconst res = yield* getTableMetadata({ DatabaseName: "analytics", TableName: "orders",});console.log(res.TableMetadata?.Columns?.map((c) => c.Name));