Documentation
¶
Index ¶
- type Builder
- func (b *Builder) Build(aView *view.View, selector *view.Selector, batchData *view.BatchData, ...) (*cache.Index, error)
- func (b *Builder) CacheMetaSQL(aView *view.View, selector *view.Selector, batchData *view.BatchData, ...) (*cache.Index, error)
- func (b *Builder) ExactMetaSQL(aView *view.View, selector *view.Selector, batchData *view.BatchData, ...) (*cache.Index, error)
- type Event
- type Exclude
- type Metric
- type OnFetcher
- type OnRelationer
- type ParentData
- type Service
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶ added in v0.2.0
type Builder struct{}
Builder represent SQL Builder
func (*Builder) Build ¶ added in v0.2.0
func (b *Builder) Build(aView *view.View, selector *view.Selector, batchData *view.BatchData, relation *view.Relation, exclude *Exclude, parent *view.MetaParam) (*cache.Index, error)
Build builds SQL Select statement
func (*Builder) CacheMetaSQL ¶ added in v0.2.11
type OnFetcher ¶ added in v0.2.0
OnFetcher lifecycle interface that if entity implements, OnFetch(ctx context.Context) is call after record is fetched from db
type OnRelationer ¶ added in v0.2.0
OnRelationer lifecycle interface that if entity implements, OnRelation(ctx context.Context) is call after relation is assembled
type ParentData ¶ added in v0.2.11
Session groups view required to Read view
func (*ParentData) AsParam ¶ added in v0.2.11
func (d *ParentData) AsParam() *view.MetaParam
type Session ¶ added in v0.2.0
type Session struct {
Dest interface{} //slice
View *view.View
Selectors *view.Selectors
Parent *view.View
Metrics []*Metric
ViewMeta interface{}
// contains filtered or unexported fields
}
Session groups view required to Read view
func NewSession ¶ added in v0.2.0
NewSession creates a session
func (*Session) AddCriteria ¶ added in v0.2.1
AddCriteria adds the supplied view criteria
func (*Session) HandleViewMeta ¶ added in v0.2.11
func (*Session) ParentData ¶ added in v0.2.11
func (s *Session) ParentData() (*ParentData, bool)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.