kvdb: add postgres

This commit is contained in:
Joost Jager
2021-07-13 12:07:48 +02:00
parent 9264185f5b
commit 3eb80cac97
19 changed files with 2055 additions and 10 deletions

9
kvdb/postgres/config.go Normal file
View File

@@ -0,0 +1,9 @@
package postgres
import "time"
// Config holds postgres configuration data.
type Config struct {
Dsn string `long:"dsn" description:"Database connection string."`
Timeout time.Duration `long:"timeout" description:"Database connection timeout. Set to zero to disable."`
}