Skip to content
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

feat: SQLite as a datastore #30

Merged
merged 1 commit into from
Aug 31, 2024

Conversation

notTanveer
Copy link
Contributor

This PR migrates the database from PostgreSQL to SQLite for the Silent Pay Indexer project. SQLite has been chosen as it better aligns with the project's requirements, such as the need for an embedded, serverless database with zero configuration, optimized for read-heavy workloads, and a single-file storage mechanism.

Copy link
Collaborator

@theanmolsharma theanmolsharma left a comment

Choose a reason for hiding this comment

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

  1. Update the configuration.model.ts to match the config structure
  2. Add the following to .gitignore
# misc
/.silent-pay-indexer

config/config.yaml Outdated Show resolved Hide resolved
config/dev.config.yaml Outdated Show resolved Hide resolved
password: configService.get<string>('db.password'),
database: configService.get<string>('db.databaseName'),
type: 'sqlite',
path: configService.get<string>('db.path'),
Copy link
Collaborator

Choose a reason for hiding this comment

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

This needs to be database

Suggested change
path: configService.get<string>('db.path'),
database: configService.get<string>('db.path'),

@theanmolsharma theanmolsharma merged commit 580b98a into Bitshala-Incubator:main Aug 31, 2024
2 of 3 checks passed
@theanmolsharma theanmolsharma mentioned this pull request Sep 1, 2024
5 tasks
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.

2 participants