PostgresStore

constructor(dataSource: DataSource, table: String = DEFAULT_TABLE, clock: Clock = Clock.System, createTable: Boolean = true)

Parameters

dataSource

the database. It has to be PostgreSQL, version 12 or later.

table

the name of the table, letters, digits and _, not starting with a digit, with a schema in front or not.

clock

gives StoreItem.updatedAt, to the microsecond, the precision of PostgreSQL.

createTable

whether the store creates table when it does not exist.