-
-
Notifications
You must be signed in to change notification settings - Fork 24
feat: add postgres support #71
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
base: main
Are you sure you want to change the base?
Conversation
bdb9adb
to
a985052
Compare
I appreciate the work here, however I do see some uncertainties.
|
Hey, thanks for the feedback,
|
ddbc654
to
d4c5372
Compare
d4c5372
to
c58a4a7
Compare
c58a4a7
to
9bd514a
Compare
Hey there first of all sorry for the force-pushes, somehow my git config was broken and used a wrong Github Account 😓 I am also open to maintain the Postgres Support. |
Hi again. To preface... I am appreciative of the time and effort you have put into this PR, given the size and the new feature. This project has received more attention that I was expecting, leading to issues being reported, discussions created, contributions (such as this) and features being requested. As a result, I have had less time to delve into the active development myself with all that comes around it. As for this PR. Something that should have been done as a precursor, is to firstly discuss the change before anything is done as I need to orchestrate my work with any contribution. Planning, testing, time and effort is something I would rather keep to a minimum. This is an error on my part as the README never mentions this; and for that I apologize. Related to these changes, I have been working on a rewrite of the codebase (server side) to have it be more dynamic and maintainable so that tests can be added and further functionality is easily written. With this said, I think we should park this PR for now. Once the rewrite is finished, or at least a good amount of progress has been made; then we can start looking to integrate your changes. My hope is to have the database layer be an interface of sorts, that can easily be swapped out. This will make it so much easier to have support for different database types. Once again, I should have been clear with this upfront, I apologize and hope that you have an understanding. |
Hey no Worries there, and I understand you completely. But the main Part from your Message concerning my Effort. If you're in the Progress of rewriting your backend, it can make sense to wait for it to be finished. With that said I am fine with closing this PR. 👍 As I mentioned before, I’d be happy to maintain the Postgres “module” if you’re not planning to. |
@TheGameProfi I do thank you for being understanding. We can keep this PR open as a draft, as it will be a good reference for future work on this.
I did have a quick search in the gorm docs, and they do natively support multiple databases, so hopefully the project won't require any specific maintenance in certain areas; which was also my hope as it can easily cause problems and diverge. |
Sound good. |
This PR introdues the Support for Postgres databases instead of sqlite.
Adding newly created environment vars that decide which db to use and defaults to sqlite.