rethinkdb

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RethinkDB

type RethinkDB struct {
	// contains filtered or unexported fields
}

RethinkDB implements the database interface

func New

func New(log *zap.SugaredLogger, datadir string, url string, passwordFile string) *RethinkDB

New instantiates a new rethinkdb database

func (*RethinkDB) Backup

func (db *RethinkDB) Backup() error

Backup takes a backup of the database

func (*RethinkDB) Check

func (db *RethinkDB) Check() (bool, error)

Check checks whether a backup needs to be restored or not, returns true if it needs a backup

func (*RethinkDB) Probe

func (db *RethinkDB) Probe() error

Probe indicates whether the database is running

func (*RethinkDB) Recover

func (db *RethinkDB) Recover() error

Recover restores a database backup

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL