Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Postgres ¶
type Postgres struct {
// contains filtered or unexported fields
}
Postgres implements the database interface
func New ¶
func New(log *zap.SugaredLogger, datadir string, host string, port int, user string, password string) *Postgres
New instantiates a new postgres database
func (*Postgres) Check ¶
Check checks whether a backup needs to be restored or not, returns true if it needs a backup
Click to show internal directories.
Click to hide internal directories.