Skip to content

Migration from postgre to sql lite#35

Open
Nayggets wants to merge 17 commits into
mainfrom
migrationFromPostgreToSQLLite
Open

Migration from postgre to sql lite#35
Nayggets wants to merge 17 commits into
mainfrom
migrationFromPostgreToSQLLite

Conversation

@Nayggets

Copy link
Copy Markdown
Collaborator

ProxyDB

I updated ProxyDB.py and all its usages in other Python classes. Now HybroGen uses a simple file named hybrogen.db located in ./HybroGen as its database.

CI

The CI pipeline is also improved by this change. In fact, the CI no longer needs to wait for PostgreSQL to respond or set up the service in every job, thanks to SQLite’s lightweight behavior.

Dependencies and Build

We can now remove all PostgreSQL dependencies.
To install SQLite dependencies: sudo apt install sqlite3 libsqlite3-dev

ISSUE #26

Issue #26 is properly addressed by this change. However, the code still needs a review from the original author, @hpcharles, to ensure everything is safe.

@Nayggets Nayggets added this to the Release 7.0 milestone Apr 13, 2026
@Nayggets Nayggets requested a review from hpcharles April 13, 2026 13:55
@Nayggets Nayggets added the enhancement New feature or request label Apr 13, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Super, je vois que ca réduit le volume de la CI

Comment thread HybroGen/ProxyDb.py

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

J'aurai préféré qu'on garde la fonctionnalité de fonctionner avec postgresql
A priori, l'API reste la meme, il y a juste à parametrer les "from" à partir d'une contante dans le code "WithPG" ou WithSqlLite ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants