Skip to main content

graphix_package_db/
lib.rs

1#![doc(
2    html_logo_url = "https://graphix-lang.github.io/graphix/graphix-icon.svg",
3    html_favicon_url = "https://graphix-lang.github.io/graphix/graphix-icon.svg"
4)]
5
6mod encoding;
7mod tree;
8mod cursor;
9mod txn;
10mod subscribe;
11
12use tree::{
13    DbGetType, DbOpen, DbFlush, DbGenerateId, DbTreeNames, DbDropTree, DbTree,
14    DbGet, DbInsert, DbRemove, DbContainsKey, DbGetMany,
15    DbFirst, DbLast, DbPopMin, DbPopMax, DbGetLt, DbGetGt,
16    DbCompareAndSwap, DbBatch, DbLen, DbIsEmpty,
17    DbSizeOnDisk, DbWasRecovered, DbChecksum, DbExport, DbImport,
18};
19use cursor::{DbCursorNew, DbCursorRead, DbCursorReadMany, DbCursorRange};
20use txn::{
21    DbTxnBegin, DbTxnTree, DbTxnGet, DbTxnInsert, DbTxnRemove,
22    DbTxnBatch, DbTxnCommit, DbTxnRollback,
23};
24use subscribe::{DbSubscribe, DbOnInsert, DbOnRemove};
25
26pub use tree::{DbValue, TreeValue};
27
28// ── Package registration ──────────────────────────────────────────
29
30graphix_derive::defpackage! {
31    builtins => [
32        DbGetType,
33        DbOpen,
34        DbFlush,
35        DbGenerateId,
36        DbTreeNames,
37        DbDropTree,
38        DbTree,
39        DbGet,
40        DbInsert,
41        DbRemove,
42        DbContainsKey,
43        DbGetMany,
44        DbFirst,
45        DbLast,
46        DbPopMin,
47        DbPopMax,
48        DbGetLt,
49        DbGetGt,
50        DbCompareAndSwap,
51        DbBatch,
52        DbLen,
53        DbIsEmpty,
54        DbSizeOnDisk,
55        DbWasRecovered,
56        DbChecksum,
57        DbExport,
58        DbImport,
59        DbCursorNew,
60        DbCursorRead,
61        DbCursorReadMany,
62        DbCursorRange,
63        DbSubscribe,
64        DbOnInsert,
65        DbOnRemove,
66        DbTxnBegin,
67        DbTxnTree,
68        DbTxnGet,
69        DbTxnInsert,
70        DbTxnRemove,
71        DbTxnBatch,
72        DbTxnCommit,
73        DbTxnRollback,
74    ],
75}