Skip to content

ListDatabases

Source: src/AWS/Athena/ListDatabases.ts

Runtime binding for athena:ListDatabases.

Lists the databases in the bound data catalog — the catalog name is injected automatically. Provide the implementation with Effect.provide(AWS.Athena.ListDatabasesHttp).

// init — bind the operation to the data catalog
const listDatabases = yield* AWS.Athena.ListDatabases(catalog);
// runtime
const res = yield* listDatabases({});
console.log(res.DatabaseList?.map((db) => db.Name));