Skip to content

Conversation

@bh2smith
Copy link
Member

In alignment with Mintbase/evm-indexer#120, we add a schema configuration to the arak event-listening service.

This will require a change to our existing deployment:

Namely

  1. Service shut down
cd kubernetes
make delete
  1. Alter schema query
ALTER SCHEMA public RENAME TO mainnet;
  1. Restart service (with new configuration)
make apply

@bh2smith bh2smith requested a review from a team January 22, 2024 12:16
ethrpc = "http://localhost:8545"

[database.sqlite]
connection = "file:arak.db"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this required despite us not using SQLite?

Copy link
Member Author

@bh2smith bh2smith Jan 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SQLite is used for testing. It essential purpose is to be a functional environment that doesn't depend on an existing DB server (i.e. can run arak entirely within the existing filesystem). I think it would be quite a bit of work to migrate out of the project and for little benefit.

[database.sqlite]
connection = "file:arak.db"

#[database.postgres]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not delete this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the example file doesn't give an example of postgres (which is our primary purpose). Just wanted the potential user to be aware of how that it configured.

@bh2smith bh2smith merged commit 10c2a47 into main Jan 22, 2024
@bh2smith bh2smith deleted the schema-config branch January 22, 2024 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants