Key Value Based Versions Repo Proxy
class KeyValueBasedVersionsRepoProxy<T>(keyValueStore: KeyValueRepo<String, Int>, val database: T) : StandardVersionsRepoProxy<T> (source)
StandardVersionsRepoProxy implementation backed by a KeyValueRepo mapping table names to version numbers. Stores and retrieves per-table version integers using keyValueStore with table names as keys.
Parameters
key Value Store
KeyValueRepo used to persist table-name-to-version mappings
database
The underlying database or storage object exposed via StandardVersionsRepoProxy.database
Type Parameters
T
The type of the underlying database or storage object
Functions
Link copied to clipboard
Returns the current version number for the given tableName, or null if no version is stored.
Link copied to clipboard