Skip to content

GetKxDatabase

Source: src/AWS/FinSpace/GetKxDatabase.ts

Runtime binding for finspace:GetKxDatabase — reads one kdb database of the bound environment — including lastCompletedChangesetId, the anchor ingestion pipelines use to advance dataviews. Provide the implementation with Effect.provide(AWS.FinSpace.GetKxDatabaseHttp).

const getDatabase = yield* AWS.FinSpace.GetKxDatabase(kdb);
const { lastCompletedChangesetId } = yield* getDatabase({
databaseName: "ticks",
});