db

package
v0.0.0-...-be98215 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryCache

type QueryCache struct {
	Db *database.Database
	// contains filtered or unexported fields
}
var DbCache *QueryCache

func New

func New(conn *sql.DB) *QueryCache

func (*QueryCache) GetPk

func (q *QueryCache) GetPk(m database.Model) (database.Model, interface{}, error)

func (*QueryCache) Register

func (q *QueryCache) Register(m database.Model, maxEntries int)

func (*QueryCache) Run

func (q *QueryCache) Run()

func (*QueryCache) UpdateModel

func (q *QueryCache) UpdateModel(m database.Model)

Jump to

Keyboard shortcuts

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