Skip to content

ListTableMetadata

Source: src/AWS/Athena/ListTableMetadata.ts

Runtime binding for athena:ListTableMetadata.

Lists table metadata for a database in the bound data catalog — the catalog name is injected automatically; Expression filters table names. Provide the implementation with Effect.provide(AWS.Athena.ListTableMetadataHttp).

// init — bind the operation to the data catalog
const listTableMetadata = yield* AWS.Athena.ListTableMetadata(catalog);
// runtime
const res = yield* listTableMetadata({ DatabaseName: "analytics" });
console.log(res.TableMetadataList?.map((t) => t.Name));