Crates.io | holochain_state |
lib.rs | holochain_state |
version | 0.5.0-dev.9 |
source | src |
created_at | 2021-07-01 11:24:34.884022 |
updated_at | 2024-12-11 02:50:43.013899 |
description | Holochain persisted state datatypes and functions |
homepage | https://github.com/holochain/holochain |
repository | |
max_upload_size | |
id | 417400 |
size | 414,527 |
The Holochain state crate provides helpers and abstractions for working
with the holochain_sqlite
crate.
The main abstraction for creating data read queries is the Query
trait.
This can be implemented to make constructing complex queries easier.
The [source_chain
] module provides the SourceChain
type,
which is the abstraction for working with chains of actions.
The [host_fn_workspace
] module provides abstractions for reading data during workflows.
The [mutations
] module is the complete set of functions
for writing data to sqlite in holochain.
The [scratch
] module provides the Scratch
type for
reading and writing data in memory that is not visible anywhere else.
The SourceChain type uses the Scratch for in-memory operations which can be flushed to the database.
The Query trait allows combining arbitrary database SQL queries with the scratch space so reads can union across the database and in-memory data.
Copyright (C) 2019 - 2024, Holochain Foundation
This program is free software: you can redistribute it and/or modify it under the terms of the license provided in the LICENSE file (CAL-1.0). This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.