(create-initial-database-constructs! value-store database-id)
Build the full set of initial database constructs. Returns the database info that has been persisted under a newly generated database-id.
Build the full set of initial database constructs. Returns the database info that has been persisted under a newly generated database-id.
(initialize-database value-store)
(initialize-database value-store database-id)
Create initial database state if it does not exist and return DatabaseInfo If it does, safely abort and return the current DatabaseInfo
Create initial database state if it does not exist and return DatabaseInfo If it does, safely abort and return the current DatabaseInfo
(initialize-database* value-store database-id)
1. Do a read to see if there's any extant state, if so, abort early. 2. Initialize the database constructs. 3. Attempt to cas the entry key.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close