Documentation ¶
Index ¶
- type Iter
- type Model
- func (this *Model) Create(query interface{}) interface{}
- func (this *Model) Delete(selector interface{}) bool
- func (this *Model) Expand(result interface{}, fieldTag string)
- func (this *Model) Find(args ...interface{}) *Query
- func (this *Model) Update(selector interface{}, query interface{}) (interface{}, error)
- type Query
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
'collection'
Collection name. By default it's made from SchemeName. E.g. 'UserScheme' becames 'Users' collection, simply by trimming 'Scheme' literal and adding 's' to tne end.
Arguments list is optional:
It expects a map[string]interface{}, containing following members (ony one so far): 'collection' (string) - collection name
E.g.: New(UserScheme{}, map[string]interface{"collection": "accounts"})
Click to show internal directories.
Click to hide internal directories.