-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ORM SQL indexing #11000
Comments
the sql indexer you are seeing here is the tendermint one. You will have to open a separate issue in that repo |
Got it. Thank you |
The SQL schema exists in the Tendermint repo. The Tendermint repo documents how the indexer works and the schema needed: https://github.com/tendermint/tendermint/blob/main/state/indexer/sink/psql/schema.sql |
Totally missed it🫣 Thank you ser @alexanderbez |
Replaced by #20352 |
Using
EntryCodec
s and ADR 038 (or alternative ormHooks
), orm data can be indexed in an SQL database if there is some conversion ofproto.Message
to SQL.The proposed approach is to use https://gorm.io to target any backend it targets (Sqlite, Postgres, Mysql, etc.). The indexer would read the ORM proto extensions in order to tell GORM which fields to setup as the primary key, and using GORM
AutoMigrate
, the integration should be pretty straightforward.The text was updated successfully, but these errors were encountered: