opengist icon indicating copy to clipboard operation
opengist copied to clipboard

Feature Request: Postgres database driver

Open kasefuchs opened this issue 2 years ago • 5 comments

Hello,

It would be nice to add support for postgres database driver as an alernative for sqlite.

kasefuchs avatar Dec 15 '23 16:12 kasefuchs

Hi, in what case would you use Postgres over Sqlite for Opengist ?

thomiceli avatar Dec 18 '23 23:12 thomiceli

In my server architecture, I prefer to centralize all data in one RDBMS such as Postgres. This makes it possible to store the data itself separately from the application, edit data quite easily through pgadmin and visualize it using grafana.

kasefuchs avatar Dec 19 '23 06:12 kasefuchs

+1 for postgres support. I have a much more robust backup / restore solution through postgres than I do with filesystem snapshots / copies.

ahgraber avatar Apr 20 '24 18:04 ahgraber

Would be nice to have Postgres implemented. As I can see you are using gorm, so should be straight forward: https://gorm.io/docs/connecting_to_the_database.html

EDIT: seems PR #231 is already working on it

maltegrosse avatar Apr 24 '24 01:04 maltegrosse

I will review the PR soon enough, i might add mysql aswell

thomiceli avatar Apr 24 '24 19:04 thomiceli

@thomiceli is there anything how I can support this PR/feature ?

maltegrosse avatar Aug 30 '24 01:08 maltegrosse

This definitely would be a nice feature as I already have existing tools to easily backup postgres and/or mariadb in an incremental way.

This is way harder and way more tedious to do with sqlite.

spectrapulse avatar Sep 12 '24 12:09 spectrapulse