db

package
v0.0.0-...-2be0f72 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RSession

func RSession() (*r.Session, error)

RSession creates a new RethinkDB session.

func RSessionMust

func RSessionMust() *r.Session

RSessionMust creates a new RethinkDB session and panics if it cannot allocate it.

func RSessionUsing

func RSessionUsing(address, db string) (*r.Session, error)

RSessionUsing create a new RethinkDB session using the passed in parameters

func RSessionUsingMust

func RSessionUsingMust(address, db string) *r.Session

RSessionUsingMust creates a new RethinkDB session and panics if it cannot allocate it.

Types

type SessionCreater

type SessionCreater interface {
	RSession() (*r.Session, error)
	RSessionMust() *r.Session
}
var Sessions SessionCreater = &sessionCreater{}

Directories

Path Synopsis
dai

Jump to

Keyboard shortcuts

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