subsquid / squid-sdk

The main repo of the squid SDK
Apache License 2.0
1.23k stars 151 forks source link

Implement SQLite Store for squid-processors #77

Closed dzhelezov closed 2 years ago

dzhelezov commented 2 years ago

We currently have a default (TypeormDatabase) implementation of the processor store. For non-API cases having a Postgres as a backend database is an overkill and a more lightweight SQLite may be a better choice:

The limitation of SQLite is that it supports only a single writer, but that's exactly the setup we have (only the squid processor writes). SQLite may also be a good choice for API-less pipelines with non-transactional data sinks.

Acceptance criteria: