Commit Graph

1135 Commits

Author SHA1 Message Date
Andrew Morris
537fd0800f Use StorageAutoPtr to make VsStoragePtr work 2023-11-01 17:05:25 +11:00
Andrew Morris
350fa65d54 StorageAutoPtr 2023-11-01 16:50:44 +11:00
Andrew Morris
e454708744 Storage.get 2023-11-01 15:53:59 +11:00
Andrew Morris
4868b5929c Simplify StorageEntryReader+Writer 2023-11-01 11:41:42 +11:00
Andrew Morris
e578385b26 Fix most storage unwraps 2023-11-01 10:50:02 +11:00
Andrew Morris
23fb576fd2 StorageError 2023-11-01 10:08:55 +11:00
Andrew Morris
9ca409d57e Just use Box<Error> for now 2023-11-01 08:36:22 +11:00
Andrew Morris
d1eee2229d InTransactionError -> InTxError 2023-10-31 16:21:52 +11:00
Andrew Morris
b2f523a83c Handle -> Tx 2023-10-31 16:17:19 +11:00
Andrew Morris
44802a1843 Move the StorageEntity method types into the StorageEntity trait itself so that you don't need to implement for all types 2023-10-31 12:55:56 +11:00
Andrew Morris
00776c212c Move StorageOps inside StorageBackendHandle 2023-10-31 12:15:55 +11:00
Andrew Morris
2d47b39ece Write most vals to storage 2023-10-31 11:54:24 +11:00
Andrew Morris
9d9954083f Simplify read_string_from_entry, read_symbol_from_entry 2023-10-31 10:13:36 +11:00
Andrew Morris
19692ccd35 Read most vals from storage 2023-10-31 10:11:38 +11:00
Andrew Morris
8bdccba57e wip storage integration 2023-10-30 17:39:36 +11:00
Andrew Morris
6fbca5ac59 Improve DemoVal 2023-10-30 16:41:59 +11:00
Andrew Morris
f2021b1033 Simplify DemoVal 2023-10-30 16:24:05 +11:00
Andrew Morris
e3bd29747d Rely on StorageEntity trait instead of StorageVal (and rename to DemoVal) 2023-10-30 16:12:37 +11:00
Andrew Morris
83cd4cd5af Custom serialization refactor 2023-10-30 15:59:42 +11:00
Andrew Morris
16b71a95bd Wrap StorageEntity methods in Result so they can use the tx 2023-10-30 14:38:33 +11:00
Andrew Morris
09360521cb Start using StorageEntity trait 2023-10-30 14:33:00 +11:00
Andrew Morris
a21191a1ba Storable -> StorageEntity 2023-10-30 14:27:43 +11:00
Andrew Morris
5fc86a1cda cache_id -> cache_key 2023-10-30 11:56:15 +11:00
Andrew Morris
e5dea00280 key -> ptr 2023-10-30 11:55:17 +11:00
Andrew Morris
eee410d6d0 Put the cache on the transaction 2023-10-30 11:48:14 +11:00
Andrew Morris
da697be5e3 Storable trait 2023-10-30 11:08:01 +11:00
Andrew Morris
e19106764b Replace refs/refs_iter with entry.refs 2023-10-30 10:15:54 +11:00
Andrew Morris
3db7b96e4b Replace move_to_val with from_entry 2023-10-30 10:07:33 +11:00
Andrew Morris
7ac3e65ed3 Split out storage_entry 2023-10-30 10:04:18 +11:00
Andrew Morris
884bcad017 Refactor StorageVal (remove StoragePoint) 2023-10-28 10:05:16 +11:00
Andrew Morris
15f6b23ead RcKey 2023-10-28 08:43:28 +11:00
Andrew Morris
1d7d81fddb Simplify: ref_delta 2023-10-27 16:39:44 +11:00
Andrew Morris
1f7bbced61 Reuse stored refs, buffer ref counts 2023-10-27 16:21:02 +11:00
Andrew Morris
a635155772 Nitpicks 2023-10-27 11:25:28 +11:00
Andrew Morris
5fba28c872 Split out storage_val 2023-10-27 11:24:23 +11:00
Andrew Morris
25e64ae09b Split out storage_backend 2023-10-27 11:20:05 +11:00
Andrew Morris
fca4543c8e Split out storage_ops 2023-10-27 11:06:09 +11:00
Andrew Morris
496978faeb Fix warnings 2023-10-27 10:53:55 +11:00
Andrew Morris
f7522eca38 Store with replacements 2023-10-27 10:48:48 +11:00
Andrew Morris
ed12a3f0c4 Prefer read,write over read_bytes,write_bytes 2023-10-27 08:28:13 +11:00
Andrew Morris
64b7bb2f9f Add is_empty() 2023-10-27 08:11:54 +11:00
Andrew Morris
024f6deea7 Rename things and test cleanup in array_0_1 2023-10-26 19:03:23 +11:00
Andrew Morris
25294539b2 Refactor: generic StoragePtrs 2023-10-26 18:32:50 +11:00
Andrew Morris
fe918b0744 wip failing test 2023-10-26 17:37:25 +11:00
Andrew Morris
e3dbbe8951 Handle existing head 2023-10-26 16:55:00 +11:00
Andrew Morris
8dc44f0b21 StorageOps 2023-10-26 16:27:21 +11:00
Andrew Morris
0cc63c5459 Partially correct get/set heads 2023-10-26 15:49:04 +11:00
Andrew Morris
7e59329f2d Split out StorageKey 2023-10-26 14:49:14 +11:00
Andrew Morris
8d2f0bd677 Sled and transactions 2023-10-26 13:01:55 +11:00
Andrew Morris
e6b948ba06 wip number storage 2023-10-26 13:01:55 +11:00