Documentation
¶
Index ¶
- type MockTable
- type QueryBuilder
- func (b *QueryBuilder) GetTimeRange() (time.Time, time.Time, error)
- func (b *QueryBuilder) GetTimeSegment() (time.Duration, error)
- func (b *QueryBuilder) OrderBy(orderBy ...*OrderExpr) *QueryBuilder
- func (b *QueryBuilder) ToSql(dialect Dialect) (string, error)
- func (b *QueryBuilder) WithFieldTimeRange(col *TimeColExpr, from, to time.Time) *QueryBuilder
- func (b *QueryBuilder) WithFilter(filter CondExpr) *QueryBuilder
- func (b *QueryBuilder) WithGroupBy(groupBy ...Expr) *QueryBuilder
- func (b *QueryBuilder) WithLimit(limit int64) *QueryBuilder
- func (b *QueryBuilder) WithSegment(segment Expr) *QueryBuilder
- func (b *QueryBuilder) WithSegmentFiltered(segment Expr, values []string, isExcluding bool) *QueryBuilder
- func (b *QueryBuilder) WithShiftedTimeSegment(col *TimeColExpr, segment time.Duration, timeShift time.Duration) *QueryBuilder
- func (b *QueryBuilder) WithTimeRange(from, to time.Time) (*QueryBuilder, error)
- func (b *QueryBuilder) WithTimeSegment(col *TimeColExpr, segment time.Duration) *QueryBuilder
- type TableLike
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockTable ¶
type MockTable struct {
// contains filtered or unexported fields
}
func NewMockTable ¶
func (*MockTable) NumericCol ¶
type QueryBuilder ¶
type QueryBuilder struct {
// contains filtered or unexported fields
}
func NewQueryBuilder ¶
func NewQueryBuilder(table *TableFqnExpr, cols []Expr) *QueryBuilder
func (*QueryBuilder) GetTimeRange ¶
func (*QueryBuilder) GetTimeSegment ¶
func (b *QueryBuilder) GetTimeSegment() (time.Duration, error)
func (*QueryBuilder) OrderBy ¶
func (b *QueryBuilder) OrderBy(orderBy ...*OrderExpr) *QueryBuilder
func (*QueryBuilder) ToSql ¶
func (b *QueryBuilder) ToSql(dialect Dialect) (string, error)
func (*QueryBuilder) WithFieldTimeRange ¶
func (b *QueryBuilder) WithFieldTimeRange(col *TimeColExpr, from, to time.Time) *QueryBuilder
func (*QueryBuilder) WithFilter ¶
func (b *QueryBuilder) WithFilter(filter CondExpr) *QueryBuilder
func (*QueryBuilder) WithGroupBy ¶ added in v0.1.8
func (b *QueryBuilder) WithGroupBy(groupBy ...Expr) *QueryBuilder
func (*QueryBuilder) WithLimit ¶
func (b *QueryBuilder) WithLimit(limit int64) *QueryBuilder
func (*QueryBuilder) WithSegment ¶
func (b *QueryBuilder) WithSegment(segment Expr) *QueryBuilder
func (*QueryBuilder) WithSegmentFiltered ¶ added in v0.1.10
func (b *QueryBuilder) WithSegmentFiltered(segment Expr, values []string, isExcluding bool) *QueryBuilder
func (*QueryBuilder) WithShiftedTimeSegment ¶
func (b *QueryBuilder) WithShiftedTimeSegment(col *TimeColExpr, segment time.Duration, timeShift time.Duration) *QueryBuilder
func (*QueryBuilder) WithTimeRange ¶
func (b *QueryBuilder) WithTimeRange(from, to time.Time) (*QueryBuilder, error)
func (*QueryBuilder) WithTimeSegment ¶
func (b *QueryBuilder) WithTimeSegment(col *TimeColExpr, segment time.Duration) *QueryBuilder
Click to show internal directories.
Click to hide internal directories.