Skip to content

Support SQLite in Cartesi nodeΒ #71

Closed

Description

@gligneul

πŸ“š Context

To run the node, we need to start a PostgreSQL database. This is great for deploying the node in the cloud, but cumbersome when running it locally. It increases the startup time and the processing requirement to run the node.

βœ”οΈ Solution

Add support for SQLite as the rollups database. The indexer should store the data in SQLite, and the GraphQL server should read from it.

This should be a CLI/ENV option; the Postgres option should also exist.

πŸ“ˆ Subtasks

  • Design solution and write the next subtasks.

Activity

  1. changed the title [-]Support SQLite in Carteis node[/-] [+]Support SQLite in Cartesi node[/+] on Jun 6, 2023
  2. endersonmaia commented on Jun 6, 2023

    @endersonmaia
    Member

    As a suggestion, we could parse a DATABASE_URL and detect it by protocol.

    <protocol>://[<user>][:password>@<host>[:<port>]/[<database>]

    and support:

    • postgresql://...
    • sqlite:///path/to/file.sqlite
  3. transferred this issue fromcartesi/rollupson Aug 30, 2023
  4. moved this to πŸ“‹ Backlog in Rollups SDKon Aug 30, 2023
  5. locked and limited conversation to collaborators on Nov 16, 2023
  6. converted this issue into a discussion #156 on Nov 16, 2023
  7. moved this from πŸ“‹ Backlog to βœ… Done in Rollups SDKon Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions