Documentation ¶
Index ¶
- Variables
- type Constant
- type ConstantInt32
- func (v ConstantInt32) AppliesTo(_ *Schema) bool
- func (v ConstantInt32) Compare(c Constant) int
- func (v ConstantInt32) Equals(c Constant) bool
- func (v ConstantInt32) Evaluate(Valuable) (Constant, error)
- func (v ConstantInt32) HashCode() int
- func (v ConstantInt32) String() string
- func (v ConstantInt32) Val() any
- type ConstantStr
- type Field
- type FieldName
- type FieldType
- type Flag
- type Placeholder
- type RID
- type Schema
- func (s *Schema) Add(name FieldName, schema Schema)
- func (s *Schema) AddAll(schema Schema)
- func (s *Schema) AddField(name FieldName, f Field)
- func (s *Schema) AddInt32Field(name FieldName)
- func (s *Schema) AddStrField(name FieldName, length int32)
- func (s *Schema) FieldNames() []FieldName
- func (s *Schema) HasField(name FieldName) bool
- func (s *Schema) Length(name FieldName) int32
- func (s *Schema) Typ(name FieldName) FieldType
- type Valuable
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTypeAssertionFailed = errors.New("type assertion failed")
Functions ¶
This section is empty.
Types ¶
type ConstantInt32 ¶
type ConstantInt32 int32
func (ConstantInt32) AppliesTo ¶
func (v ConstantInt32) AppliesTo(_ *Schema) bool
func (ConstantInt32) Compare ¶
func (v ConstantInt32) Compare(c Constant) int
func (ConstantInt32) Equals ¶
func (v ConstantInt32) Equals(c Constant) bool
func (ConstantInt32) HashCode ¶
func (v ConstantInt32) HashCode() int
func (ConstantInt32) String ¶
func (v ConstantInt32) String() string
func (ConstantInt32) Val ¶
func (v ConstantInt32) Val() any
type ConstantStr ¶
type ConstantStr string
func (ConstantStr) AppliesTo ¶
func (v ConstantStr) AppliesTo(_ *Schema) bool
func (ConstantStr) Compare ¶
func (v ConstantStr) Compare(c Constant) int
func (ConstantStr) Equals ¶
func (v ConstantStr) Equals(c Constant) bool
func (ConstantStr) HashCode ¶
func (v ConstantStr) HashCode() int
func (ConstantStr) String ¶
func (v ConstantStr) String() string
func (ConstantStr) Val ¶
func (v ConstantStr) Val() any
type Field ¶
type Field struct {
// contains filtered or unexported fields
}
func NewInt32Field ¶
func NewInt32Field() Field
func NewVarcharField ¶
type Placeholder ¶
type Placeholder int
func (Placeholder) AppliesTo ¶
func (p Placeholder) AppliesTo(_ *Schema) bool
func (Placeholder) Compare ¶
func (p Placeholder) Compare(Constant) int
func (Placeholder) Equals ¶
func (p Placeholder) Equals(Constant) bool
func (Placeholder) HashCode ¶
func (p Placeholder) HashCode() int
func (Placeholder) String ¶
func (p Placeholder) String() string
func (Placeholder) Val ¶
func (p Placeholder) Val() any
type Schema ¶
type Schema struct {
// contains filtered or unexported fields
}
func (*Schema) AddInt32Field ¶
func (*Schema) AddStrField ¶
func (*Schema) FieldNames ¶
Click to show internal directories.
Click to hide internal directories.