Support custom types in tables #12386
Labels
A-db
Related to the database
C-enhancement
New feature or request
S-needs-design
This issue requires design work to think about how it would best be accomplished
Describe the feature
currently the tables! generates a fixed enum
reth/crates/storage/db/src/tables/mod.rs
Lines 144 to 151 in d19032f
this must be changed so that custom types for tables can be configured so that
reth/crates/storage/provider/src/providers/database/provider.rs
Line 1260 in d19032f
works with arbitrary types.
this likely means that the entire enum approach no longer works in its current form.
the way tables interact with the db env itself is like:
reth/crates/storage/db/src/implementation/mdbx/mod.rs
Lines 441 to 445 in d19032f
there has been some preliminary work on custom tables, unsure how relevant this still is
#7832
looking at
create_tables
the trait extension in #7832 make sensethe table name is important for
Additional context
No response
The text was updated successfully, but these errors were encountered: