Package-level declarations

Types

Link copied to clipboard
class PostgresReservationStore(dataSource: DataSource, clock: Clock = Clock.systemUTC(), dispatcher: CoroutineDispatcher = VirtualThreads.dispatcher, ddl: Ddl = Ddl.AUTO) : ReservationStore

The ReservationStore on PostgreSQL (documentation/designs/01-programming-model.md §7), in the same database as the log: one table per aggregate type, wow_reservation__<context>__<aggregate>, created with its format record on the type's first use, as the log's and the snapshots' tables are; in it one row per reserved key, keyed by (tenant_id, namespace, key), its owner in two columns and the holds of a pending reservation in a text[] (PostgresReservationTables).