Skip to content

Commit

Permalink
Merge pull request #184 from jurij-jukic/section-2-7-patch
Browse files Browse the repository at this point in the history
Section 2.7. Databases - Minor Patch
  • Loading branch information
jurij-jukic authored May 9, 2024
2 parents 099916a + 0dc9135 commit 731ed49
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/databases.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The runtime currently provides key-value databases via [RocksDB](https://rocksdb
Processes can create independent databases using wrappers over these libraries, and can read, write, and share these databases with other processes.
The APIs for doing so you can find here: [KV](./apis/kv.md) and [SQLite](./apis/sqlite.md).

Similarly to files in the VFS, they are accessed by `package_id` and a `db` name ([here](https://docs.rs/kinode_process_lib/latest/kinode_process_lib/kv/struct.Kv.html#structfield.package_id) and [here](https://docs.rs/kinode_process_lib/latest/kinode_process_lib/sqlite/struct.Sqlite.html#structfield.package_id)).
Similarly to files in the VFS, they are accessed by `package_id` and a `db` name ([here](https://docs.rs/kinode_process_lib/latest/kinode_process_lib/kv/struct.Kv.html) and [here](https://docs.rs/kinode_process_lib/latest/kinode_process_lib/sqlite/struct.Sqlite.html)).
Capabilities to read and write can be shared with other processes; processes within a given package have access by default.

All examples are using the [`kinode_process_lib`](./process_stdlib/overview.md) functions.
Expand Down Expand Up @@ -52,10 +52,5 @@ println!("rows: {}", rows.len());

## References

- [KV API](./apis/kv.md)
- [SQLite API](./apis/sqlite.md)
- [RocksDB](https://github.com/rust-rocksdb/rust-rocksdb)
- [SQLite](https://www.sqlite.org/docs.html)
- [`kinode_process_lib` book entry](./process_stdlib/overview.md)
- [`kinode_process_lib` docs.rs](https://docs.rs/kinode_process_lib)
- [`kinode_process_lib` Github](https://github.com/kinode-dao/process_lib)

0 comments on commit 731ed49

Please sign in to comment.