/framework/goom.go
http://github.com/sut-go/gon · Go · 32 lines · 26 code · 6 blank · 0 comment · 0 complexity · 1e53a295b8a097523c004358e03a9ce3 MD5 · raw file
- package goom
- type DataStore interface {
- DB(name string) Database
- }
- type Database interface {
- C(name string) DataSet
- }
- type Params map[string]interface{}
- type Getter interface {
- Get(id string) interface{}
- }
- type Inserter interface {
- Insert(p interface{}) (interface{}, bool)
- }
- type GoomTemplate interface {
- Query(stmt string) interface{}
- FindOne(p Params) interface{}
- Get(id string) interface{}
- Insert(p interface{}) (interface{}, bool)
- }
- type DataSet interface {
- Query(stmt string) interface{}
- FindOne(p Params) interface{}
- Get(id string) interface{}
- Insert(p interface{}) (interface{}, bool)
- }