Documentation
¶
Index ¶
- Variables
- type AggregateResult
- type Condition
- type Query
- type Result
- func (r *Result) Avg(column string) (float64, error)
- func (r *Result) Count() (int, error)
- func (r *Result) Exists() (bool, error)
- func (r *Result) First() ([]string, error)
- func (r *Result) Get() ([][]string, error)
- func (r *Result) Limit(n int) *Result
- func (r *Result) Max(column string) (string, error)
- func (r *Result) MaxFloat(column string) (float64, error)
- func (r *Result) Min(column string) (string, error)
- func (r *Result) MinFloat(column string) (float64, error)
- func (r *Result) Offset(n int) *Result
- func (r *Result) OrderBy(column, order string) *Result
- func (r *Result) Select(columns ...string) *Result
- func (r *Result) Sum(column string) (float64, error)
- func (r *Result) ThenBy(column, order string) *Result
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrColumnNotFound = errors.New("column not found") ErrRowNotFound = errors.New("row not found") )
Functions ¶
This section is empty.
Types ¶
type AggregateResult ¶
type AggregateResult struct {
// contains filtered or unexported fields
}
AggregateResult 聚合结果
type Query ¶
type Query struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.