Documentation
¶
Index ¶
- func Sort(rows []Doc, compare func(l, r Doc) bool)
- type Bulk
- type DB
- type Doc
- func (c Doc) CreatedAt() string
- func (c Doc) CreatedMill() int64
- func (c Doc) CreatedTime() time.Time
- func (c Doc) Fields() []string
- func (c Doc) FromBytes(src []byte) Doc
- func (c Doc) FromJson(s string) Doc
- func (c Doc) HasField(key string) bool
- func (c Doc) ID() string
- func (c Doc) IsEmpty() bool
- func (c Doc) IsValid() bool
- func (c Doc) NumberID() int64
- func (c Doc) ToBytes() []byte
- func (c Doc) ToJson() string
- func (c Doc) UpdatedAt() string
- func (c Doc) UpdatedMill() int64
- func (c Doc) UpdatedTime() time.Time
- func (c Doc) UserFields() []string
- func (c Doc) UserValues() []string
- func (c Doc) Values() []string
- type Explain
- type Index
- type Parser
- type Query
- func (c *Query) Asc(fields ...string) *Query
- func (c *Query) Count() (count int64, err error)
- func (c *Query) Desc(fields ...string) *Query
- func (c *Query) Eq(field, value string) *Query
- func (c *Query) Exist(field string) *Query
- func (c *Query) Explain() Explain
- func (c *Query) Gt(field, value string) *Query
- func (c *Query) Gte(field, value string) *Query
- func (c *Query) In(field string, values ...string) *Query
- func (c *Query) LeftLike(field, value string) *Query
- func (c *Query) Like(field, value string) *Query
- func (c *Query) Limit(values ...int) *Query
- func (c *Query) List() (docs []Doc, err error)
- func (c *Query) Lt(field, value string) *Query
- func (c *Query) Lte(field, value string) *Query
- func (c *Query) Must(sc *Query) *Query
- func (c *Query) Ne(field, value string) *Query
- func (c *Query) NotExist(field string) *Query
- func (c *Query) NotIn(field string, values ...string) *Query
- func (c *Query) One() (doc Doc, err error)
- func (c *Query) RightLike(field, value string) *Query
- func (c *Query) Scroll(fn func(doc Doc) bool) error
- func (c *Query) Should(sc *Query) *Query
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
type Doc ¶
func (Doc) CreatedMill ¶
func (Doc) CreatedTime ¶
func (Doc) UpdatedMill ¶
func (Doc) UpdatedTime ¶
func (Doc) UserFields ¶
func (Doc) UserValues ¶
Click to show internal directories.
Click to hide internal directories.