gorp

package
v0.0.0-...-3f51c59 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InterfaceSlice

func InterfaceSlice(slice interface{}) []interface{}

Types

type GorpDb

type GorpDb struct {
	// contains filtered or unexported fields
}

func New

func New(driver, config string) (*GorpDb, error)

func (*GorpDb) AddTable

func (db *GorpDb) AddTable(i interface{}) error

func (*GorpDb) Read

func (db *GorpDb) Read(id int64, notPtrInterface interface{}) (interface{}, error)

func (*GorpDb) ReadMany

func (gorpdb *GorpDb) ReadMany(in interface{}, opts *db.Filter) ([]interface{}, error)

func (*GorpDb) Registry

func (db *GorpDb) Registry(i interface{}, args ...interface{}) error

func (*GorpDb) Save

func (db *GorpDb) Save(id int64, obj interface{}) error

func (*GorpDb) SetDb

func (db *GorpDb) SetDb(dbmap *gorp.DbMap)

Jump to

Keyboard shortcuts

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