Skip to content

Add SQLite support#58

Open
HendricksJudy wants to merge 1 commit into
OpenHealthForAll:mainfrom
HendricksJudy:add-sqlite-support
Open

Add SQLite support#58
HendricksJudy wants to merge 1 commit into
OpenHealthForAll:mainfrom
HendricksJudy:add-sqlite-support

Conversation

@HendricksJudy
Copy link
Copy Markdown

Related to #49

Add support for SQLite as an alternative to PostgreSQL.

  • docker-compose.yaml

    • Add a new service for SQLite.
    • Update the app service to use SQLite if specified.
    • Add a volume for SQLite data.
  • prisma/schema.prisma

    • Update the datasource db block to support both PostgreSQL and SQLite.
  • src/lib/prisma.ts

    • Update the createPrismaClient function to support both PostgreSQL and SQLite.
  • .env.example

    • Add an example DATABASE_URL for SQLite.

Related to OpenHealthForAll#49

Add support for SQLite as an alternative to PostgreSQL.

* **docker-compose.yaml**
  - Add a new service for SQLite.
  - Update the `app` service to use SQLite if specified.
  - Add a volume for SQLite data.

* **prisma/schema.prisma**
  - Update the `datasource db` block to support both PostgreSQL and SQLite.

* **src/lib/prisma.ts**
  - Update the `createPrismaClient` function to support both PostgreSQL and SQLite.

* **.env.example**
  - Add an example `DATABASE_URL` for SQLite.
@mfbloom
Copy link
Copy Markdown

mfbloom commented Apr 2, 2025

This is a breaking change. If someone was to run docker compose they'd be referenced to a new database volume. You probably shouldn't replace the default in the .env and instead include an example option to utilize SQLite instead.

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