apibara / dna

Apibara is the fastest platform to build production-grade indexers that connect onchain data to web2 services.
https://www.apibara.com/
Apache License 2.0
166 stars 26 forks source link

Persist state to PostgreSQL #334

Open fracek opened 4 months ago

fracek commented 4 months ago

Is your feature request related to a problem? Please describe.

Users that want to sync onchain data to PostgreSQL may want to use the same database to persist the indexer's state.

Describe the solution you'd like

We should add a --persist-to-postgres option to persist data to a specific PostgreSQL database. On start, this persistence should check if the database contains the indexers table and create it if not.

VenkatTeja commented 2 months ago

+1