db

package
v0.0.0-...-50a6135 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const DBKEY = "gene_db"

Variables

This section is empty.

Functions

func SetDB

func SetDB(ctx context.Context, d DB) context.Context

Types

type DB

type DB interface {
	One(interface{}, interface{}, interface{}) error
	Create(interface{}, interface{}, interface{}) error
	Update(interface{}, interface{}, interface{}) error
	Delete(interface{}, interface{}, interface{}) error
	Some(interface{}, interface{}, interface{}) error
}

func MustGetDB

func MustGetDB(ctx context.Context) DB

Jump to

Keyboard shortcuts

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