Skip to content

Postgres#5

Draft
umar-ahmed wants to merge 11 commits intomainfrom
postgres
Draft

Postgres#5
umar-ahmed wants to merge 11 commits intomainfrom
postgres

Conversation

@umar-ahmed
Copy link
Copy Markdown
Collaborator

@umar-ahmed umar-ahmed commented Oct 19, 2023

  • Adds Postgres database driver
  • Update readme to document Postgres deployment on Railway

@umar-ahmed umar-ahmed requested a review from NikitaVr October 19, 2023 20:05
@umar-ahmed umar-ahmed marked this pull request as draft October 20, 2023 15:28
@umar-ahmed umar-ahmed removed the request for review from NikitaVr October 20, 2023 15:28
"paths": {
"~/*": ["./src/*"]
"~/*": ["./src/*"],
"@contrak/db": ["../packages/db/src/sqlite/index.ts"],
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This alias is what allows the web app to specify that it wants to use sqlite.

Ideally this could be dynamic based on the DATABASE_TYPE env var. However, in order for typescript to be happy, this needs to be defined statically.

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.

1 participant