mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
Use postgresql database #45
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rzig on GitHub (Jul 15, 2018).
Hi! Would it be possible to add support for PostgreSQL? I'd like to use a database independent of the docker container.
@mprasil commented on GitHub (Jul 15, 2018):
It's definitely possible - diesel that's used as ORM layer does support Postgres, however it's not an easy task to do that. Having DB backed swap-able in place is not goal of diesel and hence you need some work around this.
Having said that I don't think we use SQL directly outside of the migrations code, so if someone is motivated enough to dive into the code to do that, patches would be welcome.
@mprasil commented on GitHub (Aug 10, 2018):
Note that we're using replace_into a lot. It appears, that this might not be supported with Postgres.
@jgrip commented on GitHub (Sep 27, 2018):
Upserts were added in 9.5, so this is supported on version 9.5 and up.
http://www.postgresqltutorial.com/postgresql-upsert/
Not looked at the bw_rs code to see how much work it would be yet.
@odarriba commented on GitHub (Nov 4, 2018):
It would be very helpful tonbe able to deploy bw_rs in Kubernetes and ease the backup of the files! Also running multiple nodes without direct file sharing
@dani-garcia commented on GitHub (Nov 9, 2018):
To keep the issue tracker more focused, I'm closing this issue in favor of the meta issue at #246.