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

Allow configuing PostgreSQL as the DB backend #5

Open
jordan-dimov opened this issue Apr 2, 2024 · 0 comments
Open

Allow configuing PostgreSQL as the DB backend #5

jordan-dimov opened this issue Apr 2, 2024 · 0 comments

Comments

@jordan-dimov
Copy link
Member

jordan-dimov commented Apr 2, 2024

In addition to supporting SQLite by default, we should also support PostgreSQL.

Users should be able to use SQLite out of the box, without further configuration - as they do now. But should also be able to export a DATABASE_URI environment variable that contains a PostgreSQL connection string, in which case we should switch to PostgreSQL as the backend.

SQLModel schema should not need to change for that - just the engine would have to be correctly initialised.

Use the asyncpg module for this, ideally.

Using PostgreSQL as the backend will allow us in the future to make use of the pgvector extension in order to store embeddings for each diff / analysis / summary and query those in natural language for similarity.

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

No branches or pull requests

1 participant