1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//! Everything is very preliminary, this crate is not yet at all stable.
/*
Next: Table struct based on DataType and Store.
Then parser, expressions, statements, functions ( similar to RustDb ).
Start off with SELECT statement.
*/
pub use Data;
pub use Arc; // pstd::Arc does not yet have make_mut
/// A [Table] stores [Value]s which have a specific [DataType].
pub use Table;
/// [Store] - maps keys to variable size values (no size restriction) using 64 bit hash.
use Store;
/// [VBuckMap] - maps keys to small variable size values using 64 bit hash. For possibly large values see [Store].
use *;
// Remaining modules could be private.
/// [PageSet] - keeps track of changed pages that need saving.
use ;
/// List of pages implemented as tree for [VBuckMap].
/// Bucket for [VBuckMap].
/// Generic [Value]s.
use *;
/// [DataType] - describes, encodes and decodes [Value]s using [Store].
use *;
const PAGE_SIZE: u64 = 3952;
// pub const PAGE_SIZE: u64 = 3952;
// pub const PAGE_SIZE: u64 = 4612;
use Local;
/// `StringA<Local>`
pub type LString = StringA;
/// `VecA<T, Local>`
pub type LVec<T> = VecA;
/// `BoxA<T, Local>`
pub type LBox<T> = BoxA;
/// `RcA<T, Lpcal>`
pub type LRc<T> = RcA;