/framework/goom.go

http://github.com/sut-go/gon · Go · 32 lines · 26 code · 6 blank · 0 comment · 0 complexity · 1e53a295b8a097523c004358e03a9ce3 MD5 · raw file

  1. package goom
  2. type DataStore interface {
  3. DB(name string) Database
  4. }
  5. type Database interface {
  6. C(name string) DataSet
  7. }
  8. type Params map[string]interface{}
  9. type Getter interface {
  10. Get(id string) interface{}
  11. }
  12. type Inserter interface {
  13. Insert(p interface{}) (interface{}, bool)
  14. }
  15. type GoomTemplate interface {
  16. Query(stmt string) interface{}
  17. FindOne(p Params) interface{}
  18. Get(id string) interface{}
  19. Insert(p interface{}) (interface{}, bool)
  20. }
  21. type DataSet interface {
  22. Query(stmt string) interface{}
  23. FindOne(p Params) interface{}
  24. Get(id string) interface{}
  25. Insert(p interface{}) (interface{}, bool)
  26. }