GetDatabase
Source:
src/AWS/Athena/GetDatabase.ts
Runtime binding for athena:GetDatabase.
Reads a single database’s metadata from the bound data catalog — the
catalog name is injected automatically. Provide the implementation with
Effect.provide(AWS.Athena.GetDatabaseHttp).
Browsing Catalog Metadata
Section titled “Browsing Catalog Metadata”// init — bind the operation to the data catalogconst getDatabase = yield* AWS.Athena.GetDatabase(catalog);
// runtimeconst res = yield* getDatabase({ DatabaseName: "analytics" });console.log(res.Database?.Name);