Documentation ¶
Index ¶
- Constants
- Variables
- func CompareBool(d, v bool) int
- func MustBeBool(v interface{}) bool
- func MustBeFloat(v interface{}) float64
- func MustBeFloat32(v interface{}) float32
- func MustBeFloat64(v interface{}) float64
- func MustBeInt(v interface{}) int64
- func MustBeInt16(v interface{}) int16
- func MustBeInt32(v interface{}) int32
- func MustBeInt64(v interface{}) int64
- func MustBeInt8(v interface{}) int8
- func MustBeString(v interface{}) string
- func MustBeTimestamp(v interface{}) time.Time
- func MustBeUint16(v interface{}) uint16
- func MustBeUint32(v interface{}) uint32
- func MustBeUint64(v interface{}) uint64
- func MustBeUint8(v interface{}) uint8
- type Array
- type Bool
- func (_ *Bool) Attributes() []string
- func (a *Bool) Compare(v Value) int
- func (a *Bool) Eval(mp map[string]Values) (Values, uint32, error)
- func (_ *Bool) IsAndOnly() bool
- func (_ *Bool) IsLogical() bool
- func (_ *Bool) ResolvedType() types.T
- func (a *Bool) ReturnType() uint32
- func (_ *Bool) Size() int
- func (a *Bool) String() string
- func (a *Bool) ToValues() Values
- type Data
- type Float
- func (_ *Float) Attributes() []string
- func (a *Float) Compare(v Value) int
- func (a *Float) Eval(mp map[string]Values) (Values, uint32, error)
- func (_ *Float) IsAndOnly() bool
- func (_ *Float) IsLogical() bool
- func (_ *Float) ResolvedType() types.T
- func (a *Float) ReturnType() uint32
- func (_ *Float) Size() int
- func (a *Float) String() string
- func (a *Float) ToValues() Values
- type Float32
- func (_ *Float32) Attributes() []string
- func (a *Float32) Compare(v Value) int
- func (a *Float32) Eval(mp map[string]Values) (Values, uint32, error)
- func (_ *Float32) IsAndOnly() bool
- func (_ *Float32) IsLogical() bool
- func (_ *Float32) ResolvedType() types.T
- func (a *Float32) ReturnType() uint32
- func (_ *Float32) Size() int
- func (a *Float32) String() string
- func (a *Float32) ToValues() Values
- type Float64
- func (_ *Float64) Attributes() []string
- func (a *Float64) Compare(v Value) int
- func (a *Float64) Eval(mp map[string]Values) (Values, uint32, error)
- func (_ *Float64) IsAndOnly() bool
- func (_ *Float64) IsLogical() bool
- func (_ *Float64) ResolvedType() types.T
- func (a *Float64) ReturnType() uint32
- func (_ *Float64) Size() int
- func (a *Float64) String() string
- func (a *Float64) ToValues() Values
- type Int
- func (_ *Int) Attributes() []string
- func (a *Int) Compare(v Value) int
- func (a *Int) Eval(mp map[string]Values) (Values, uint32, error)
- func (_ *Int) IsAndOnly() bool
- func (_ *Int) IsLogical() bool
- func (_ *Int) ResolvedType() types.T
- func (a *Int) ReturnType() uint32
- func (_ *Int) Size() int
- func (a *Int) String() string
- func (a *Int) ToValues() Values
- type Int16
- func (_ *Int16) Attributes() []string
- func (a *Int16) Compare(v Value) int
- func (a *Int16) Eval(mp map[string]Values) (Values, uint32, error)
- func (_ *Int16) IsAndOnly() bool
- func (_ *Int16) IsLogical() bool
- func (_ *Int16) ResolvedType() types.T
- func (a *Int16) ReturnType() uint32
- func (_ *Int16) Size() int
- func (a *Int16) String() string
- func (a *Int16) ToValues() Values
- type Int32
- func (_ *Int32) Attributes() []string
- func (a *Int32) Compare(v Value) int
- func (a *Int32) Eval(mp map[string]Values) (Values, uint32, error)
- func (_ *Int32) IsAndOnly() bool
- func (_ *Int32) IsLogical() bool
- func (_ *Int32) ResolvedType() types.T
- func (a *Int32) ReturnType() uint32
- func (_ *Int32) Size() int
- func (a *Int32) String() string
- func (a *Int32) ToValues() Values
- type Int64
- func (_ *Int64) Attributes() []string
- func (a *Int64) Compare(v Value) int
- func (a *Int64) Eval(mp map[string]Values) (Values, uint32, error)
- func (_ *Int64) IsAndOnly() bool
- func (_ *Int64) IsLogical() bool
- func (_ *Int64) ResolvedType() types.T
- func (a *Int64) ReturnType() uint32
- func (_ *Int64) Size() int
- func (a *Int64) String() string
- func (a *Int64) ToValues() Values
- type Int8
- func (_ *Int8) Attributes() []string
- func (a *Int8) Compare(v Value) int
- func (a *Int8) Eval(mp map[string]Values) (Values, uint32, error)
- func (_ *Int8) IsAndOnly() bool
- func (_ *Int8) IsLogical() bool
- func (_ *Int8) ResolvedType() types.T
- func (a *Int8) ReturnType() uint32
- func (_ *Int8) Size() int
- func (a *Int8) String() string
- func (a *Int8) ToValues() Values
- type Null
- func (_ Null) Attributes() []string
- func (_ Null) Compare(v Value) int
- func (a Null) Eval(_ map[string]Values) (Values, uint32, error)
- func (_ Null) IsAndOnly() bool
- func (_ Null) IsLogical() bool
- func (_ Null) ResolvedType() types.T
- func (_ Null) ReturnType() uint32
- func (_ Null) Size() int
- func (_ Null) String() string
- type String
- func (_ *String) Attributes() []string
- func (a *String) Compare(v Value) int
- func (a *String) Eval(mp map[string]Values) (Values, uint32, error)
- func (_ *String) IsAndOnly() bool
- func (_ *String) IsLogical() bool
- func (_ *String) ResolvedType() types.T
- func (a *String) ReturnType() uint32
- func (a *String) Size() int
- func (a *String) String() string
- func (a *String) ToValues() Values
- type Time
- type Timestamp
- func (_ *Timestamp) Attributes() []string
- func (a *Timestamp) Compare(v Value) int
- func (a *Timestamp) Eval(mp map[string]Values) (Values, uint32, error)
- func (_ *Timestamp) IsAndOnly() bool
- func (_ *Timestamp) IsLogical() bool
- func (_ *Timestamp) ResolvedType() types.T
- func (a *Timestamp) ReturnType() uint32
- func (_ *Timestamp) Size() int
- func (a *Timestamp) String() string
- func (a *Timestamp) ToValues() Values
- type Uint16
- func (_ *Uint16) Attributes() []string
- func (a *Uint16) Compare(v Value) int
- func (a *Uint16) Eval(mp map[string]Values) (Values, uint32, error)
- func (_ *Uint16) IsAndOnly() bool
- func (_ *Uint16) IsLogical() bool
- func (_ *Uint16) ResolvedType() types.T
- func (a *Uint16) ReturnType() uint32
- func (_ *Uint16) Size() int
- func (a *Uint16) String() string
- func (a *Uint16) ToValues() Values
- type Uint32
- func (_ *Uint32) Attributes() []string
- func (a *Uint32) Compare(v Value) int
- func (a *Uint32) Eval(mp map[string]Values) (Values, uint32, error)
- func (_ *Uint32) IsAndOnly() bool
- func (_ *Uint32) IsLogical() bool
- func (_ *Uint32) ResolvedType() types.T
- func (a *Uint32) ReturnType() uint32
- func (_ *Uint32) Size() int
- func (a *Uint32) String() string
- func (a *Uint32) ToValues() Values
- type Uint64
- func (_ *Uint64) Attributes() []string
- func (a *Uint64) Compare(v Value) int
- func (a *Uint64) Eval(mp map[string]Values) (Values, uint32, error)
- func (_ *Uint64) IsAndOnly() bool
- func (_ *Uint64) IsLogical() bool
- func (_ *Uint64) ResolvedType() types.T
- func (a *Uint64) ReturnType() uint32
- func (_ *Uint64) Size() int
- func (a *Uint64) String() string
- func (a *Uint64) ToValues() Values
- type Uint8
- func (_ *Uint8) Attributes() []string
- func (a *Uint8) Compare(v Value) int
- func (a *Uint8) Eval(mp map[string]Values) (Values, uint32, error)
- func (_ *Uint8) IsAndOnly() bool
- func (_ *Uint8) IsLogical() bool
- func (_ *Uint8) ResolvedType() types.T
- func (a *Uint8) ReturnType() uint32
- func (_ *Uint8) Size() int
- func (a *Uint8) String() string
- func (a *Uint8) ToValues() Values
- type Value
- type Values
Constants ¶
const ( TimeOutputFormat = "00:00:00" DataOutputFormat = "0000-00-00" TimestampOutputFormat = "2006-01-02 15:04:05" )
time.Time formats.
Variables ¶
Functions ¶
func CompareBool ¶
CompareBool compare the input bools according to the SQL comparison rules.
func MustBeBool ¶
func MustBeBool(v interface{}) bool
func MustBeFloat ¶
func MustBeFloat(v interface{}) float64
func MustBeFloat32 ¶
func MustBeFloat32(v interface{}) float32
func MustBeFloat64 ¶
func MustBeFloat64(v interface{}) float64
func MustBeInt16 ¶
func MustBeInt16(v interface{}) int16
func MustBeInt32 ¶
func MustBeInt32(v interface{}) int32
func MustBeInt64 ¶
func MustBeInt64(v interface{}) int64
func MustBeInt8 ¶
func MustBeInt8(v interface{}) int8
func MustBeString ¶
func MustBeString(v interface{}) string
func MustBeTimestamp ¶
func MustBeUint16 ¶
func MustBeUint16(v interface{}) uint16
func MustBeUint32 ¶
func MustBeUint32(v interface{}) uint32
func MustBeUint64 ¶
func MustBeUint64(v interface{}) uint64
func MustBeUint8 ¶
func MustBeUint8(v interface{}) uint8
Types ¶
type Bool ¶
type Bool bool // true = 1, false = 0
func (*Bool) Attributes ¶
func (*Bool) ResolvedType ¶
func (*Bool) ReturnType ¶
type Float ¶
type Float float64
func ParseFloat ¶
ParseFloat parses and returns the *Float value represented by the provided string, or an error if parsing is unsuccessful.
func (*Float) Attributes ¶
func (*Float) ResolvedType ¶
func (*Float) ReturnType ¶
type Float32 ¶
type Float32 float32
func NewFloat32 ¶
func ParseFloat32 ¶
ParseFloat32 parses and returns the *Float32 value represented by the provided string, or an error if parsing is unsuccessful.
func (*Float32) Attributes ¶
func (*Float32) ResolvedType ¶
func (*Float32) ReturnType ¶
type Float64 ¶
type Float64 float64
func NewFloat64 ¶
func ParseFloat64 ¶
ParseFloat64 parses and returns the *Float64 value represented by the provided string, or an error if parsing is unsuccessful.
func (*Float64) Attributes ¶
func (*Float64) ResolvedType ¶
func (*Float64) ReturnType ¶
type Int ¶
type Int int64
func ParseInt ¶
ParseInt parses and returns the *Int value represented by the provided string, or an error if parsing is unsuccessful.
func (*Int) Attributes ¶
func (*Int) ResolvedType ¶
func (*Int) ReturnType ¶
type Int16 ¶
type Int16 int16
func ParseInt16 ¶
ParseInt16 parses and returns the *Int16 value represented by the provided string, or an error if parsing is unsuccessful.
func (*Int16) Attributes ¶
func (*Int16) ResolvedType ¶
func (*Int16) ReturnType ¶
type Int32 ¶
type Int32 int32
func ParseInt32 ¶
ParseInt32 parses and returns the *Int32 value represented by the provided string, or an error if parsing is unsuccessful.
func (*Int32) Attributes ¶
func (*Int32) ResolvedType ¶
func (*Int32) ReturnType ¶
type Int64 ¶
type Int64 int64
func ParseInt64 ¶
ParseInt64 parses and returns the *Int64 value represented by the provided string, or an error if parsing is unsuccessful.
func (*Int64) Attributes ¶
func (*Int64) ResolvedType ¶
func (*Int64) ReturnType ¶
type Int8 ¶
type Int8 int8
func ParseInt8 ¶
ParseInt8 parses and returns the *Int8 value represented by the provided string, or an error if parsing is unsuccessful.
func (*Int8) Attributes ¶
func (*Int8) ResolvedType ¶
func (*Int8) ReturnType ¶
type Null ¶
type Null struct{}
func (Null) Attributes ¶
func (Null) ResolvedType ¶
func (Null) ReturnType ¶
type String ¶
type String string
func (*String) Attributes ¶
func (*String) ResolvedType ¶
func (*String) ReturnType ¶
type Timestamp ¶
type Timestamp int64
func NewTimestamp ¶
func ParseTimestamp ¶
ParseTimestamp parses and returns the *Timestamp value represented by the provided string in UTC, or an error if parsing is unsuccessful.
func (*Timestamp) Attributes ¶
func (*Timestamp) ResolvedType ¶
func (*Timestamp) ReturnType ¶
type Uint16 ¶
type Uint16 uint16
func ParseUint16 ¶
ParseUint16 parses and returns the *Uint16 value represented by the provided string, or an error if parsing is unsuccessful.
func (*Uint16) Attributes ¶
func (*Uint16) ResolvedType ¶
func (*Uint16) ReturnType ¶
type Uint32 ¶
type Uint32 uint32
func ParseUint32 ¶
ParseUint32 parses and returns the *Uint32 value represented by the provided string, or an error if parsing is unsuccessful.
func (*Uint32) Attributes ¶
func (*Uint32) ResolvedType ¶
func (*Uint32) ReturnType ¶
type Uint64 ¶
type Uint64 uint64
func ParseUint64 ¶
ParseUint64 parses and returns the *Uint64 value represented by the provided string, or an error if parsing is unsuccessful.
func (*Uint64) Attributes ¶
func (*Uint64) ResolvedType ¶
func (*Uint64) ReturnType ¶
type Uint8 ¶
type Uint8 uint8
func ParseUint8 ¶
ParseUint8 parses and returns the *Uint8 value represented by the provided string, or an error if parsing is unsuccessful.
func (*Uint8) Attributes ¶
func (*Uint8) ResolvedType ¶
func (*Uint8) ReturnType ¶
type Values ¶
type Values interface { Size() int Show() ([]byte, error) Read(int, []byte) error Count() int Slice() ([]uint64, [][]byte) Filter([]uint64) interface{} MergeFilter(interface{}) interface{} MarkNull(int) error Append(interface{}) error Update([]int, interface{}) error Merge(*roaring.Bitmap, *roaring.Bitmap) error }