-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved implementation of all tables into
database/storage
folder.
Refactored all tables to implement new storage traits(Also refactored all tests). Replaced all `<Self as Storage<K, V>>::method` with `self.storage::<Table>().method`. The same for `MerkleRootStorage`. Also refactored all tests. Instead of constants for columns, use the `Column` enum to manage tables columns(Use `Column` everywhere instead of `ColumnId`). In the future, we can use more advanced naming for fields, instead of "column-{i}" because now we have names of enum=) In some places, removed unnecessary usage of `Vec<u8>`(in `put`, `insert` etc methods). Removed usage of `Clone` and `Copy` for some `value` in the same methods. Prepared the code for the next refactoring: - to simplify the implementation of storage-related traits - to use only read/write traits in the places where it is really required - performance improvements to work with types more optimal
- Loading branch information
Showing
56 changed files
with
2,298 additions
and
1,884 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.