Skip to content

Commit

Permalink
Merge pull request #180 from jurij-jukic/section-2-7
Browse files Browse the repository at this point in the history
Section 2.7. Databases
  • Loading branch information
nick1udwig authored May 8, 2024
2 parents 3d4d175 + 6890999 commit 2663393
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/databases.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Databases

The runtime currently provides key-value databases via RocksDB, and relational databases via SQLite.
The runtime currently provides key-value databases via [RocksDB](https://rocksdb.org/), and relational databases via [SQLite](https://www.sqlite.org/docs.html).
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.
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)).
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 @@ -58,4 +58,4 @@ println!("rows: {}", rows.len());
- [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`](https://github.com/kinode-dao/process_lib)
- [`kinode_process_lib` Github](https://github.com/kinode-dao/process_lib)

0 comments on commit 2663393

Please sign in to comment.