Documentation
¶
Index ¶
- type ConnectOption
- type Rethink
- func (db *Rethink) Changes(table string) (*r.Cursor, error)
- func (db *Rethink) Connect() error
- func (db *Rethink) CreateDatabase(name string) error
- func (db *Rethink) CreateTable(name string) error
- func (db *Rethink) Delete(table string, id string) error
- func (db *Rethink) Disconnect() error
- func (db *Rethink) DropDatabase(name string) error
- func (db *Rethink) DropTable(name string) error
- func (db *Rethink) FetchOne(table string, value interface{}) error
- func (db *Rethink) Filter(table string, filterFunc interface{}) (*r.Cursor, error)
- func (db *Rethink) Get(table string, id string, value interface{}) error
- func (db *Rethink) GetCursor(table string) (*r.Cursor, error)
- func (db *Rethink) Insert(table string, document interface{}) (string, error)
- func (db *Rethink) ListTable(name string, value interface{}) error
- func (db *Rethink) SetTags(tags ...string)
- func (db *Rethink) Update(table string, id string, value interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 Rethink ¶
func New ¶
func New(options ...ConnectOption) *Rethink
func (*Rethink) CreateDatabase ¶
func (*Rethink) CreateTable ¶
func (*Rethink) Disconnect ¶
func (*Rethink) DropDatabase ¶
Click to show internal directories.
Click to hide internal directories.