rethinkdb

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*r.Session
	// contains filtered or unexported fields
}

func NewClient

func NewClient(options Options) *Client

func (*Client) Clean

func (db *Client) Clean(laundry map[string][]string)

func (*Client) Connect

func (db *Client) Connect() error

func (*Client) DeleteTable

func (db *Client) DeleteTable(database string, table string) error

DeleteTable deletes all documents in table using soft durability (no write sync)

func (*Client) Disconnect

func (db *Client) Disconnect() error

func (*Client) Get

func (db *Client) Get(table string, id string, value interface{}) error

type ConnectOption

type ConnectOption func(*r.ConnectOpts)

func WithAddress

func WithAddress(host string, port int) ConnectOption

func WithCredentials

func WithCredentials(username string, password string) ConnectOption

func WithName

func WithName(name string) ConnectOption

type Options

type Options struct {
	Host     string
	Port     int
	Name     string
	Username string
	Password string
}

Jump to

Keyboard shortcuts

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