sql

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Parsing format for date times
	RFCDate = "2006-01-02"
	// Parsing format for json date times
	RFCTime = time.RFC3339
	// Parsing format for json nanosecond times
	RFCNano = time.RFC3339Nano
)

Variables

This section is empty.

Functions

This section is empty.

Types

type All

type All struct{}

All represents a * expression.

func (*All) CodecDecodeSelf

func (x *All) CodecDecodeSelf(d *codec1978.Decoder)

func (*All) CodecEncodeSelf

func (x *All) CodecEncodeSelf(e *codec1978.Encoder)

func (*All) ExtendCORK

func (this *All) ExtendCORK() byte

func (*All) IsCodecEmpty

func (x *All) IsCodecEmpty() bool

func (*All) MarshalCORK

func (this *All) MarshalCORK(w *cork.Writer) (err error)

func (All) String

func (this All) String() string

func (*All) UnmarshalCORK

func (this *All) UnmarshalCORK(r *cork.Reader) (err error)

type Any

type Any struct{}

Any represents a ? expression.

func (*Any) CodecDecodeSelf

func (x *Any) CodecDecodeSelf(d *codec1978.Decoder)

func (*Any) CodecEncodeSelf

func (x *Any) CodecEncodeSelf(e *codec1978.Encoder)

func (*Any) ExtendCORK

func (this *Any) ExtendCORK() byte

func (*Any) IsCodecEmpty

func (x *Any) IsCodecEmpty() bool

func (*Any) MarshalCORK

func (this *Any) MarshalCORK(w *cork.Writer) (err error)

func (Any) String

func (this Any) String() string

func (*Any) UnmarshalCORK

func (this *Any) UnmarshalCORK(r *cork.Reader) (err error)

type AuthableStatement

type AuthableStatement interface {
	Auth() (string, string)
}

type Batch

type Batch struct {
	TB string
	BA []*Thing
}

Batch comment

func NewBatch

func NewBatch(TB string, BA []interface{}) *Batch

func (*Batch) CodecDecodeSelf

func (x *Batch) CodecDecodeSelf(d *codec1978.Decoder)

func (*Batch) CodecEncodeSelf

func (x *Batch) CodecEncodeSelf(e *codec1978.Encoder)

func (*Batch) ExtendCORK

func (this *Batch) ExtendCORK() byte

func (*Batch) IsCodecEmpty

func (x *Batch) IsCodecEmpty() bool

func (*Batch) MarshalCORK

func (this *Batch) MarshalCORK(w *cork.Writer) (err error)

func (Batch) String

func (this Batch) String() string

func (*Batch) UnmarshalCORK

func (this *Batch) UnmarshalCORK(r *cork.Reader) (err error)

type Batchs

type Batchs []*Batch

Batchs represents multiple Batch clauses.

func (*Batchs) CodecDecodeSelf

func (x *Batchs) CodecDecodeSelf(d *codec1978.Decoder)

func (Batchs) CodecEncodeSelf

func (x Batchs) CodecEncodeSelf(e *codec1978.Encoder)

func (Batchs) String

func (this Batchs) String() string

type BeginStatement

type BeginStatement struct{}

BeginStatement represents a SQL BEGIN TRANSACTION statement.

func (*BeginStatement) CodecDecodeSelf

func (x *BeginStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*BeginStatement) CodecEncodeSelf

func (x *BeginStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*BeginStatement) IsCodecEmpty

func (x *BeginStatement) IsCodecEmpty() bool

func (BeginStatement) String

func (this BeginStatement) String() string

type BinaryExpression

type BinaryExpression struct {
	LHS Expr
	Op  Token
	RHS Expr
}

BinaryExpression represents a WHERE expression.

func (*BinaryExpression) CodecDecodeSelf

func (x *BinaryExpression) CodecDecodeSelf(d *codec1978.Decoder)

func (*BinaryExpression) CodecEncodeSelf

func (x *BinaryExpression) CodecEncodeSelf(e *codec1978.Encoder)

func (*BinaryExpression) ExtendCORK

func (this *BinaryExpression) ExtendCORK() byte

func (*BinaryExpression) IsCodecEmpty

func (x *BinaryExpression) IsCodecEmpty() bool

func (*BinaryExpression) MarshalCORK

func (this *BinaryExpression) MarshalCORK(w *cork.Writer) (err error)

func (BinaryExpression) String

func (this BinaryExpression) String() string

func (*BinaryExpression) UnmarshalCORK

func (this *BinaryExpression) UnmarshalCORK(r *cork.Reader) (err error)

type CancelStatement

type CancelStatement struct{}

CancelStatement represents a SQL CANCEL TRANSACTION statement.

func (*CancelStatement) CodecDecodeSelf

func (x *CancelStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*CancelStatement) CodecEncodeSelf

func (x *CancelStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*CancelStatement) IsCodecEmpty

func (x *CancelStatement) IsCodecEmpty() bool

func (CancelStatement) String

func (this CancelStatement) String() string

type Circle

type Circle struct {
	CE *Point
	RA float64
}

Circle comment

func NewCircle

func NewCircle(CE *Point, RA float64) *Circle

func (*Circle) CodecDecodeSelf

func (x *Circle) CodecDecodeSelf(d *codec1978.Decoder)

func (*Circle) CodecEncodeSelf

func (x *Circle) CodecEncodeSelf(e *codec1978.Encoder)

func (*Circle) ExtendCORK

func (this *Circle) ExtendCORK() byte

func (*Circle) IsCodecEmpty

func (x *Circle) IsCodecEmpty() bool

func (Circle) JSON

func (this Circle) JSON() string

func (*Circle) MarshalCORK

func (this *Circle) MarshalCORK(w *cork.Writer) (err error)

func (Circle) MarshalJSON

func (this Circle) MarshalJSON() (data []byte, err error)

func (Circle) MarshalText

func (this Circle) MarshalText() (data []byte, err error)

func (Circle) String

func (this Circle) String() string

func (*Circle) UnmarshalCORK

func (this *Circle) UnmarshalCORK(r *cork.Reader) (err error)

type Circles

type Circles []*Circle

Circles represents multiple Circle clauses.

func (*Circles) CodecDecodeSelf

func (x *Circles) CodecDecodeSelf(d *codec1978.Decoder)

func (Circles) CodecEncodeSelf

func (x Circles) CodecEncodeSelf(e *codec1978.Encoder)

func (Circles) String

func (this Circles) String() string

type CommitStatement

type CommitStatement struct{}

CommitStatement represents a SQL COMMIT TRANSACTION statement.

func (*CommitStatement) CodecDecodeSelf

func (x *CommitStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*CommitStatement) CodecEncodeSelf

func (x *CommitStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*CommitStatement) IsCodecEmpty

func (x *CommitStatement) IsCodecEmpty() bool

func (CommitStatement) String

func (this CommitStatement) String() string

type ContentExpression

type ContentExpression struct {
	Data Expr
}

ContentExpression represents JSON to REPLACE

func (*ContentExpression) CodecDecodeSelf

func (x *ContentExpression) CodecDecodeSelf(d *codec1978.Decoder)

func (*ContentExpression) CodecEncodeSelf

func (x *ContentExpression) CodecEncodeSelf(e *codec1978.Encoder)

func (*ContentExpression) ExtendCORK

func (this *ContentExpression) ExtendCORK() byte

func (*ContentExpression) IsCodecEmpty

func (x *ContentExpression) IsCodecEmpty() bool

func (*ContentExpression) MarshalCORK

func (this *ContentExpression) MarshalCORK(w *cork.Writer) (err error)

func (ContentExpression) String

func (this ContentExpression) String() string

func (*ContentExpression) UnmarshalCORK

func (this *ContentExpression) UnmarshalCORK(r *cork.Reader) (err error)

type CreateStatement

type CreateStatement struct {
	What    Exprs
	Data    Expr
	Echo    Token
	Timeout time.Duration
}

CreateStatement represents a SQL CREATE statement.

func (*CreateStatement) CodecDecodeSelf

func (x *CreateStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*CreateStatement) CodecEncodeSelf

func (x *CreateStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*CreateStatement) Decode

func (this *CreateStatement) Decode(src []byte)

func (*CreateStatement) Duration

func (s *CreateStatement) Duration() time.Duration

func (*CreateStatement) Encode

func (this *CreateStatement) Encode() (dst []byte)

func (*CreateStatement) ExtendCORK

func (this *CreateStatement) ExtendCORK() byte

func (*CreateStatement) IsCodecEmpty

func (x *CreateStatement) IsCodecEmpty() bool

func (*CreateStatement) MarshalCORK

func (this *CreateStatement) MarshalCORK(w *cork.Writer) (err error)

func (CreateStatement) String

func (this CreateStatement) String() string

func (*CreateStatement) UnmarshalCORK

func (this *CreateStatement) UnmarshalCORK(r *cork.Reader) (err error)

func (*CreateStatement) Writeable

func (s *CreateStatement) Writeable() bool

type DataExpression

type DataExpression struct {
	Data []*ItemExpression
}

DataExpression represents a SET expression.

func (*DataExpression) CodecDecodeSelf

func (x *DataExpression) CodecDecodeSelf(d *codec1978.Decoder)

func (*DataExpression) CodecEncodeSelf

func (x *DataExpression) CodecEncodeSelf(e *codec1978.Encoder)

func (*DataExpression) ExtendCORK

func (this *DataExpression) ExtendCORK() byte

func (*DataExpression) IsCodecEmpty

func (x *DataExpression) IsCodecEmpty() bool

func (*DataExpression) MarshalCORK

func (this *DataExpression) MarshalCORK(w *cork.Writer) (err error)

func (DataExpression) String

func (this DataExpression) String() string

func (*DataExpression) UnmarshalCORK

func (this *DataExpression) UnmarshalCORK(r *cork.Reader) (err error)

type DefineDatabaseStatement

type DefineDatabaseStatement struct {
	Name *Ident
}

func (*DefineDatabaseStatement) CodecDecodeSelf

func (x *DefineDatabaseStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*DefineDatabaseStatement) CodecEncodeSelf

func (x *DefineDatabaseStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*DefineDatabaseStatement) Decode

func (this *DefineDatabaseStatement) Decode(src []byte)

func (*DefineDatabaseStatement) Encode

func (this *DefineDatabaseStatement) Encode() (dst []byte)

func (*DefineDatabaseStatement) ExtendCORK

func (this *DefineDatabaseStatement) ExtendCORK() byte

func (*DefineDatabaseStatement) IsCodecEmpty

func (x *DefineDatabaseStatement) IsCodecEmpty() bool

func (*DefineDatabaseStatement) MarshalCORK

func (this *DefineDatabaseStatement) MarshalCORK(w *cork.Writer) (err error)

func (DefineDatabaseStatement) String

func (this DefineDatabaseStatement) String() string

func (*DefineDatabaseStatement) UnmarshalCORK

func (this *DefineDatabaseStatement) UnmarshalCORK(r *cork.Reader) (err error)

func (*DefineDatabaseStatement) Writeable

func (s *DefineDatabaseStatement) Writeable() bool

type DefineEventStatement

type DefineEventStatement struct {
	Name *Ident
	What Tables
	When Expr
	Then Expr
}

DefineEventStatement represents an SQL DEFINE EVENT statement.

func (*DefineEventStatement) CodecDecodeSelf

func (x *DefineEventStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*DefineEventStatement) CodecEncodeSelf

func (x *DefineEventStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*DefineEventStatement) Decode

func (this *DefineEventStatement) Decode(src []byte)

func (*DefineEventStatement) Encode

func (this *DefineEventStatement) Encode() (dst []byte)

func (*DefineEventStatement) ExtendCORK

func (this *DefineEventStatement) ExtendCORK() byte

func (*DefineEventStatement) IsCodecEmpty

func (x *DefineEventStatement) IsCodecEmpty() bool

func (*DefineEventStatement) MarshalCORK

func (this *DefineEventStatement) MarshalCORK(w *cork.Writer) (err error)

func (DefineEventStatement) String

func (this DefineEventStatement) String() string

func (*DefineEventStatement) UnmarshalCORK

func (this *DefineEventStatement) UnmarshalCORK(r *cork.Reader) (err error)

func (*DefineEventStatement) Writeable

func (s *DefineEventStatement) Writeable() bool

type DefineFieldStatement

type DefineFieldStatement struct {
	Name     *Ident
	What     Tables
	Perms    Expr
	Type     string
	Kind     string
	Value    Expr
	Assert   Expr
	Priority float64
}

DefineFieldStatement represents an SQL DEFINE FIELD statement.

func (*DefineFieldStatement) CodecDecodeSelf

func (x *DefineFieldStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*DefineFieldStatement) CodecEncodeSelf

func (x *DefineFieldStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*DefineFieldStatement) Decode

func (this *DefineFieldStatement) Decode(src []byte)

func (*DefineFieldStatement) Encode

func (this *DefineFieldStatement) Encode() (dst []byte)

func (*DefineFieldStatement) ExtendCORK

func (this *DefineFieldStatement) ExtendCORK() byte

func (*DefineFieldStatement) IsCodecEmpty

func (x *DefineFieldStatement) IsCodecEmpty() bool

func (*DefineFieldStatement) MarshalCORK

func (this *DefineFieldStatement) MarshalCORK(w *cork.Writer) (err error)

func (DefineFieldStatement) String

func (this DefineFieldStatement) String() string

func (*DefineFieldStatement) UnmarshalCORK

func (this *DefineFieldStatement) UnmarshalCORK(r *cork.Reader) (err error)

func (*DefineFieldStatement) Writeable

func (s *DefineFieldStatement) Writeable() bool

type DefineIndexStatement

type DefineIndexStatement struct {
	Name *Ident
	What Tables
	Cols Idents
	Uniq bool
}

DefineIndexStatement represents an SQL DEFINE INDEX statement.

func (*DefineIndexStatement) CodecDecodeSelf

func (x *DefineIndexStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*DefineIndexStatement) CodecEncodeSelf

func (x *DefineIndexStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*DefineIndexStatement) Decode

func (this *DefineIndexStatement) Decode(src []byte)

func (*DefineIndexStatement) Encode

func (this *DefineIndexStatement) Encode() (dst []byte)

func (*DefineIndexStatement) ExtendCORK

func (this *DefineIndexStatement) ExtendCORK() byte

func (*DefineIndexStatement) IsCodecEmpty

func (x *DefineIndexStatement) IsCodecEmpty() bool

func (*DefineIndexStatement) MarshalCORK

func (this *DefineIndexStatement) MarshalCORK(w *cork.Writer) (err error)

func (DefineIndexStatement) String

func (this DefineIndexStatement) String() string

func (*DefineIndexStatement) UnmarshalCORK

func (this *DefineIndexStatement) UnmarshalCORK(r *cork.Reader) (err error)

func (*DefineIndexStatement) Writeable

func (s *DefineIndexStatement) Writeable() bool

type DefineLoginStatement

type DefineLoginStatement struct {
	Kind Token
	User *Ident
	Pass []byte
	Hash []byte
	Code []byte
}

DefineLoginStatement represents an SQL DEFINE LOGIN statement.

func (*DefineLoginStatement) CodecDecodeSelf

func (x *DefineLoginStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*DefineLoginStatement) CodecEncodeSelf

func (x *DefineLoginStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*DefineLoginStatement) Decode

func (this *DefineLoginStatement) Decode(src []byte)

func (*DefineLoginStatement) Encode

func (this *DefineLoginStatement) Encode() (dst []byte)

func (*DefineLoginStatement) ExtendCORK

func (this *DefineLoginStatement) ExtendCORK() byte

func (*DefineLoginStatement) IsCodecEmpty

func (x *DefineLoginStatement) IsCodecEmpty() bool

func (*DefineLoginStatement) MarshalCORK

func (this *DefineLoginStatement) MarshalCORK(w *cork.Writer) (err error)

func (DefineLoginStatement) String

func (this DefineLoginStatement) String() string

func (*DefineLoginStatement) UnmarshalCORK

func (this *DefineLoginStatement) UnmarshalCORK(r *cork.Reader) (err error)

func (*DefineLoginStatement) Writeable

func (s *DefineLoginStatement) Writeable() bool

type DefineNamespaceStatement

type DefineNamespaceStatement struct {
	Name *Ident
}

func (*DefineNamespaceStatement) CodecDecodeSelf

func (x *DefineNamespaceStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*DefineNamespaceStatement) CodecEncodeSelf

func (x *DefineNamespaceStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*DefineNamespaceStatement) Decode

func (this *DefineNamespaceStatement) Decode(src []byte)

func (*DefineNamespaceStatement) Encode

func (this *DefineNamespaceStatement) Encode() (dst []byte)

func (*DefineNamespaceStatement) ExtendCORK

func (this *DefineNamespaceStatement) ExtendCORK() byte

func (*DefineNamespaceStatement) IsCodecEmpty

func (x *DefineNamespaceStatement) IsCodecEmpty() bool

func (*DefineNamespaceStatement) MarshalCORK

func (this *DefineNamespaceStatement) MarshalCORK(w *cork.Writer) (err error)

func (DefineNamespaceStatement) String

func (this DefineNamespaceStatement) String() string

func (*DefineNamespaceStatement) UnmarshalCORK

func (this *DefineNamespaceStatement) UnmarshalCORK(r *cork.Reader) (err error)

func (*DefineNamespaceStatement) Writeable

func (s *DefineNamespaceStatement) Writeable() bool

type DefineScopeStatement

type DefineScopeStatement struct {
	Name     *Ident
	Time     time.Duration
	Code     []byte
	Signup   Expr
	Signin   Expr
	Connect  Expr
	OnSignup Expr
	OnSignin Expr
}

DefineScopeStatement represents an SQL DEFINE SCOPE statement.

func (*DefineScopeStatement) CodecDecodeSelf

func (x *DefineScopeStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*DefineScopeStatement) CodecEncodeSelf

func (x *DefineScopeStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*DefineScopeStatement) Decode

func (this *DefineScopeStatement) Decode(src []byte)

func (*DefineScopeStatement) Encode

func (this *DefineScopeStatement) Encode() (dst []byte)

func (*DefineScopeStatement) ExtendCORK

func (this *DefineScopeStatement) ExtendCORK() byte

func (*DefineScopeStatement) IsCodecEmpty

func (x *DefineScopeStatement) IsCodecEmpty() bool

func (*DefineScopeStatement) MarshalCORK

func (this *DefineScopeStatement) MarshalCORK(w *cork.Writer) (err error)

func (DefineScopeStatement) String

func (this DefineScopeStatement) String() string

func (*DefineScopeStatement) UnmarshalCORK

func (this *DefineScopeStatement) UnmarshalCORK(r *cork.Reader) (err error)

func (*DefineScopeStatement) Writeable

func (s *DefineScopeStatement) Writeable() bool

type DefineTableStatement

type DefineTableStatement struct {
	Name  *Ident
	What  Tables
	Full  bool
	Vers  bool
	Drop  bool
	Lock  bool
	Expr  Fields
	From  Tables
	Cond  Expr
	Group Groups
	Perms Expr
}

DefineTableStatement represents an SQL DEFINE TABLE statement.

func (*DefineTableStatement) CodecDecodeSelf

func (x *DefineTableStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*DefineTableStatement) CodecEncodeSelf

func (x *DefineTableStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*DefineTableStatement) Decode

func (this *DefineTableStatement) Decode(src []byte)

func (*DefineTableStatement) Encode

func (this *DefineTableStatement) Encode() (dst []byte)

func (*DefineTableStatement) ExtendCORK

func (this *DefineTableStatement) ExtendCORK() byte

func (*DefineTableStatement) IsCodecEmpty

func (x *DefineTableStatement) IsCodecEmpty() bool

func (*DefineTableStatement) MarshalCORK

func (this *DefineTableStatement) MarshalCORK(w *cork.Writer) (err error)

func (DefineTableStatement) String

func (this DefineTableStatement) String() (s string)

func (*DefineTableStatement) UnmarshalCORK

func (this *DefineTableStatement) UnmarshalCORK(r *cork.Reader) (err error)

func (*DefineTableStatement) Writeable

func (s *DefineTableStatement) Writeable() bool

type DefineTokenStatement

type DefineTokenStatement struct {
	Kind Token
	Name *Ident
	What *Ident
	Type string
	Code []byte
}

DefineTokenStatement represents an SQL DEFINE TOKEN statement.

func (*DefineTokenStatement) CodecDecodeSelf

func (x *DefineTokenStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*DefineTokenStatement) CodecEncodeSelf

func (x *DefineTokenStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*DefineTokenStatement) Decode

func (this *DefineTokenStatement) Decode(src []byte)

func (*DefineTokenStatement) Encode

func (this *DefineTokenStatement) Encode() (dst []byte)

func (*DefineTokenStatement) ExtendCORK

func (this *DefineTokenStatement) ExtendCORK() byte

func (*DefineTokenStatement) IsCodecEmpty

func (x *DefineTokenStatement) IsCodecEmpty() bool

func (*DefineTokenStatement) MarshalCORK

func (this *DefineTokenStatement) MarshalCORK(w *cork.Writer) (err error)

func (DefineTokenStatement) String

func (this DefineTokenStatement) String() string

func (*DefineTokenStatement) UnmarshalCORK

func (this *DefineTokenStatement) UnmarshalCORK(r *cork.Reader) (err error)

func (*DefineTokenStatement) Writeable

func (s *DefineTokenStatement) Writeable() bool

type DeleteStatement

type DeleteStatement struct {
	What    Exprs
	Cond    Expr
	Echo    Token
	Timeout time.Duration
}

DeleteStatement represents a SQL DELETE statement.

func (*DeleteStatement) CodecDecodeSelf

func (x *DeleteStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*DeleteStatement) CodecEncodeSelf

func (x *DeleteStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*DeleteStatement) Decode

func (this *DeleteStatement) Decode(src []byte)

func (*DeleteStatement) Duration

func (s *DeleteStatement) Duration() time.Duration

func (*DeleteStatement) Encode

func (this *DeleteStatement) Encode() (dst []byte)

func (*DeleteStatement) ExtendCORK

func (this *DeleteStatement) ExtendCORK() byte

func (*DeleteStatement) IsCodecEmpty

func (x *DeleteStatement) IsCodecEmpty() bool

func (*DeleteStatement) MarshalCORK

func (this *DeleteStatement) MarshalCORK(w *cork.Writer) (err error)

func (DeleteStatement) String

func (this DeleteStatement) String() string

func (*DeleteStatement) UnmarshalCORK

func (this *DeleteStatement) UnmarshalCORK(r *cork.Reader) (err error)

func (*DeleteStatement) Writeable

func (s *DeleteStatement) Writeable() bool

type DiffExpression

type DiffExpression struct {
	Data Expr
}

DiffExpression represents a JSON to DIFF

func (*DiffExpression) CodecDecodeSelf

func (x *DiffExpression) CodecDecodeSelf(d *codec1978.Decoder)

func (*DiffExpression) CodecEncodeSelf

func (x *DiffExpression) CodecEncodeSelf(e *codec1978.Encoder)

func (*DiffExpression) ExtendCORK

func (this *DiffExpression) ExtendCORK() byte

func (*DiffExpression) IsCodecEmpty

func (x *DiffExpression) IsCodecEmpty() bool

func (*DiffExpression) MarshalCORK

func (this *DiffExpression) MarshalCORK(w *cork.Writer) (err error)

func (DiffExpression) String

func (this DiffExpression) String() string

func (*DiffExpression) UnmarshalCORK

func (this *DiffExpression) UnmarshalCORK(r *cork.Reader) (err error)

type Empty

type Empty struct{}

Empty represents an expression which is null or "".

func (*Empty) CodecDecodeSelf

func (x *Empty) CodecDecodeSelf(d *codec1978.Decoder)

func (*Empty) CodecEncodeSelf

func (x *Empty) CodecEncodeSelf(e *codec1978.Encoder)

func (*Empty) ExtendCORK

func (this *Empty) ExtendCORK() byte

func (*Empty) IsCodecEmpty

func (x *Empty) IsCodecEmpty() bool

func (*Empty) MarshalCORK

func (this *Empty) MarshalCORK(w *cork.Writer) (err error)

func (Empty) String

func (this Empty) String() string

func (*Empty) UnmarshalCORK

func (this *Empty) UnmarshalCORK(r *cork.Reader) (err error)

type EmptyError

type EmptyError struct{}

EmptyError represents an error that occurred during parsing.

func (*EmptyError) Error

func (e *EmptyError) Error() string

Error returns the string representation of the error.

type Expr

type Expr interface{}

Expr represents a sql expression.

type Exprs

type Exprs []Expr

Exprs represents multiple sql expressions.

func (*Exprs) CodecDecodeSelf

func (x *Exprs) CodecDecodeSelf(d *codec1978.Decoder)

func (Exprs) CodecEncodeSelf

func (x Exprs) CodecEncodeSelf(e *codec1978.Encoder)

func (Exprs) String

func (this Exprs) String() string

type Fetch

type Fetch struct {
	Expr Expr
}

Fetch represents a FETCH AS clause.

func (*Fetch) CodecDecodeSelf

func (x *Fetch) CodecDecodeSelf(d *codec1978.Decoder)

func (*Fetch) CodecEncodeSelf

func (x *Fetch) CodecEncodeSelf(e *codec1978.Encoder)

func (*Fetch) ExtendCORK

func (this *Fetch) ExtendCORK() byte

func (*Fetch) IsCodecEmpty

func (x *Fetch) IsCodecEmpty() bool

func (*Fetch) MarshalCORK

func (this *Fetch) MarshalCORK(w *cork.Writer) (dst []byte, err error)

func (Fetch) String

func (this Fetch) String() string

func (*Fetch) UnmarshalCORK

func (this *Fetch) UnmarshalCORK(r *cork.Reader) (err error)

type Fetchs

type Fetchs []*Fetch

Fetchs represents multiple FETCH AS clauses.

func (*Fetchs) CodecDecodeSelf

func (x *Fetchs) CodecDecodeSelf(d *codec1978.Decoder)

func (Fetchs) CodecEncodeSelf

func (x Fetchs) CodecEncodeSelf(e *codec1978.Encoder)

func (Fetchs) String

func (this Fetchs) String() string

type Field

type Field struct {
	Expr  Expr
	Field string
	Alias string
}

Field represents a SELECT AS clause.

func (*Field) CodecDecodeSelf

func (x *Field) CodecDecodeSelf(d *codec1978.Decoder)

func (*Field) CodecEncodeSelf

func (x *Field) CodecEncodeSelf(e *codec1978.Encoder)

func (*Field) ExtendCORK

func (this *Field) ExtendCORK() byte

func (*Field) IsCodecEmpty

func (x *Field) IsCodecEmpty() bool

func (*Field) MarshalCORK

func (this *Field) MarshalCORK(w *cork.Writer) (err error)

func (Field) String

func (this Field) String() string

func (*Field) UnmarshalCORK

func (this *Field) UnmarshalCORK(r *cork.Reader) (err error)

type Fields

type Fields []*Field

Fields represents multiple SELECT AS clauses.

func (*Fields) CodecDecodeSelf

func (x *Fields) CodecDecodeSelf(d *codec1978.Decoder)

func (Fields) CodecEncodeSelf

func (x Fields) CodecEncodeSelf(e *codec1978.Encoder)

func (Fields) String

func (this Fields) String() string

type FuncExpression

type FuncExpression struct {
	Name string
	Args Exprs
	Aggr bool
}

FuncExpression represents a function call.

func (*FuncExpression) CodecDecodeSelf

func (x *FuncExpression) CodecDecodeSelf(d *codec1978.Decoder)

func (*FuncExpression) CodecEncodeSelf

func (x *FuncExpression) CodecEncodeSelf(e *codec1978.Encoder)

func (*FuncExpression) ExtendCORK

func (this *FuncExpression) ExtendCORK() byte

func (*FuncExpression) IsCodecEmpty

func (x *FuncExpression) IsCodecEmpty() bool

func (*FuncExpression) MarshalCORK

func (this *FuncExpression) MarshalCORK(w *cork.Writer) (err error)

func (FuncExpression) String

func (this FuncExpression) String() string

func (*FuncExpression) UnmarshalCORK

func (this *FuncExpression) UnmarshalCORK(r *cork.Reader) (err error)

type Group

type Group struct {
	Expr Expr
}

Group represents a GROUP BY clause.

func (*Group) CodecDecodeSelf

func (x *Group) CodecDecodeSelf(d *codec1978.Decoder)

func (*Group) CodecEncodeSelf

func (x *Group) CodecEncodeSelf(e *codec1978.Encoder)

func (*Group) ExtendCORK

func (this *Group) ExtendCORK() byte

func (*Group) IsCodecEmpty

func (x *Group) IsCodecEmpty() bool

func (*Group) MarshalCORK

func (this *Group) MarshalCORK(w *cork.Writer) (err error)

func (Group) String

func (this Group) String() string

func (*Group) UnmarshalCORK

func (this *Group) UnmarshalCORK(r *cork.Reader) (err error)

type GroupError

type GroupError struct {
	// contains filtered or unexported fields
}

GroupError occurs when a 'group' expression is invalid.

func (*GroupError) Error

func (e *GroupError) Error() string

Error returns the string representation of the error.

type Groups

type Groups []*Group

Groups represents multiple GROUP BY clauses.

func (*Groups) CodecDecodeSelf

func (x *Groups) CodecDecodeSelf(d *codec1978.Decoder)

func (Groups) CodecEncodeSelf

func (x Groups) CodecEncodeSelf(e *codec1978.Encoder)

func (Groups) String

func (this Groups) String() string

type Ident

type Ident struct {
	VA string
}

Ident comment

func NewIdent

func NewIdent(VA string) *Ident

func (*Ident) CodecDecodeSelf

func (x *Ident) CodecDecodeSelf(d *codec1978.Decoder)

func (*Ident) CodecEncodeSelf

func (x *Ident) CodecEncodeSelf(e *codec1978.Encoder)

func (*Ident) ExtendCORK

func (this *Ident) ExtendCORK() byte

func (*Ident) IsCodecEmpty

func (x *Ident) IsCodecEmpty() bool

func (*Ident) MarshalCORK

func (this *Ident) MarshalCORK(w *cork.Writer) (err error)

func (Ident) String

func (this Ident) String() string

func (*Ident) UnmarshalCORK

func (this *Ident) UnmarshalCORK(r *cork.Reader) (err error)

type Idents

type Idents []*Ident

Idents represents multiple Ident clauses.

func (*Idents) CodecDecodeSelf

func (x *Idents) CodecDecodeSelf(d *codec1978.Decoder)

func (Idents) CodecEncodeSelf

func (x Idents) CodecEncodeSelf(e *codec1978.Encoder)

func (Idents) String

func (this Idents) String() string

type IfelseStatement

type IfelseStatement struct {
	RW   bool
	Cond Exprs
	Then Exprs
	Else Expr
}

IfelseStatement represents a SQL IFELSE statement.

func (*IfelseStatement) CodecDecodeSelf

func (x *IfelseStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*IfelseStatement) CodecEncodeSelf

func (x *IfelseStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*IfelseStatement) Decode

func (this *IfelseStatement) Decode(src []byte)

func (*IfelseStatement) Encode

func (this *IfelseStatement) Encode() (dst []byte)

func (*IfelseStatement) ExtendCORK

func (this *IfelseStatement) ExtendCORK() byte

func (*IfelseStatement) IsCodecEmpty

func (x *IfelseStatement) IsCodecEmpty() bool

func (*IfelseStatement) MarshalCORK

func (this *IfelseStatement) MarshalCORK(w *cork.Writer) (err error)

func (IfelseStatement) String

func (this IfelseStatement) String() string

func (*IfelseStatement) UnmarshalCORK

func (this *IfelseStatement) UnmarshalCORK(r *cork.Reader) (err error)

func (*IfelseStatement) Writeable

func (s *IfelseStatement) Writeable() bool

type InfoStatement

type InfoStatement struct {
	Kind Token
	What *Ident
}

InfoStatement represents an SQL INFO statement.

func (*InfoStatement) CodecDecodeSelf

func (x *InfoStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*InfoStatement) CodecEncodeSelf

func (x *InfoStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*InfoStatement) IsCodecEmpty

func (x *InfoStatement) IsCodecEmpty() bool

func (InfoStatement) String

func (this InfoStatement) String() string

func (*InfoStatement) Writeable

func (s *InfoStatement) Writeable() bool

type InsertStatement

type InsertStatement struct {
	Data    Expr
	Into    *Table
	Echo    Token
	Timeout time.Duration
}

InsertStatement represents a SQL INSERT statement.

func (*InsertStatement) CodecDecodeSelf

func (x *InsertStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*InsertStatement) CodecEncodeSelf

func (x *InsertStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*InsertStatement) Decode

func (this *InsertStatement) Decode(src []byte)

func (*InsertStatement) Duration

func (s *InsertStatement) Duration() time.Duration

func (*InsertStatement) Encode

func (this *InsertStatement) Encode() (dst []byte)

func (*InsertStatement) ExtendCORK

func (this *InsertStatement) ExtendCORK() byte

func (*InsertStatement) IsCodecEmpty

func (x *InsertStatement) IsCodecEmpty() bool

func (*InsertStatement) MarshalCORK

func (this *InsertStatement) MarshalCORK(w *cork.Writer) (err error)

func (InsertStatement) String

func (this InsertStatement) String() string

func (*InsertStatement) UnmarshalCORK

func (this *InsertStatement) UnmarshalCORK(r *cork.Reader) (err error)

func (*InsertStatement) Writeable

func (s *InsertStatement) Writeable() bool

type ItemExpression

type ItemExpression struct {
	LHS Expr
	Op  Token
	RHS Expr
}

ItemExpression represents a part of a SET expression.

func (*ItemExpression) CodecDecodeSelf

func (x *ItemExpression) CodecDecodeSelf(d *codec1978.Decoder)

func (*ItemExpression) CodecEncodeSelf

func (x *ItemExpression) CodecEncodeSelf(e *codec1978.Encoder)

func (*ItemExpression) ExtendCORK

func (this *ItemExpression) ExtendCORK() byte

func (*ItemExpression) IsCodecEmpty

func (x *ItemExpression) IsCodecEmpty() bool

func (*ItemExpression) MarshalCORK

func (this *ItemExpression) MarshalCORK(w *cork.Writer) (err error)

func (ItemExpression) String

func (this ItemExpression) String() string

func (*ItemExpression) UnmarshalCORK

func (this *ItemExpression) UnmarshalCORK(r *cork.Reader) (err error)

type JoinExpression

type JoinExpression struct {
	Join Token
}

JoinExpression represents a path join expression.

func (*JoinExpression) CodecDecodeSelf

func (x *JoinExpression) CodecDecodeSelf(d *codec1978.Decoder)

func (*JoinExpression) CodecEncodeSelf

func (x *JoinExpression) CodecEncodeSelf(e *codec1978.Encoder)

func (*JoinExpression) ExtendCORK

func (this *JoinExpression) ExtendCORK() byte

func (*JoinExpression) IsCodecEmpty

func (x *JoinExpression) IsCodecEmpty() bool

func (*JoinExpression) MarshalCORK

func (this *JoinExpression) MarshalCORK(w *cork.Writer) (err error)

func (JoinExpression) String

func (this JoinExpression) String() string

func (*JoinExpression) UnmarshalCORK

func (this *JoinExpression) UnmarshalCORK(r *cork.Reader) (err error)

type KillStatement

type KillStatement struct {
	FB   string
	What Exprs
}

KillStatement represents a SQL KILL statement.

func (*KillStatement) CodecDecodeSelf

func (x *KillStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*KillStatement) CodecEncodeSelf

func (x *KillStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*KillStatement) IsCodecEmpty

func (x *KillStatement) IsCodecEmpty() bool

func (KillStatement) String

func (this KillStatement) String() string

func (*KillStatement) Writeable

func (s *KillStatement) Writeable() bool

type KillableStatement

type KillableStatement interface {
	Duration() time.Duration
}

type LetStatement

type LetStatement struct {
	RW   bool
	Name *Ident
	What Expr
}

LetStatement represents a SQL LET statement.

func (*LetStatement) CodecDecodeSelf

func (x *LetStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*LetStatement) CodecEncodeSelf

func (x *LetStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*LetStatement) IsCodecEmpty

func (x *LetStatement) IsCodecEmpty() bool

func (LetStatement) String

func (this LetStatement) String() string

func (*LetStatement) Writeable

func (s *LetStatement) Writeable() bool

type LiveStatement

type LiveStatement struct {
	ID    string
	FB    string
	NS    string
	DB    string
	Diff  bool
	Expr  Fields
	What  Exprs
	Cond  Expr
	Fetch Fetchs
}

LiveStatement represents a SQL LIVE statement.

func (*LiveStatement) CodecDecodeSelf

func (x *LiveStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*LiveStatement) CodecEncodeSelf

func (x *LiveStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*LiveStatement) Decode

func (this *LiveStatement) Decode(src []byte)

func (*LiveStatement) Encode

func (this *LiveStatement) Encode() (dst []byte)

func (*LiveStatement) ExtendCORK

func (this *LiveStatement) ExtendCORK() byte

func (*LiveStatement) IsCodecEmpty

func (x *LiveStatement) IsCodecEmpty() bool

func (*LiveStatement) MarshalCORK

func (this *LiveStatement) MarshalCORK(w *cork.Writer) (err error)

func (LiveStatement) String

func (this LiveStatement) String() string

func (*LiveStatement) UnmarshalCORK

func (this *LiveStatement) UnmarshalCORK(r *cork.Reader) (err error)

func (*LiveStatement) Writeable

func (s *LiveStatement) Writeable() bool

type MergeExpression

type MergeExpression struct {
	Data Expr
}

MergeExpression represents JSON to MERGE

func (*MergeExpression) CodecDecodeSelf

func (x *MergeExpression) CodecDecodeSelf(d *codec1978.Decoder)

func (*MergeExpression) CodecEncodeSelf

func (x *MergeExpression) CodecEncodeSelf(e *codec1978.Encoder)

func (*MergeExpression) ExtendCORK

func (this *MergeExpression) ExtendCORK() byte

func (*MergeExpression) IsCodecEmpty

func (x *MergeExpression) IsCodecEmpty() bool

func (*MergeExpression) MarshalCORK

func (this *MergeExpression) MarshalCORK(w *cork.Writer) (err error)

func (MergeExpression) String

func (this MergeExpression) String() string

func (*MergeExpression) UnmarshalCORK

func (this *MergeExpression) UnmarshalCORK(r *cork.Reader) (err error)

type Model

type Model struct {
	TB  string
	MIN float64
	INC float64
	MAX float64
}

Model comment

func NewModel

func NewModel(TB string, MIN, INC, MAX float64) *Model

func (*Model) CodecDecodeSelf

func (x *Model) CodecDecodeSelf(d *codec1978.Decoder)

func (*Model) CodecEncodeSelf

func (x *Model) CodecEncodeSelf(e *codec1978.Encoder)

func (*Model) ExtendCORK

func (this *Model) ExtendCORK() byte

func (*Model) IsCodecEmpty

func (x *Model) IsCodecEmpty() bool

func (*Model) MarshalCORK

func (this *Model) MarshalCORK(w *cork.Writer) (err error)

func (Model) String

func (this Model) String() string

func (*Model) UnmarshalCORK

func (this *Model) UnmarshalCORK(r *cork.Reader) (err error)

type Models

type Models []*Model

Models represents multiple Model clauses.

func (*Models) CodecDecodeSelf

func (x *Models) CodecDecodeSelf(d *codec1978.Decoder)

func (Models) CodecEncodeSelf

func (x Models) CodecEncodeSelf(e *codec1978.Encoder)

type MultExpression

type MultExpression struct {
	Expr []Expr
}

MultExpression represents multiple queries.

func (*MultExpression) CodecDecodeSelf

func (x *MultExpression) CodecDecodeSelf(d *codec1978.Decoder)

func (*MultExpression) CodecEncodeSelf

func (x *MultExpression) CodecEncodeSelf(e *codec1978.Encoder)

func (*MultExpression) ExtendCORK

func (this *MultExpression) ExtendCORK() byte

func (*MultExpression) IsCodecEmpty

func (x *MultExpression) IsCodecEmpty() bool

func (*MultExpression) MarshalCORK

func (this *MultExpression) MarshalCORK(w *cork.Writer) (err error)

func (MultExpression) String

func (this MultExpression) String() string

func (*MultExpression) UnmarshalCORK

func (this *MultExpression) UnmarshalCORK(r *cork.Reader) (err error)

type Null

type Null struct{}

Null represents an expression which is null.

func (*Null) CodecDecodeSelf

func (x *Null) CodecDecodeSelf(d *codec1978.Decoder)

func (*Null) CodecEncodeSelf

func (x *Null) CodecEncodeSelf(e *codec1978.Encoder)

func (*Null) ExtendCORK

func (this *Null) ExtendCORK() byte

func (*Null) IsCodecEmpty

func (x *Null) IsCodecEmpty() bool

func (*Null) MarshalCORK

func (this *Null) MarshalCORK(w *cork.Writer) (err error)

func (Null) String

func (this Null) String() string

func (*Null) UnmarshalCORK

func (this *Null) UnmarshalCORK(r *cork.Reader) (err error)

type OptStatement

type OptStatement struct {
	Name string
	What bool
}

OptStatement represents a SQL OPTION statement.

func (*OptStatement) CodecDecodeSelf

func (x *OptStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*OptStatement) CodecEncodeSelf

func (x *OptStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*OptStatement) IsCodecEmpty

func (x *OptStatement) IsCodecEmpty() bool

func (OptStatement) String

func (this OptStatement) String() string

type Order

type Order struct {
	Expr Expr
	Dir  bool
	Tag  language.Tag
}

Order represents a ORDER BY clause.

func (*Order) CodecDecodeSelf

func (x *Order) CodecDecodeSelf(d *codec1978.Decoder)

func (*Order) CodecEncodeSelf

func (x *Order) CodecEncodeSelf(e *codec1978.Encoder)

func (*Order) ExtendCORK

func (this *Order) ExtendCORK() byte

func (*Order) IsCodecEmpty

func (x *Order) IsCodecEmpty() bool

func (*Order) MarshalCORK

func (this *Order) MarshalCORK(w *cork.Writer) (dst []byte, err error)

func (Order) String

func (this Order) String() string

func (*Order) UnmarshalCORK

func (this *Order) UnmarshalCORK(r *cork.Reader) (err error)

type Orders

type Orders []*Order

Orders represents multiple ORDER BY clauses.

func (*Orders) CodecDecodeSelf

func (x *Orders) CodecDecodeSelf(d *codec1978.Decoder)

func (Orders) CodecEncodeSelf

func (x Orders) CodecEncodeSelf(e *codec1978.Encoder)

func (Orders) String

func (this Orders) String() string

type Param

type Param struct {
	VA string
}

Param comment

func NewParam

func NewParam(VA string) *Param

func (*Param) CodecDecodeSelf

func (x *Param) CodecDecodeSelf(d *codec1978.Decoder)

func (*Param) CodecEncodeSelf

func (x *Param) CodecEncodeSelf(e *codec1978.Encoder)

func (*Param) ExtendCORK

func (this *Param) ExtendCORK() byte

func (*Param) IsCodecEmpty

func (x *Param) IsCodecEmpty() bool

func (*Param) MarshalCORK

func (this *Param) MarshalCORK(w *cork.Writer) (err error)

func (Param) String

func (this Param) String() string

func (*Param) UnmarshalCORK

func (this *Param) UnmarshalCORK(r *cork.Reader) (err error)

type Params

type Params []*Param

Params represents multiple Param clauses.

func (*Params) CodecDecodeSelf

func (x *Params) CodecDecodeSelf(d *codec1978.Decoder)

func (Params) CodecEncodeSelf

func (x Params) CodecEncodeSelf(e *codec1978.Encoder)

func (Params) String

func (this Params) String() string

type ParseError

type ParseError struct {
	Found    string
	Expected []string
}

ParseError represents an error that occurred during parsing.

func (*ParseError) Error

func (e *ParseError) Error() string

Error returns the string representation of the error.

type PartExpression

type PartExpression struct {
	Part Expr
}

PartExpression represents a path part expression.

func (*PartExpression) CodecDecodeSelf

func (x *PartExpression) CodecDecodeSelf(d *codec1978.Decoder)

func (*PartExpression) CodecEncodeSelf

func (x *PartExpression) CodecEncodeSelf(e *codec1978.Encoder)

func (*PartExpression) ExtendCORK

func (this *PartExpression) ExtendCORK() byte

func (*PartExpression) IsCodecEmpty

func (x *PartExpression) IsCodecEmpty() bool

func (*PartExpression) MarshalCORK

func (this *PartExpression) MarshalCORK(w *cork.Writer) (err error)

func (PartExpression) String

func (this PartExpression) String() string

func (*PartExpression) UnmarshalCORK

func (this *PartExpression) UnmarshalCORK(r *cork.Reader) (err error)

type PathExpression

type PathExpression struct {
	Expr Exprs
}

PathExpression represents a path expression.

func (*PathExpression) CodecDecodeSelf

func (x *PathExpression) CodecDecodeSelf(d *codec1978.Decoder)

func (*PathExpression) CodecEncodeSelf

func (x *PathExpression) CodecEncodeSelf(e *codec1978.Encoder)

func (*PathExpression) ExtendCORK

func (this *PathExpression) ExtendCORK() byte

func (*PathExpression) IsCodecEmpty

func (x *PathExpression) IsCodecEmpty() bool

func (*PathExpression) MarshalCORK

func (this *PathExpression) MarshalCORK(w *cork.Writer) (err error)

func (PathExpression) String

func (this PathExpression) String() string

func (*PathExpression) UnmarshalCORK

func (this *PathExpression) UnmarshalCORK(r *cork.Reader) (err error)

type PermExpression

type PermExpression struct {
	Select Expr
	Create Expr
	Update Expr
	Delete Expr
}

PermExpression represents a permissions expression.

func (*PermExpression) CodecDecodeSelf

func (x *PermExpression) CodecDecodeSelf(d *codec1978.Decoder)

func (*PermExpression) CodecEncodeSelf

func (x *PermExpression) CodecEncodeSelf(e *codec1978.Encoder)

func (*PermExpression) ExtendCORK

func (this *PermExpression) ExtendCORK() byte

func (*PermExpression) IsCodecEmpty

func (x *PermExpression) IsCodecEmpty() bool

func (*PermExpression) MarshalCORK

func (this *PermExpression) MarshalCORK(w *cork.Writer) (err error)

func (PermExpression) String

func (this PermExpression) String() string

func (*PermExpression) UnmarshalCORK

func (this *PermExpression) UnmarshalCORK(r *cork.Reader) (err error)

type Point

type Point struct {
	LO float64
	LA float64
}

Point comment

func NewPoint

func NewPoint(LO, LA float64) *Point

func (*Point) CodecDecodeSelf

func (x *Point) CodecDecodeSelf(d *codec1978.Decoder)

func (*Point) CodecEncodeSelf

func (x *Point) CodecEncodeSelf(e *codec1978.Encoder)

func (*Point) ExtendCORK

func (this *Point) ExtendCORK() byte

func (*Point) IsCodecEmpty

func (x *Point) IsCodecEmpty() bool

func (Point) JSON

func (this Point) JSON() string

func (*Point) MarshalCORK

func (this *Point) MarshalCORK(w *cork.Writer) (err error)

func (Point) MarshalJSON

func (this Point) MarshalJSON() (data []byte, err error)

func (Point) MarshalText

func (this Point) MarshalText() (data []byte, err error)

func (Point) String

func (this Point) String() string

func (*Point) UnmarshalCORK

func (this *Point) UnmarshalCORK(r *cork.Reader) (err error)

type Points

type Points []*Point

Points represents multiple Point clauses.

func (*Points) CodecDecodeSelf

func (x *Points) CodecDecodeSelf(d *codec1978.Decoder)

func (Points) CodecEncodeSelf

func (x Points) CodecEncodeSelf(e *codec1978.Encoder)

func (Points) String

func (this Points) String() string

type Polygon

type Polygon struct {
	PS []*Point
}

Polygon comment

func NewPolygon

func NewPolygon(PS ...*Point) *Polygon

func (*Polygon) CodecDecodeSelf

func (x *Polygon) CodecDecodeSelf(d *codec1978.Decoder)

func (*Polygon) CodecEncodeSelf

func (x *Polygon) CodecEncodeSelf(e *codec1978.Encoder)

func (*Polygon) ExtendCORK

func (this *Polygon) ExtendCORK() byte

func (*Polygon) IsCodecEmpty

func (x *Polygon) IsCodecEmpty() bool

func (Polygon) JSON

func (this Polygon) JSON() string

func (*Polygon) MarshalCORK

func (this *Polygon) MarshalCORK(w *cork.Writer) (err error)

func (Polygon) MarshalJSON

func (this Polygon) MarshalJSON() (data []byte, err error)

func (Polygon) MarshalText

func (this Polygon) MarshalText() (data []byte, err error)

func (Polygon) String

func (this Polygon) String() string

func (*Polygon) UnmarshalCORK

func (this *Polygon) UnmarshalCORK(r *cork.Reader) (err error)

type Polygons

type Polygons []*Polygon

Polygons represents multiple Polygon clauses.

func (*Polygons) CodecDecodeSelf

func (x *Polygons) CodecDecodeSelf(d *codec1978.Decoder)

func (Polygons) CodecEncodeSelf

func (x Polygons) CodecEncodeSelf(e *codec1978.Encoder)

func (Polygons) String

func (this Polygons) String() string

type Query

type Query struct {
	Statements Statements
}

Query represents a multi statement SQL query

func Parse

func Parse(i interface{}) (*Query, error)

Parse parses sql from a []byte, string, or io.Reader.

func (*Query) CodecDecodeSelf

func (x *Query) CodecDecodeSelf(d *codec1978.Decoder)

func (*Query) CodecEncodeSelf

func (x *Query) CodecEncodeSelf(e *codec1978.Encoder)

func (*Query) IsCodecEmpty

func (x *Query) IsCodecEmpty() bool

type Regex

type Regex struct {
	VA string
}

Regex comment

func NewRegex

func NewRegex(VA string) *Regex

func (*Regex) CodecDecodeSelf

func (x *Regex) CodecDecodeSelf(d *codec1978.Decoder)

func (*Regex) CodecEncodeSelf

func (x *Regex) CodecEncodeSelf(e *codec1978.Encoder)

func (*Regex) ExtendCORK

func (this *Regex) ExtendCORK() byte

func (*Regex) IsCodecEmpty

func (x *Regex) IsCodecEmpty() bool

func (*Regex) MarshalCORK

func (this *Regex) MarshalCORK(w *cork.Writer) (err error)

func (Regex) String

func (this Regex) String() string

func (*Regex) UnmarshalCORK

func (this *Regex) UnmarshalCORK(r *cork.Reader) (err error)

type Regexs

type Regexs []*Regex

Regexs represents multiple Regex clauses.

func (*Regexs) CodecDecodeSelf

func (x *Regexs) CodecDecodeSelf(d *codec1978.Decoder)

func (Regexs) CodecEncodeSelf

func (x Regexs) CodecEncodeSelf(e *codec1978.Encoder)

func (Regexs) String

func (this Regexs) String() string

type RelateStatement

type RelateStatement struct {
	Type    Expr
	From    Exprs
	With    Exprs
	Data    Expr
	Uniq    bool
	Echo    Token
	Timeout time.Duration
}

RelateStatement represents a SQL RELATE statement.

func (*RelateStatement) CodecDecodeSelf

func (x *RelateStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*RelateStatement) CodecEncodeSelf

func (x *RelateStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*RelateStatement) Decode

func (this *RelateStatement) Decode(src []byte)

func (*RelateStatement) Duration

func (s *RelateStatement) Duration() time.Duration

func (*RelateStatement) Encode

func (this *RelateStatement) Encode() (dst []byte)

func (*RelateStatement) ExtendCORK

func (this *RelateStatement) ExtendCORK() byte

func (*RelateStatement) IsCodecEmpty

func (x *RelateStatement) IsCodecEmpty() bool

func (*RelateStatement) MarshalCORK

func (this *RelateStatement) MarshalCORK(w *cork.Writer) (err error)

func (RelateStatement) String

func (this RelateStatement) String() string

func (*RelateStatement) UnmarshalCORK

func (this *RelateStatement) UnmarshalCORK(r *cork.Reader) (err error)

func (*RelateStatement) Writeable

func (s *RelateStatement) Writeable() bool

type RemoveDatabaseStatement

type RemoveDatabaseStatement struct {
	Name *Ident
}

func (*RemoveDatabaseStatement) CodecDecodeSelf

func (x *RemoveDatabaseStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*RemoveDatabaseStatement) CodecEncodeSelf

func (x *RemoveDatabaseStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*RemoveDatabaseStatement) IsCodecEmpty

func (x *RemoveDatabaseStatement) IsCodecEmpty() bool

func (RemoveDatabaseStatement) String

func (this RemoveDatabaseStatement) String() string

func (*RemoveDatabaseStatement) Writeable

func (s *RemoveDatabaseStatement) Writeable() bool

type RemoveEventStatement

type RemoveEventStatement struct {
	Name *Ident
	What Tables
}

RemoveEventStatement represents an SQL REMOVE EVENT statement.

func (*RemoveEventStatement) CodecDecodeSelf

func (x *RemoveEventStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*RemoveEventStatement) CodecEncodeSelf

func (x *RemoveEventStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*RemoveEventStatement) IsCodecEmpty

func (x *RemoveEventStatement) IsCodecEmpty() bool

func (RemoveEventStatement) String

func (this RemoveEventStatement) String() string

func (*RemoveEventStatement) Writeable

func (s *RemoveEventStatement) Writeable() bool

type RemoveFieldStatement

type RemoveFieldStatement struct {
	Name *Ident
	What Tables
}

RemoveFieldStatement represents an SQL REMOVE FIELD statement.

func (*RemoveFieldStatement) CodecDecodeSelf

func (x *RemoveFieldStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*RemoveFieldStatement) CodecEncodeSelf

func (x *RemoveFieldStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*RemoveFieldStatement) IsCodecEmpty

func (x *RemoveFieldStatement) IsCodecEmpty() bool

func (RemoveFieldStatement) String

func (this RemoveFieldStatement) String() string

func (*RemoveFieldStatement) Writeable

func (s *RemoveFieldStatement) Writeable() bool

type RemoveIndexStatement

type RemoveIndexStatement struct {
	Name *Ident
	What Tables
}

RemoveIndexStatement represents an SQL REMOVE INDEX statement.

func (*RemoveIndexStatement) CodecDecodeSelf

func (x *RemoveIndexStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*RemoveIndexStatement) CodecEncodeSelf

func (x *RemoveIndexStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*RemoveIndexStatement) IsCodecEmpty

func (x *RemoveIndexStatement) IsCodecEmpty() bool

func (RemoveIndexStatement) String

func (this RemoveIndexStatement) String() string

func (*RemoveIndexStatement) Writeable

func (s *RemoveIndexStatement) Writeable() bool

type RemoveLoginStatement

type RemoveLoginStatement struct {
	Kind Token
	User *Ident
}

RemoveLoginStatement represents an SQL REMOVE LOGIN statement.

func (*RemoveLoginStatement) CodecDecodeSelf

func (x *RemoveLoginStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*RemoveLoginStatement) CodecEncodeSelf

func (x *RemoveLoginStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*RemoveLoginStatement) IsCodecEmpty

func (x *RemoveLoginStatement) IsCodecEmpty() bool

