Documentation ¶
Index ¶
- type AggregationFunc
- type AggregationFuncInitializer
- type CountFunc
- type Expression
- type MaxFunc
- type MinFunc
- type Order
- type OrderElement
- type OrderType
- type Predicate
- func (p Predicate) EquatesWithConstant(fieldName schema.FieldName) (schema.Constant, bool)
- func (p Predicate) EquatesWithField(fieldName schema.FieldName) (schema.FieldName, bool)
- func (p Predicate) IsSatisfied(scan Scan) (bool, error)
- func (p Predicate) JoinSubPred(sche1, sche2 *schema.Schema) (Predicate, bool)
- func (p Predicate) SelectSubPred(sche *schema.Schema) (Predicate, bool)
- func (p Predicate) String() string
- func (p Predicate) SwapParams(params map[int]schema.Constant) (Predicate, error)
- type ProductScan
- func (s *ProductScan) BeforeFirst() error
- func (s *ProductScan) Close() error
- func (s *ProductScan) HasField(fieldName schema.FieldName) bool
- func (s *ProductScan) Int32(fieldName schema.FieldName) (int32, error)
- func (s *ProductScan) Next() (bool, error)
- func (s *ProductScan) Str(fieldName schema.FieldName) (string, error)
- func (s *ProductScan) Val(fieldName schema.FieldName) (schema.Constant, error)
- type ProjectScan
- type Scan
- type SelectScan
- func (s *SelectScan) Delete() error
- func (s *SelectScan) Insert() error
- func (s *SelectScan) MoveToRID(rid schema.RID) error
- func (s *SelectScan) Next() (bool, error)
- func (s *SelectScan) RID() schema.RID
- func (s *SelectScan) SetInt32(fieldName schema.FieldName, val int32) error
- func (s *SelectScan) SetStr(fieldName schema.FieldName, val string) error
- func (s *SelectScan) SetVal(fieldName schema.FieldName, val schema.Constant) error
- type SumFunc
- type Term
- func (t Term) AppliesTo(s *schema.Schema) bool
- func (t Term) EquatesWithConstant(fieldName schema.FieldName) (schema.Constant, bool)
- func (t Term) EquatesWithField(fieldName schema.FieldName) (schema.FieldName, bool)
- func (t Term) Expressions() (lhs, rhs Expression)
- func (t Term) IsSatisfied(scan Scan) (bool, error)
- func (t Term) ReductionFactor(distinctValues func(fn schema.FieldName) int) int
- func (t Term) String() string
- type UpdateScan
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregationFunc ¶
type AggregationFunc interface { fmt.Stringer First(s Scan) error Next(s Scan) error AliasName() schema.FieldName Val() schema.Constant }
func NewCountFunc ¶
func NewCountFunc(_, aliasName schema.FieldName) AggregationFunc
func NewMaxFunc ¶
func NewMaxFunc(fieldName, aliasName schema.FieldName) AggregationFunc
func NewMinFunc ¶
func NewMinFunc(fieldName, aliasName schema.FieldName) AggregationFunc
func NewSumFunc ¶
func NewSumFunc(fieldName, aliasName schema.FieldName) AggregationFunc
type AggregationFuncInitializer ¶
type AggregationFuncInitializer func(fieldName, aliasName schema.FieldName) AggregationFunc
type Expression ¶
type Order ¶
type Order []OrderElement
func NewOrder ¶
func NewOrder(elements ...OrderElement) Order
type OrderElement ¶
type Predicate ¶
type Predicate []Term
func NewPredicate ¶
func (Predicate) EquatesWithConstant ¶
func (Predicate) EquatesWithField ¶
func (Predicate) JoinSubPred ¶
func (Predicate) SelectSubPred ¶
type ProductScan ¶
type ProductScan struct {
// contains filtered or unexported fields
}
func NewProductScan ¶
func NewProductScan(scan1, scan2 Scan) (*ProductScan, error)
func (*ProductScan) BeforeFirst ¶
func (s *ProductScan) BeforeFirst() error
func (*ProductScan) Close ¶
func (s *ProductScan) Close() error
func (*ProductScan) Next ¶
func (s *ProductScan) Next() (bool, error)
type ProjectScan ¶
type ProjectScan struct { Scan // contains filtered or unexported fields }
func NewProjectScan ¶
func NewProjectScan(scan Scan, fieldNames ...schema.FieldName) *ProjectScan
type SelectScan ¶
type SelectScan struct { Scan // contains filtered or unexported fields }
func NewSelectScan ¶
func NewSelectScan(scan Scan, pred Predicate) *SelectScan
func (*SelectScan) Delete ¶
func (s *SelectScan) Delete() error
func (*SelectScan) Insert ¶
func (s *SelectScan) Insert() error
func (*SelectScan) Next ¶
func (s *SelectScan) Next() (bool, error)
func (*SelectScan) RID ¶
func (s *SelectScan) RID() schema.RID
func (*SelectScan) SetInt32 ¶
func (s *SelectScan) SetInt32(fieldName schema.FieldName, val int32) error
type Term ¶
type Term struct {
// contains filtered or unexported fields
}
func NewTerm ¶
func NewTerm(lhs, rhs Expression) Term
func (Term) EquatesWithConstant ¶
func (Term) EquatesWithField ¶
func (Term) Expressions ¶
func (t Term) Expressions() (lhs, rhs Expression)
func (Term) ReductionFactor ¶
type UpdateScan ¶
Click to show internal directories.
Click to hide internal directories.