Spacetime::Wasm::Datastore
Transactional datastore supporting both in-memory execution (for native Crystal specs & local simulation)
and WASM host syscall delegation when compiled for wasm32.
Instance methods
find_by_pk(type : T.class, pk) : T | Nil forall T
Sourcein_transaction?
Sourceinsert(row : T) : T forall T
Sourceregister_table(type : T.class) : TableId forall T
Sourcetransaction
Executes a block inside an atomic transaction, rolling back state if an exception is raised.