Skip to content

Add database dependency and migration tooling #20

Description

@pragmaticAweds

Repository

This issue belongs in Fundable-Protocol/Backend under indexer/.

Migrated from https://github.com/Fundable-Protocol/stellar_indexer/issues/1.

Context

The indexer needs a PostgreSQL-backed persistence layer before cursor, event, stream, distribution, or API work can be implemented. This issue adds the database tooling foundation only.

Scope

  • Add PostgreSQL database dependencies
  • Add Drizzle ORM and migration tooling
  • Add root/package scripts for generating and running migrations
  • Add an initial migrations directory structure
  • Document the migration workflow briefly in README or package scripts

Out of Scope

  • Defining domain tables
  • Creating cursor or indexed-event tables
  • Implementing DB connection factories
  • Docker Compose setup

Acceptance Criteria

  • Migration tooling is installed and configured
  • bun run db:generate or equivalent exists
  • bun run db:migrate or equivalent exists
  • bun run type-check passes
  • bun run test passes
  • bun run lint passes
  • bun run indexer:type-check passes
  • bun run indexer:test passes
  • bun run indexer:lint passes

Dependencies

  • Bun/Turborepo scaffold

Suggested Files or Packages

  • package.json
  • indexer/common/
  • migration config file

Notes

Use exact dependency versions and update bun.lock with the dependency changes.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions