octosql: github.com/cube2222/octosql Index | Files | Directories

package octosql

import "github.com/cube2222/octosql"

Index

Package Files

values.go variables.go

Variables

var ErrVariableNotFound = errors.New("variable not found")

func AreEqual Uses

func AreEqual(left, right Value) bool

octosql.AreEqual checks the equality of the given values, returning false if the types don't match.

type Bool Uses

type Bool bool

func MakeBool Uses

func MakeBool(v bool) Bool

func ZeroBool Uses

func ZeroBool() Bool

func (Bool) AsBool Uses

func (v Bool) AsBool() bool

func (Bool) Document Uses

func (v Bool) Document() docs.Documentation

func (Bool) String Uses

func (v Bool) String() string

type Duration Uses

type Duration time.Duration

func MakeDuration Uses

func MakeDuration(v time.Duration) Duration

func ZeroDuration Uses

func ZeroDuration() Duration

func (Duration) AsDuration Uses

func (v Duration) AsDuration() time.Duration

func (Duration) Document Uses

func (v Duration) Document() docs.Documentation

func (Duration) String Uses

func (v Duration) String() string

type Float Uses

type Float float64

func MakeFloat Uses

func MakeFloat(v float64) Float

func ZeroFloat Uses

func ZeroFloat() Float

func (Float) AsFloat Uses

func (v Float) AsFloat() float64

func (Float) Document Uses

func (v Float) Document() docs.Documentation

func (Float) String Uses

func (v Float) String() string

type Int Uses

type Int int

func MakeInt Uses

func MakeInt(v int) Int

func ZeroInt Uses

func ZeroInt() Int

func (Int) AsInt Uses

func (v Int) AsInt() int

func (Int) Document Uses

func (v Int) Document() docs.Documentation

func (Int) String Uses

func (v Int) String() string

type Null Uses

type Null struct{}

func MakeNull Uses

func MakeNull() Null

func ZeroNull Uses

func ZeroNull() Null

func (Null) AsNull Uses

func (v Null) AsNull() interface{}

func (Null) Document Uses

func (v Null) Document() docs.Documentation

func (Null) String Uses

func (v Null) String() string

type Object Uses

type Object map[string]Value

func MakeObject Uses

func MakeObject(v map[string]Value) Object

func ZeroObject Uses

func ZeroObject() Object

func (Object) AsMap Uses

func (v Object) AsMap() map[string]Value

func (Object) Document Uses

func (v Object) Document() docs.Documentation

func (Object) String Uses

func (v Object) String() string

type Phantom Uses

type Phantom struct{}

func MakePhantom Uses

func MakePhantom() Phantom

func ZeroPhantom Uses

func ZeroPhantom() Phantom

func (Phantom) AsStruct Uses

func (v Phantom) AsStruct() struct{}

func (Phantom) Document Uses

func (v Phantom) Document() docs.Documentation

func (Phantom) String Uses

func (v Phantom) String() string

type String Uses

type String string

func MakeString Uses

func MakeString(v string) String

func ZeroString Uses

func ZeroString() String

func (String) AsString Uses

func (v String) AsString() string

func (String) Document Uses

func (v String) Document() docs.Documentation

func (String) String Uses

func (v String) String() string

type Time Uses

type Time time.Time

func MakeTime Uses

func MakeTime(v time.Time) Time

func ZeroTime Uses

func ZeroTime() Time

func (Time) AsTime Uses

func (v Time) AsTime() time.Time

func (Time) Document Uses

func (v Time) Document() docs.Documentation

func (Time) String Uses

func (v Time) String() string

type Tuple Uses

type Tuple []Value

func MakeTuple Uses

func MakeTuple(v []Value) Tuple

func ZeroTuple Uses

func ZeroTuple() Tuple

func (Tuple) AsSlice Uses

func (v Tuple) AsSlice() []Value

func (Tuple) Document Uses

func (v Tuple) Document() docs.Documentation

func (Tuple) String Uses

func (v Tuple) String() string

type Value Uses

type Value interface {
    docs.Documented

    fmt.Stringer
    // contains filtered or unexported methods
}

go-sumtype:decl Value

func NormalizeType Uses

func NormalizeType(value interface{}) Value

NormalizeType brings various primitive types into the type we want them to be. All types coming out of data sources have to be already normalized this way.

type VariableName Uses

type VariableName string

func NewVariableName Uses

func NewVariableName(varname string) VariableName

func (*VariableName) Name Uses

func (vn *VariableName) Name() string

func (*VariableName) Source Uses

func (vn *VariableName) Source() string

func (*VariableName) String Uses

func (vn *VariableName) String() string

type Variables Uses

type Variables map[VariableName]Value

func NewVariables Uses

func NewVariables(variables map[VariableName]Value) Variables

func NoVariables Uses

func NoVariables() Variables

func (Variables) Get Uses

func (vs Variables) Get(k VariableName) (Value, error)

func (Variables) MergeWith Uses

func (vs Variables) MergeWith(other Variables) (Variables, error)

Directories

PathSynopsis
app
cmd/octosql
config
docs
execution
execution/aggregates
execution/aggregates/docgen
execution/functions
execution/functions/docgen
execution/tvf
execution/tvf/docgen
logical
output
output/csv
output/json
output/table
parser
parser/sqlparser
parser/sqlparser/dependency/bytes2
parser/sqlparser/dependency/hackPackage hack gives you some efficient functionality at the cost of breaking some Go rules.
parser/sqlparser/dependency/queryPackage query is a generated protocol buffer package.
parser/sqlparser/dependency/sqltypesPackage sqltypes implements interfaces and types that represent SQL values.
physical
physical/matcher
physical/metadata
physical/optimizer
storage/csv
storage/json
storage/mysql
storage/postgres
storage/redis

Package octosql imports 8 packages (graph) and is imported by 15 packages. Updated 2019-08-14. Refresh now. Tools for package owners.