- Companion
- object
Value members
Abstract methods
Inherited methods
Closes the underlying database (if the system is durable). The STM cannot be used beyond this call. An in-memory system should have a no-op implementation.
Closes the underlying database (if the system is durable). The STM cannot be used beyond this call. An in-memory system should have a no-op implementation.
- Inherited from
- Base
Initializes the data structure, by either reading an existing entry or generating the root entry
with the init
function. The method than allows the execution of another function within the
same transaction, passing it the data structure root of type A
. This is typically used to
generate access mechanisms, such as extracting a cursor from the data structure, or instantiating
a new cursor. The method then returns both the access point to the data structure and the result
of the second function.
Initializes the data structure, by either reading an existing entry or generating the root entry
with the init
function. The method than allows the execution of another function within the
same transaction, passing it the data structure root of type A
. This is typically used to
generate access mechanisms, such as extracting a cursor from the data structure, or instantiating
a new cursor. The method then returns both the access point to the data structure and the result
of the second function.
- Type Params
- A
type of data structure
- B
type of result from the second function. typically this is an
stm.Cursor[S]
- Value Params
- format
a format to read or write the data structure
- init
a function to initialize the data structure (if the database is fresh)
- result
a function to process the data structure
- Returns
the access to the data structure along with the result of the second function.
- Inherited from
- Sys
Reads the root object representing the stored data structure,
or provides a newly initialized one via the init
argument,
if no root has been stored yet.
Reads the root object representing the stored data structure,
or provides a newly initialized one via the init
argument,
if no root has been stored yet.
- Inherited from
- Sys
Initializes the data structure both with a confluently persisted and an ephemeral-durable value.
Initializes the data structure both with a confluently persisted and an ephemeral-durable value.
- Type Params
- A
type of confluent data structure
- B
type of ephemeral data structure
- Value Params
- aFmt
a format to read or write the confluent data structure
- bFmt
a format to read or write the ephemeral data structure
- confluent
a function that provides the initial confluent data (if the database is fresh)
- durable
a function that provides the initial ephemeral data (if the database is fresh)
- Returns
a tuple consisting of a handle to the confluent structure and the ephemeral datum. The ephemeral datum, although written to disk, does not require an
stm.Source
becauseD#Acc
isUnit
and does not need refresh.- Inherited from
- Sys