Skip to content

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).

// init — bind the operation to the data catalog
const getDatabase = yield* AWS.Athena.GetDatabase(catalog);
// runtime
const res = yield* getDatabase({ DatabaseName: "analytics" });
console.log(res.Database?.Name);