datastore

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2015 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func From

func From(db *sql.DB) store.Store

From creates a datastore from an existing database connection.

func Load

func Load(env envconfig.Env) store.Store

Load opens a new database connection with the specified driver and connection string specified in the environment variables.

func Open

func Open(driver, config string) *sql.DB

Open opens a new database connection with the specified driver and connection string and returns a store.

Types

This section is empty.

Jump to

Keyboard shortcuts

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