Skip to content

feat: Add PostgreSQL database layer for persistent storage#57

Open
Amarjeet325 wants to merge 1 commit into
SmartDropLabs:mainfrom
Amarjeet325:feat/16-add-postgres-layer
Open

feat: Add PostgreSQL database layer for persistent storage#57
Amarjeet325 wants to merge 1 commit into
SmartDropLabs:mainfrom
Amarjeet325:feat/16-add-postgres-layer

Conversation

@Amarjeet325

@Amarjeet325 Amarjeet325 commented Jun 27, 2026

Copy link
Copy Markdown

closes #16

  • Install pg and knex for database interactions and migrations.
  • Create docker-compose.yml defining postgres and redis services for local development.
  • Add DATABASE_URL configuration to .env.example and src/config.js.
  • Implement src/db/index.js to establish connection pooling (max: 10) and export typed query helpers.
  • Add initial Knex migration script for airdrops, recipients, contract_events, and indexer_state tables.
  • Add migrate and migrate:rollback npm scripts to package.json.
  • Fix missing comma syntax error in package.json dependencies.

@prodbycorne

Copy link
Copy Markdown
Contributor

fix branch conflicts

@prodbycorne

Copy link
Copy Markdown
Contributor

fix branch conflicts and let CI pass

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.

Add PostgreSQL database layer for persistent storage

2 participants