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

Respect file scheme URIs for SQLite. #387

Merged
merged 3 commits into from
Nov 25, 2024

Conversation

fraggerfox
Copy link
Contributor

This PR aims to introduce proper file: Scheme URI parsing for SQLite DB option.

The changes are done based on the following documentation

The current behavior where if no scheme (file:) is mentioned, i.e. the file name is directly given like (opengist.db) the file is created under the opengist-home folder. This way the existing behavior is maintained without breaking backward compatibility.

With the new changes, the SQLite DB can be hosted independent of the home folder of Opengist. This also matches the behavior for PostgreSQL and MySQL / MariaDB, where the DB is not necessarily hosted within the Opengist home directory.

The config.yml file has been updated to reflect these changes.

@fraggerfox fraggerfox marked this pull request as ready for review November 21, 2024 14:22
@fraggerfox fraggerfox force-pushed the respect-file-uri-for-sqlite branch from 043f221 to 9f794d8 Compare November 23, 2024 13:43
@fraggerfox fraggerfox force-pushed the respect-file-uri-for-sqlite branch from 9f794d8 to 135bdf4 Compare November 24, 2024 06:56
@thomiceli
Copy link
Owner

Thanks for your PR :)

@thomiceli thomiceli merged commit 58c5ac1 into thomiceli:master Nov 25, 2024
10 checks passed
@fraggerfox fraggerfox deleted the respect-file-uri-for-sqlite branch November 26, 2024 23:38
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