almog
1a4cb2f391
revert get_raw_pairs
2021-10-12 17:47:51 +03:00
almog
1e5eb7d31b
data_layer_types.py
...
data_layer_util.py
add tree id to nodes table
2021-10-12 16:44:29 +03:00
almog
86c81da1d8
unused imports
2021-10-11 17:35:45 +03:00
almog
af72d774fd
lint
2021-10-11 17:30:41 +03:00
Kyle Altendorf
8f496301dd
rewrite data layer based around a CLVM object tree ( #8738 )
...
* end of day for a start into the set -> tree data layer transition
* data layer node first/rest split to left/right and key/value
* data layer can maybe insert into a tree
* Apply suggestions from code review
* add DataStore.get_tree_as_program(), and misc
* pass data store balanced 4KV build
* data store query parent -> tree from root hash
* DataStore.get_heritage() (and misc)
* DataStore.get_pairs()
* data store fail on insert of already present key
2021-10-11 16:59:00 +03:00
Kyle Altendorf
de33d2be40
Merge branch 'altendky-data_layer_exploration' into altendky-data_layer_exploration-just_serialized_program
2021-10-04 10:37:28 -04:00
Kyle Altendorf
d144174740
mypy
2021-10-03 18:20:18 -04:00
Kyle Altendorf
d1e5be18d7
misc data layer tidying
2021-10-03 17:35:44 -04:00
Kyle Altendorf
d66461ed14
use SerializedProgram in the DataStore interface
2021-10-03 15:49:54 -04:00
Kyle Altendorf
a8780bede6
constrain all data store columns NOT NULL
2021-10-01 20:20:06 -04:00
Kyle Altendorf
bd59f2d105
add data store table id foreign key to actions
2021-10-01 19:57:38 -04:00
Kyle Altendorf
2f12fe7551
todo cleanup
2021-10-01 17:48:08 -04:00
Kyle Altendorf and Almog De Paz
53438e64b0
Correct DataStore.add_action() recursive mis-call
...
Co-authored-by: Almog De Paz <almogdepaz@gmail.com >
2021-10-01 14:20:54 -04:00
Kyle Altendorf
1956340484
add DBWrapper.locked_transaction(), use in data store
2021-09-30 18:41:37 -04:00
Kyle Altendorf
dadaac38f4
outdated comment cleanup
2021-09-30 09:35:52 -04:00
Kyle Altendorf
0cdcb14749
preliminary data layer cli
2021-09-28 20:57:12 -04:00
Kyle Altendorf
909a193d9e
explicit .hex()/bytes32(bytes.fromhex()) for data store hashes
2021-09-26 11:37:49 -04:00
Kyle Altendorf
2a249c6bff
more async for in data layer
2021-09-26 11:16:07 -04:00
Kyle Altendorf
6d1fc5946b
use aiosqlite.Row to access elements by name in data layer
2021-09-26 10:48:59 -04:00
Kyle Altendorf
c04eb6cf06
@dataclass for DataStore
2021-09-26 10:34:59 -04:00
Kyle Altendorf
c00102b9ca
only import, not also from
2021-09-24 16:00:53 -04:00
Kyle Altendorf
fd1266d708
switch data layer to simple key value store, no order/indexes or dpulicates
2021-09-24 15:58:36 -04:00
Kyle Altendorf
ef202673ec
entirely remove index from data layer code
2021-09-24 10:34:27 -04:00
Kyle Altendorf
5758d42e8e
define foreign keys for data layer
2021-09-23 15:32:22 -04:00
Kyle Altendorf
1d601c5704
formatting
2021-09-23 11:37:10 -04:00
Kyle Altendorf
79c8e00a12
lint
2021-09-23 09:36:46 -04:00
Kyle Altendorf
235019fa20
add data layer action logging
2021-09-22 12:18:12 -04:00
Kyle Altendorf
72e13e8f71
add missing db.commit()
2021-09-21 17:16:50 -04:00
Kyle Altendorf
1499729b5e
stricter mypy, add DataStore.get_row_by_index(), introduce TableRow
...
Compound commits are bad. Making mypy stricter pointed out some things and
they snowballed. If this is problematic even at this early stage, I can
adjust and put more effort into avoiding this.
2021-09-21 12:05:47 -04:00
Kyle Altendorf
3f0737ff0e
make chia.data_layer a properly installed package
2021-09-21 09:41:32 -04:00
Kyle Altendorf
55282ee4af
add DataStore.get_rows_by_hash()
2021-09-20 20:31:24 -04:00
Kyle Altendorf
59098e160a
remove some manual/auto-formatting silliness
2021-09-20 14:15:50 -04:00
almog
0cc1e04461
fix naming
2021-09-20 13:53:11 +03:00
Kyle Altendorf
f7f30714ec
black
2021-09-19 16:59:20 -04:00
Kyle Altendorf
89f8ec314b
implement some data layer DB insertion and deletion
2021-09-19 16:25:07 -04:00
Kyle Altendorf
8e292ec668
fix up CLVMObject hints
2021-09-19 16:04:48 -04:00
Kyle Altendorf
2b43261ae6
Hint as CLVMObject.CLVMObject for now
2021-09-19 15:49:38 -04:00
almog
ee8545125f
tidy imports
2021-09-19 21:53:43 +03:00
almog
44211ffea4
start datalayer rpc and wallet
2021-09-19 21:31:48 +03:00
Kyle Altendorf
12505ba546
fill out more of data_layer.py for the linter
2021-09-17 11:29:46 -04:00
Kyle Altendorf
3b72db6f3d
more for pylint
2021-09-17 10:30:14 -04:00
Kyle Altendorf
e708a3685c
black and flake8
2021-09-17 08:31:28 -04:00
Kyle Altendorf
e502eb020a
black
2021-09-17 08:03:48 -04:00
Kyle Altendorf
600ba2c667
add db table creation and a trivial test
2021-09-17 07:57:14 -04:00
Kyle Altendorf
0df73425e6
Preliminary exploration of a data layer skeleton
2021-09-15 21:31:41 -04:00