func (RemoveLoginStatement) String

func (this RemoveLoginStatement) String() string

func (*RemoveLoginStatement) Writeable

func (s *RemoveLoginStatement) Writeable() bool

type RemoveNamespaceStatement

type RemoveNamespaceStatement struct {
	Name *Ident
}

func (*RemoveNamespaceStatement) CodecDecodeSelf

func (x *RemoveNamespaceStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*RemoveNamespaceStatement) CodecEncodeSelf

func (x *RemoveNamespaceStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*RemoveNamespaceStatement) IsCodecEmpty

func (x *RemoveNamespaceStatement) IsCodecEmpty() bool

func (RemoveNamespaceStatement) String

func (this RemoveNamespaceStatement) String() string

func (*RemoveNamespaceStatement) Writeable

func (s *RemoveNamespaceStatement) Writeable() bool

type RemoveScopeStatement

type RemoveScopeStatement struct {
	Name *Ident
}

RemoveScopeStatement represents an SQL REMOVE SCOPE statement.

func (*RemoveScopeStatement) CodecDecodeSelf

func (x *RemoveScopeStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*RemoveScopeStatement) CodecEncodeSelf

func (x *RemoveScopeStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*RemoveScopeStatement) IsCodecEmpty

func (x *RemoveScopeStatement) IsCodecEmpty() bool

func (RemoveScopeStatement) String

func (this RemoveScopeStatement) String() string

func (*RemoveScopeStatement) Writeable

func (s *RemoveScopeStatement) Writeable() bool

type RemoveTableStatement

type RemoveTableStatement struct {
	What Tables
}

RemoveTableStatement represents an SQL REMOVE TABLE statement.

func (*RemoveTableStatement) CodecDecodeSelf

func (x *RemoveTableStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*RemoveTableStatement) CodecEncodeSelf

func (x *RemoveTableStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*RemoveTableStatement) IsCodecEmpty

func (x *RemoveTableStatement) IsCodecEmpty() bool

func (RemoveTableStatement) String

func (this RemoveTableStatement) String() string

func (*RemoveTableStatement) Writeable

func (s *RemoveTableStatement) Writeable() bool

type RemoveTokenStatement

type RemoveTokenStatement struct {
	Kind Token
	Name *Ident
	What *Ident
}

RemoveTokenStatement represents an SQL REMOVE TOKEN statement.

func (*RemoveTokenStatement) CodecDecodeSelf

func (x *RemoveTokenStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*RemoveTokenStatement) CodecEncodeSelf

func (x *RemoveTokenStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*RemoveTokenStatement) IsCodecEmpty

func (x *RemoveTokenStatement) IsCodecEmpty() bool

func (RemoveTokenStatement) String

func (this RemoveTokenStatement) String() string

func (*RemoveTokenStatement) Writeable

func (s *RemoveTokenStatement) Writeable() bool

type ReturnStatement

type ReturnStatement struct {
	RW   bool
	What Exprs
}

ReturnStatement represents a SQL RETURN statement.

func (*ReturnStatement) CodecDecodeSelf

func (x *ReturnStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*ReturnStatement) CodecEncodeSelf

func (x *ReturnStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*ReturnStatement) IsCodecEmpty

func (x *ReturnStatement) IsCodecEmpty() bool

func (ReturnStatement) String

func (this ReturnStatement) String() string

func (*ReturnStatement) Writeable

func (s *ReturnStatement) Writeable() bool

type RunStatement

type RunStatement struct {
	RW   bool
	Expr Expr
}

RunStatement represents a run clause.

func (*RunStatement) CodecDecodeSelf

func (x *RunStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*RunStatement) CodecEncodeSelf

func (x *RunStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*RunStatement) Decode

func (this *RunStatement) Decode(src []byte)

func (*RunStatement) Encode

func (this *RunStatement) Encode() (dst []byte)

func (*RunStatement) ExtendCORK

func (this *RunStatement) ExtendCORK() byte

func (*RunStatement) IsCodecEmpty

func (x *RunStatement) IsCodecEmpty() bool

func (*RunStatement) MarshalCORK

func (this *RunStatement) MarshalCORK(w *cork.Writer) (err error)

func (RunStatement) String

func (this RunStatement) String() string

func (*RunStatement) UnmarshalCORK

func (this *RunStatement) UnmarshalCORK(r *cork.Reader) (err error)

type SelectStatement

type SelectStatement struct {
	RW      bool
	Expr    Fields
	What    Exprs
	Cond    Expr
	Split   Idents
	Group   Groups
	Order   Orders
	Limit   Expr
	Start   Expr
	Fetch   Fetchs
	Version Expr
	Timeout time.Duration
}

SelectStatement represents a SQL SELECT statement.

func (*SelectStatement) CodecDecodeSelf

func (x *SelectStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*SelectStatement) CodecEncodeSelf

func (x *SelectStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*SelectStatement) Decode

func (this *SelectStatement) Decode(src []byte)

func (*SelectStatement) Duration

func (s *SelectStatement) Duration() time.Duration

func (*SelectStatement) Encode

func (this *SelectStatement) Encode() (dst []byte)

func (*SelectStatement) ExtendCORK

func (this *SelectStatement) ExtendCORK() byte

func (*SelectStatement) IsCodecEmpty

func (x *SelectStatement) IsCodecEmpty() bool

func (*SelectStatement) MarshalCORK

func (this *SelectStatement) MarshalCORK(w *cork.Writer) (err error)

func (SelectStatement) String

func (this SelectStatement) String() string

func (*SelectStatement) UnmarshalCORK

func (this *SelectStatement) UnmarshalCORK(r *cork.Reader) (err error)

func (*SelectStatement) Writeable

func (s *SelectStatement) Writeable() bool

type Statement

type Statement interface{}

Statement represents a single SQL AST

type Statements

type Statements []Statement

Statements represents multiple SQL ASTs

func (*Statements) CodecDecodeSelf

func (x *Statements) CodecDecodeSelf(d *codec1978.Decoder)

func (Statements) CodecEncodeSelf

func (x Statements) CodecEncodeSelf(e *codec1978.Encoder)

type SubExpression

type SubExpression struct {
	Expr Expr
}

SubExpression represents a subquery.

func (*SubExpression) CodecDecodeSelf

func (x *SubExpression) CodecDecodeSelf(d *codec1978.Decoder)

func (*SubExpression) CodecEncodeSelf

func (x *SubExpression) CodecEncodeSelf(e *codec1978.Encoder)

func (*SubExpression) ExtendCORK

func (this *SubExpression) ExtendCORK() byte

func (*SubExpression) IsCodecEmpty

func (x *SubExpression) IsCodecEmpty() bool

func (*SubExpression) MarshalCORK

func (this *SubExpression) MarshalCORK(w *cork.Writer) (err error)

func (SubExpression) String

func (this SubExpression) String() string

func (*SubExpression) UnmarshalCORK

func (this *SubExpression) UnmarshalCORK(r *cork.Reader) (err error)

type SubpExpression

type SubpExpression struct {
	What Exprs
	Name *Ident
	Cond Expr
}

SubpExpression represents a sub path expression.

func (*SubpExpression) CodecDecodeSelf

func (x *SubpExpression) CodecDecodeSelf(d *codec1978.Decoder)

func (*SubpExpression) CodecEncodeSelf

func (x *SubpExpression) CodecEncodeSelf(e *codec1978.Encoder)

func (*SubpExpression) ExtendCORK

func (this *SubpExpression) ExtendCORK() byte

func (*SubpExpression) IsCodecEmpty

func (x *SubpExpression) IsCodecEmpty() bool

func (*SubpExpression) MarshalCORK

func (this *SubpExpression) MarshalCORK(w *cork.Writer) (err error)

func (SubpExpression) String

func (this SubpExpression) String() string

func (*SubpExpression) UnmarshalCORK

func (this *SubpExpression) UnmarshalCORK(r *cork.Reader) (err error)

type Table

type Table struct {
	TB string
}

Table comment

func NewTable

func NewTable(TB string) *Table

func (*Table) CodecDecodeSelf

func (x *Table) CodecDecodeSelf(d *codec1978.Decoder)

func (*Table) CodecEncodeSelf

func (x *Table) CodecEncodeSelf(e *codec1978.Encoder)

func (*Table) ExtendCORK

func (this *Table) ExtendCORK() byte

func (*Table) IsCodecEmpty

func (x *Table) IsCodecEmpty() bool

func (*Table) MarshalCORK

func (this *Table) MarshalCORK(w *cork.Writer) (err error)

func (Table) String

func (this Table) String() string

func (*Table) UnmarshalCORK

func (this *Table) UnmarshalCORK(r *cork.Reader) (err error)

type Tables

type Tables []*Table

Tables represents multiple Table clauses.

func (*Tables) CodecDecodeSelf

func (x *Tables) CodecDecodeSelf(d *codec1978.Decoder)

func (Tables) CodecEncodeSelf

func (x Tables) CodecEncodeSelf(e *codec1978.Encoder)

func (Tables) String

func (this Tables) String() string

type Thing

type Thing struct {
	TB string
	ID interface{}
}

Thing comment

func NewThing

func NewThing(TB string, ID interface{}) *Thing

func ParseThing

func ParseThing(val string) *Thing

func (Thing) Bytes

func (this Thing) Bytes() []byte

func (*Thing) CodecDecodeSelf

func (x *Thing) CodecDecodeSelf(d *codec1978.Decoder)

