datastore

package
v0.0.0-...-5dbc853 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2015 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTables

func CreateTables() error

CreateTables creates all registered tables. This is used by tests.

func DropTables

func DropTables() error

DropTables drops all registered tables. This is used by tests.

func Exit

func Exit()

Exit closes the database connection

func Init

func Init(pg string)

Init opens a connection to the database

Types

type DataStore

type DataStore struct {
	UserStore      chatable.UserService
	ThreadStore    chatable.ThreadService
	EnvelopeStore  chatable.EnvelopeService
	AuthTokenStore chatable.AuthTokenService
	// contains filtered or unexported fields
}

Database is the portal to database

func NewDataStore

func NewDataStore(dbh gorp.SqlExecutor) *DataStore

NewDataStore creates new datastore

Jump to

Keyboard shortcuts

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