func (*Thing) CodecEncodeSelf

func (x *Thing) CodecEncodeSelf(e *codec1978.Encoder)

func (*Thing) ExtendCORK

func (this *Thing) ExtendCORK() byte

func (*Thing) IsCodecEmpty

func (x *Thing) IsCodecEmpty() bool

func (*Thing) MarshalCORK

func (this *Thing) MarshalCORK(w *cork.Writer) (err error)

func (Thing) MarshalText

func (this Thing) MarshalText() (data []byte, err error)

func (Thing) String

func (this Thing) String() string

func (*Thing) UnmarshalCORK

func (this *Thing) UnmarshalCORK(r *cork.Reader) (err error)

type Things

type Things []*Thing

Things represents multiple Thing clauses.

func (*Things) CodecDecodeSelf

func (x *Things) CodecDecodeSelf(d *codec1978.Decoder)

func (Things) CodecEncodeSelf

func (x Things) CodecEncodeSelf(e *codec1978.Encoder)

func (Things) String

func (this Things) String() string

type Token

type Token int16

Token defines a lexical token

const (
	ILLEGAL Token = iota
	EOF
	WS

	DATE     // 1970-01-01
	TIME     // 1970-01-01T00:00:00+00:00
	JSON     // {"test":true}
	EXPR     // something[0].value
	IDENT    // something
	THING    // @class:id
	MODEL    // [person|1..1000]
	STRING   // "something"
	REGION   // "a multiline \n string"
	NUMBER   // 123456
	DOUBLE   // 123.456
	REGEX    // /.*/
	ARRAY    // [0,1,2]
	DURATION // 13h
	PARAM    // $1

	OEDGE // ->
	IEDGE // <-
	BEDGE // <->

	DOT       // .
	COMMA     // ,
	QMARK     // ?
	LPAREN    // (
	RPAREN    // )
	LBRACK    // [
	RBRACK    // ]
	COLON     // :
	SEMICOLON // ;

	ADD // +
	SUB // -
	MUL // *
	DIV // /
	INC // +=
	DEC // -=

	EQ  // =
	EEQ // ==
	EXC // !
	NEQ // !=
	NEE // !==
	ANY // ?=
	LT  // <
	LTE // <=
	GT  // >
	GTE // >=
	SIN // ∋
	SNI // ∌
	INS // ∈
	NIS // ∉
	MAT // ~
	NAT // !~
	MAY // ?~

	AFTER
	ALL
	ALLCONTAINEDIN
	AND
	AS
	ASC
	ASSERT
	AT
	BEFORE
	BEGIN
	BOTH
	BY
	CANCEL
	COLLATE
	COLUMNS
	COMMIT
	CONNECT
	CONTAINS
	CONTAINSALL
	CONTAINSNONE
	CONTAINSSOME
	CONTENT
	CREATE
	DATABASE
	DB
	DEFINE
	DELETE
	DESC
	DIFF
	DROP
	ELSE
	EMPTY
	END
	EVENT
	FALSE
	FETCH
	FIELD
	FOR
	FROM
	FULL
	GROUP
	IF
	IN
	INDEX
	INFO
	INSERT
	INTO
	IS
	KILL
	LET
	LIMIT
	LIVE
	LOGIN
	MERGE
	MISSING
	NAMESPACE
	NONE
	NONECONTAINEDIN
	NOT
	NS
	NULL
	NUMERIC
	ON
	OPTION
	OR
	ORDER
	PARALLEL
	PASSHASH
	PASSWORD
	PERMISSIONS
	PRIORITY
	RAND
	RELATE
	REMOVE
	RETURN
	RUN
	SCHEMAFULL
	SCHEMALESS
	SCOPE
	SELECT
	SESSION
	SET
	SIGNIN
	SIGNUP
	SOMECONTAINEDIN
	SPLIT
	START
	TABLE
	THEN
	TIMEOUT
	TO
	TOKEN
	TRANSACTION
	TRUE
	TYPE
	UNIQUE
	UNVERSIONED
	UPDATE
	UPSERT
	USE
	VALUE
	VERSION
	VERSIONED
	VOID
	WHEN
	WHERE
	WITH
)

func (Token) MarshalBinary

func (this Token) MarshalBinary() (data []byte, err error)

func (Token) MarshalText

func (this Token) MarshalText() (data []byte, err error)

func (Token) String

func (tok Token) String() string

func (*Token) UnmarshalBinary

func (this *Token) UnmarshalBinary(data []byte) (err error)

type UpdateStatement

type UpdateStatement struct {
	What    Exprs
	Data    Expr
	Cond    Expr
	Echo    Token
	Timeout time.Duration
}

UpdateStatement represents a SQL UPDATE statement.

func (*UpdateStatement) CodecDecodeSelf

func (x *UpdateStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*UpdateStatement) CodecEncodeSelf

func (x *UpdateStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*UpdateStatement) Decode

func (this *UpdateStatement) Decode(src []byte)

func (*UpdateStatement) Duration

func (s *UpdateStatement) Duration() time.Duration

func (*UpdateStatement) Encode

func (this *UpdateStatement) Encode() (dst []byte)

func (*UpdateStatement) ExtendCORK

func (this *UpdateStatement) ExtendCORK() byte

func (*UpdateStatement) IsCodecEmpty

func (x *UpdateStatement) IsCodecEmpty() bool

func (*UpdateStatement) MarshalCORK

func (this *UpdateStatement) MarshalCORK(w *cork.Writer) (err error)

func (UpdateStatement) String

func (this UpdateStatement) String() string

func (*UpdateStatement) UnmarshalCORK

func (this *UpdateStatement) UnmarshalCORK(r *cork.Reader) (err error)

func (*UpdateStatement) Writeable

func (s *UpdateStatement) Writeable() bool

type UpsertStatement

type UpsertStatement struct {
	Data    Expr
	Into    *Table
	Echo    Token
	Timeout time.Duration
}

UpsertStatement represents a SQL UPSERT statement.

func (*UpsertStatement) CodecDecodeSelf

func (x *UpsertStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*UpsertStatement) CodecEncodeSelf

func (x *UpsertStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*UpsertStatement) Decode

func (this *UpsertStatement) Decode(src []byte)

func (*UpsertStatement) Duration

func (s *UpsertStatement) Duration() time.Duration

func (*UpsertStatement) Encode

func (this *UpsertStatement) Encode() (dst []byte)

func (*UpsertStatement) ExtendCORK

func (this *UpsertStatement) ExtendCORK() byte

func (*UpsertStatement) IsCodecEmpty

func (x *UpsertStatement) IsCodecEmpty() bool

func (*UpsertStatement) MarshalCORK

func (this *UpsertStatement) MarshalCORK(w *cork.Writer) (err error)

func (UpsertStatement) String

func (this UpsertStatement) String() string

func (*UpsertStatement) UnmarshalCORK

func (this *UpsertStatement) UnmarshalCORK(r *cork.Reader) (err error)

func (*UpsertStatement) Writeable

func (s *UpsertStatement) Writeable() bool

type UseStatement

type UseStatement struct {
	NS string
	DB string
}

UseStatement represents a SQL USE statement.

func (*UseStatement) CodecDecodeSelf

func (x *UseStatement) CodecDecodeSelf(d *codec1978.Decoder)

func (*UseStatement) CodecEncodeSelf

func (x *UseStatement) CodecEncodeSelf(e *codec1978.Encoder)

func (*UseStatement) IsCodecEmpty

func (x *UseStatement) IsCodecEmpty() bool

func (UseStatement) String

func (this UseStatement) String() string

type Value

type Value struct {
	VA string
}

Value comment

func NewValue

func NewValue(VA string) *Value

func (*Value) CodecDecodeSelf

func (x *Value) CodecDecodeSelf(d *codec1978.Decoder)

func (*Value) CodecEncodeSelf

func (x *Value) CodecEncodeSelf(e *codec1978.Encoder)

func (*Value) ExtendCORK

func (this *Value) ExtendCORK() byte

func (*Value) IsCodecEmpty

func (x *Value) IsCodecEmpty() bool

func (*Value) MarshalCORK

func (this *Value) MarshalCORK(w *cork.Writer) (err error)

func (Value) String

func (this Value) String() string

func (*Value) UnmarshalCORK

func (this *Value) UnmarshalCORK(r *cork.Reader) (err error)

type Values

type Values []*Value

Values represents multiple Value clauses.

func (*Values) CodecDecodeSelf

func (x *Values) CodecDecodeSelf(d *codec1978.Decoder)

func (Values) CodecEncodeSelf

func (x Values) CodecEncodeSelf(e *codec1978.Encoder)

func (Values) String

func (this Values) String() string

type Void

type Void struct{}

Void represents an expression which is not set.

func (*Void) CodecDecodeSelf

func (x *Void) CodecDecodeSelf(d *codec1978.Decoder)

func (*Void) CodecEncodeSelf

func (x *Void) CodecEncodeSelf(e *codec1978.Encoder)

func (*Void) ExtendCORK

func (this *Void) ExtendCORK() byte

func (*Void) IsCodecEmpty

func (x *Void) IsCodecEmpty() bool

func (*Void) MarshalCORK

func (this *Void) MarshalCORK(w *cork.Writer) (err error)

func (Void) String

func (this Void) String() string

func (*Void) UnmarshalCORK

func (this *Void) UnmarshalCORK(r *cork.Reader) (err error)

type WriteableStatement

type WriteableStatement interface {
	Writeable() bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL