ssql

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AttributeType_name = map[int32]string{
		0: "DOUBLE",
		1: "INT",
		2: "TEXT",
	}
	AttributeType_value = map[string]int32{
		"DOUBLE": 0,
		"INT":    1,
		"TEXT":   2,
	}
)

Enum value maps for AttributeType.

View Source
var (
	Function_Func_name = map[int32]string{
		0: "AVG",
		1: "SUM",
		2: "MIN",
		3: "MAX",
		4: "COUNT",
		5: "PCTL",
		6: "PART",
	}
	Function_Func_value = map[string]int32{
		"AVG":   0,
		"SUM":   1,
		"MIN":   2,
		"MAX":   3,
		"COUNT": 4,
		"PCTL":  5,
		"PART":  6,
	}
)

Enum value maps for Function_Func.

View Source
var (
	OrderBy_Direction_name = map[int32]string{
		0: "ASC",
		1: "DESC",
	}
	OrderBy_Direction_value = map[string]int32{
		"ASC":  0,
		"DESC": 1,
	}
)

Enum value maps for OrderBy_Direction.

View Source
var File_proto_ssql_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Attribute

type Attribute struct {
	Type  AttributeType `protobuf:"varint,1,opt,name=type,proto3,enum=AttributeType" json:"type,omitempty"`
	Name  string        `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Group bool          `protobuf:"varint,3,opt,name=group,proto3" json:"group,omitempty"`
	Func  *Function     `protobuf:"bytes,4,opt,name=func,proto3" json:"func,omitempty"`
	// contains filtered or unexported fields
}

func (*Attribute) Descriptor deprecated

func (*Attribute) Descriptor() ([]byte, []int)

Deprecated: Use Attribute.ProtoReflect.Descriptor instead.

func (*Attribute) GetFunc

func (x *Attribute) GetFunc() *Function

func (*Attribute) GetGroup

func (x *Attribute) GetGroup() bool

func (*Attribute) GetName

func (x *Attribute) GetName() string

func (*Attribute) GetType

func (x *Attribute) GetType() AttributeType

func (*Attribute) ProtoMessage

func (*Attribute) ProtoMessage()

func (*Attribute) ProtoReflect

func (x *Attribute) ProtoReflect() protoreflect.Message

func (*Attribute) Reset

func (x *Attribute) Reset()

func (*Attribute) String

func (x *Attribute) String() string

type AttributeType

type AttributeType int32
const (
	AttributeType_DOUBLE AttributeType = 0
	AttributeType_INT    AttributeType = 1
	AttributeType_TEXT   AttributeType = 2
)

func (AttributeType) Descriptor

func (AttributeType) Enum

func (x AttributeType) Enum() *AttributeType

func (AttributeType) EnumDescriptor deprecated

func (AttributeType) EnumDescriptor() ([]byte, []int)

Deprecated: Use AttributeType.Descriptor instead.

func (AttributeType) Number

func (AttributeType) String

func (x AttributeType) String() string

func (AttributeType) Type

type Binary

type Binary struct {
	First  *Operand `protobuf:"bytes,1,opt,name=first,proto3" json:"first,omitempty"`
	Second *Operand `protobuf:"bytes,2,opt,name=second,proto3" json:"second,omitempty"`
	// contains filtered or unexported fields
}

func (*Binary) Descriptor deprecated

func (*Binary) Descriptor() ([]byte, []int)

Deprecated: Use Binary.ProtoReflect.Descriptor instead.

func (*Binary) GetFirst

func (x *Binary) GetFirst() *Operand

func (*Binary) GetSecond

func (x *Binary) GetSecond() *Operand

func (*Binary) ProtoMessage

func (*Binary) ProtoMessage()

func (*Binary) ProtoReflect

func (x *Binary) ProtoReflect() protoreflect.Message

func (*Binary) Reset

func (x *Binary) Reset()

func (*Binary) String

func (x *Binary) String() string

type Expr

type Expr struct {

	// Types that are assignable to Field:
	//	*Expr_Or
	//	*Expr_Tuple
	Field isExpr_Field `protobuf_oneof:"field"`
	// contains filtered or unexported fields
}

func (*Expr) Descriptor deprecated

func (*Expr) Descriptor() ([]byte, []int)

Deprecated: Use Expr.ProtoReflect.Descriptor instead.

func (*Expr) GetField

func (m *Expr) GetField() isExpr_Field

func (*Expr) GetOr

func (x *Expr) GetOr() *OR

func (*Expr) GetTuple

func (x *Expr) GetTuple() *Tuple

func (*Expr) ProtoMessage

func (*Expr) ProtoMessage()

func (*Expr) ProtoReflect

func (x *Expr) ProtoReflect() protoreflect.Message

func (*Expr) Reset

func (x *Expr) Reset()

func (*Expr) String

func (x *Expr) String() string

type Expr_Or

type Expr_Or struct {
	Or *OR `protobuf:"bytes,1,opt,name=or,proto3,oneof"`
}

type Expr_Tuple

type Expr_Tuple struct {
	Tuple *Tuple `protobuf:"bytes,2,opt,name=tuple,proto3,oneof"`
}

type From

type From struct {
	Or     bool     `protobuf:"varint,1,opt,name=or,proto3" json:"or,omitempty"`
	Labels []string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"`
	// contains filtered or unexported fields
}

func (*From) Descriptor deprecated

func (*From) Descriptor() ([]byte, []int)

Deprecated: Use From.ProtoReflect.Descriptor instead.

func (*From) GetLabels

func (x *From) GetLabels() []string

func (*From) GetOr

func (x *From) GetOr() bool

func (*From) ProtoMessage

func (*From) ProtoMessage()

func (*From) ProtoReflect

func (x *From) ProtoReflect() protoreflect.Message

func (*From) Reset

func (x *From) Reset()

func (*From) String

func (x *From) String() string

type Function

type Function struct {
	Name Function_Func `protobuf:"varint,1,opt,name=name,proto3,enum=Function_Func" json:"name,omitempty"`
	// Types that are assignable to Parameter:
	//	*Function_Double
	//	*Function_Int
	Parameter isFunction_Parameter `protobuf_oneof:"parameter"`
	// contains filtered or unexported fields
}

func (*Function) Descriptor deprecated

func (*Function) Descriptor() ([]byte, []int)

Deprecated: Use Function.ProtoReflect.Descriptor instead.

func (*Function) GetDouble

func (x *Function) GetDouble() float64

func (*Function) GetInt

func (x *Function) GetInt() int64

func (*Function) GetName

func (x *Function) GetName() Function_Func

func (*Function) GetParameter

func (m *Function) GetParameter() isFunction_Parameter

func (*Function) ProtoMessage

func (*Function) ProtoMessage()

func (*Function) ProtoReflect

func (x *Function) ProtoReflect() protoreflect.Message

func (*Function) Reset

func (x *Function) Reset()

func (*Function) String

func (x *Function) String() string

type Function_Double

type Function_Double struct {
	Double float64 `protobuf:"fixed64,2,opt,name=double,proto3,oneof"`
}

type Function_Func

type Function_Func int32
const (
	Function_AVG   Function_Func = 0
	Function_SUM   Function_Func = 1
	Function_MIN   Function_Func = 2
	Function_MAX   Function_Func = 3
	Function_COUNT Function_Func = 4
	Function_PCTL  Function_Func = 5
	Function_PART  Function_Func = 6
)

func (Function_Func) Descriptor

func (Function_Func) Enum

func (x Function_Func) Enum() *Function_Func

func (Function_Func) EnumDescriptor deprecated

func (Function_Func) EnumDescriptor() ([]byte, []int)

Deprecated: Use Function_Func.Descriptor instead.

func (Function_Func) Number

func (Function_Func) String

func (x Function_Func) String() string

func (Function_Func) Type

type Function_Int

type Function_Int struct {
	Int int64 `protobuf:"varint,3,opt,name=int,proto3,oneof"`
}

type List

type List struct {
	Text   []string  `protobuf:"bytes,1,rep,name=text,proto3" json:"text,omitempty"`
	Int    []int64   `protobuf:"varint,2,rep,packed,name=int,proto3" json:"int,omitempty"`
	Double []float64 `protobuf:"fixed64,3,rep,packed,name=double,proto3" json:"double,omitempty"`
	// contains filtered or unexported fields
}

func (*List) Descriptor deprecated

func (*List) Descriptor() ([]byte, []int)

Deprecated: Use List.ProtoReflect.Descriptor instead.

func (*List) GetDouble

func (x *List) GetDouble() []float64

func (*List) GetInt

func (x *List) GetInt() []int64

func (*List) GetText

func (x *List) GetText() []string

func (*List) ProtoMessage

func (*List) ProtoMessage()

func (*List) ProtoReflect

func (x *List) ProtoReflect() protoreflect.Message

func (*List) Reset

func (x *List) Reset()

func (*List) String

func (x *List) String() string

type Nested

type Nested struct {
	Expr []*Expr `protobuf:"bytes,1,rep,name=expr,proto3" json:"expr,omitempty"`
	// contains filtered or unexported fields
}

func (*Nested) Descriptor deprecated

func (*Nested) Descriptor() ([]byte, []int)

Deprecated: Use Nested.ProtoReflect.Descriptor instead.

func (*Nested) GetExpr

func (x *Nested) GetExpr() []*Expr

func (*Nested) ProtoMessage

func (*Nested) ProtoMessage()

func (*Nested) ProtoReflect

func (x *Nested) ProtoReflect() protoreflect.Message

func (*Nested) Reset

func (x *Nested) Reset()

func (*Nested) String

func (x *Nested) String() string

type OR

type OR struct {
	Expr []*Expr `protobuf:"bytes,1,rep,name=expr,proto3" json:"expr,omitempty"`
	// contains filtered or unexported fields
}

func (*OR) Descriptor deprecated

func (*OR) Descriptor() ([]byte, []int)

Deprecated: Use OR.ProtoReflect.Descriptor instead.

func (*OR) GetExpr

func (x *OR) GetExpr() []*Expr

func (*OR) ProtoMessage

func (*OR) ProtoMessage()

func (*OR) ProtoReflect

func (x *OR) ProtoReflect() protoreflect.Message

func (*OR) Reset

func (x *OR) Reset()

func (*OR) String

func (x *OR) String() string

type Operand

type Operand struct {

	// Types that are assignable to Value:
	//	*Operand_Double
	//	*Operand_Int
	//	*Operand_Text
	//	*Operand_List
	Value isOperand_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*Operand) Descriptor deprecated

func (*Operand) Descriptor() ([]byte, []int)

Deprecated: Use Operand.ProtoReflect.Descriptor instead.

func (*Operand) GetDouble

func (x *Operand) GetDouble() float64

func (*Operand) GetInt

func (x *Operand) GetInt() int64

func (*Operand) GetList

func (x *Operand) GetList() *List

func (*Operand) GetText

func (x *Operand) GetText() string

func (*Operand) GetValue

func (m *Operand) GetValue() isOperand_Value

func (*Operand) ProtoMessage

func (*Operand) ProtoMessage()

func (*Operand) ProtoReflect

func (x *Operand) ProtoReflect() protoreflect.Message

func (*Operand) Reset

func (x *Operand) Reset()

func (*Operand) String

func (x *Operand) String() string

type Operand_Double

type Operand_Double struct {
	Double float64 `protobuf:"fixed64,1,opt,name=double,proto3,oneof"`
}

type Operand_Int

type Operand_Int struct {
	Int int64 `protobuf:"varint,2,opt,name=int,proto3,oneof"`
}

type Operand_List

type Operand_List struct {
	List *List `protobuf:"bytes,4,opt,name=list,proto3,oneof"`
}

type Operand_Text

type Operand_Text struct {
	Text string `protobuf:"bytes,3,opt,name=text,proto3,oneof"`
}

type OrderBy

type OrderBy struct {
	Name      string            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Direction OrderBy_Direction `protobuf:"varint,2,opt,name=direction,proto3,enum=OrderBy_Direction" json:"direction,omitempty"`
	// contains filtered or unexported fields
}

func (*OrderBy) Descriptor deprecated

func (*OrderBy) Descriptor() ([]byte, []int)

Deprecated: Use OrderBy.ProtoReflect.Descriptor instead.

func (*OrderBy) GetDirection

func (x *OrderBy) GetDirection() OrderBy_Direction

func (*OrderBy) GetName

func (x *OrderBy) GetName() string

func (*OrderBy) ProtoMessage

func (*OrderBy) ProtoMessage()

func (*OrderBy) ProtoReflect

func (x *OrderBy) ProtoReflect() protoreflect.Message

func (*OrderBy) Reset

func (x *OrderBy) Reset()

func (*OrderBy) String

func (x *OrderBy) String() string

type OrderBy_Direction

type OrderBy_Direction int32
const (
	OrderBy_ASC  OrderBy_Direction = 0
	OrderBy_DESC OrderBy_Direction = 1
)

func (OrderBy_Direction) Descriptor

func (OrderBy_Direction) Enum

func (OrderBy_Direction) EnumDescriptor deprecated

func (OrderBy_Direction) EnumDescriptor() ([]byte, []int)

Deprecated: Use OrderBy_Direction.Descriptor instead.

func (OrderBy_Direction) Number

func (OrderBy_Direction) String

func (x OrderBy_Direction) String() string

func (OrderBy_Direction) Type

type Statement

type Statement struct {
	Find    []*Attribute      `protobuf:"bytes,1,rep,name=find,proto3" json:"find,omitempty"`
	From    *From             `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	Where   []*Expr           `protobuf:"bytes,3,rep,name=where,proto3" json:"where,omitempty"`
	OrderBy []*OrderBy        `protobuf:"bytes,4,rep,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	Limit   uint32            `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"`
	Path    map[string]string `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Statement) Descriptor deprecated

func (*Statement) Descriptor() ([]byte, []int)

Deprecated: Use Statement.ProtoReflect.Descriptor instead.

func (*Statement) GetFind

func (x *Statement) GetFind() []*Attribute

func (*Statement) GetFrom

func (x *Statement) GetFrom() *From

func (*Statement) GetLimit

func (x *Statement) GetLimit() uint32

func (*Statement) GetOrderBy

func (x *Statement) GetOrderBy() []*OrderBy

func (*Statement) GetPath

func (x *Statement) GetPath() map[string]string

func (*Statement) GetWhere

func (x *Statement) GetWhere() []*Expr

func (*Statement) ProtoMessage

func (*Statement) ProtoMessage()

func (*Statement) ProtoReflect

func (x *Statement) ProtoReflect() protoreflect.Message

func (*Statement) Reset

func (x *Statement) Reset()

func (*Statement) String

func (x *Statement) String() string

type Tuple

type Tuple struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// Types that are assignable to Predicate:
	//	*Tuple_Nested
	//	*Tuple_Timeframe
	//	*Tuple_Key
	//	*Tuple_Between
	//	*Tuple_Contain
	//	*Tuple_Exist
	//	*Tuple_Eq
	//	*Tuple_Neq
	//	*Tuple_Gt
	//	*Tuple_Ge
	//	*Tuple_Lt
	//	*Tuple_Le
	//	*Tuple_In
	Predicate isTuple_Predicate `protobuf_oneof:"predicate"`
	// contains filtered or unexported fields
}

func (*Tuple) Descriptor deprecated

func (*Tuple) Descriptor() ([]byte, []int)

Deprecated: Use Tuple.ProtoReflect.Descriptor instead.

func (*Tuple) GetBetween

func (x *Tuple) GetBetween() *Binary

func (*Tuple) GetContain

func (x *Tuple) GetContain() *Unary

func (*Tuple) GetEq

func (x *Tuple) GetEq() *Unary

func (*Tuple) GetExist

func (x *Tuple) GetExist() *Unary

func (*Tuple) GetGe

func (x *Tuple) GetGe() *Unary

func (*Tuple) GetGt

func (x *Tuple) GetGt() *Unary

func (*Tuple) GetIn

func (x *Tuple) GetIn() *Unary

func (*Tuple) GetKey

func (x *Tuple) GetKey() *Unary

func (*Tuple) GetLe

func (x *Tuple) GetLe() *Unary

func (*Tuple) GetLt

func (x *Tuple) GetLt() *Unary

func (*Tuple) GetName

func (x *Tuple) GetName() string

func (*Tuple) GetNeq

func (x *Tuple) GetNeq() *Unary

func (*Tuple) GetNested

func (x *Tuple) GetNested() *Nested

func (*Tuple) GetPath

func (x *Tuple) GetPath() string

func (*Tuple) GetPredicate

func (m *Tuple) GetPredicate() isTuple_Predicate

func (*Tuple) GetTimeframe

func (x *Tuple) GetTimeframe() *Binary

func (*Tuple) ProtoMessage

func (*Tuple) ProtoMessage()

func (*Tuple) ProtoReflect

func (x *Tuple) ProtoReflect() protoreflect.Message

func (*Tuple) Reset

func (x *Tuple) Reset()

func (*Tuple) String

func (x *Tuple) String() string

type Tuple_Between

type Tuple_Between struct {
	Between *Binary `protobuf:"bytes,6,opt,name=between,proto3,oneof"`
}

type Tuple_Contain

type Tuple_Contain struct {
	Contain *Unary `protobuf:"bytes,7,opt,name=contain,proto3,oneof"`
}

type Tuple_Eq

type Tuple_Eq struct {
	Eq *Unary `protobuf:"bytes,9,opt,name=eq,proto3,oneof"`
}

type Tuple_Exist

type Tuple_Exist struct {
	Exist *Unary `protobuf:"bytes,8,opt,name=exist,proto3,oneof"`
}

type Tuple_Ge

type Tuple_Ge struct {
	Ge *Unary `protobuf:"bytes,12,opt,name=ge,proto3,oneof"`
}

type Tuple_Gt

type Tuple_Gt struct {
	Gt *Unary `protobuf:"bytes,11,opt,name=gt,proto3,oneof"`
}

type Tuple_In

type Tuple_In struct {
	In *Unary `protobuf:"bytes,15,opt,name=in,proto3,oneof"`
}

type Tuple_Key

type Tuple_Key struct {
	Key *Unary `protobuf:"bytes,5,opt,name=key,proto3,oneof"`
}

type Tuple_Le

type Tuple_Le struct {
	Le *Unary `protobuf:"bytes,14,opt,name=le,proto3,oneof"`
}

type Tuple_Lt

type Tuple_Lt struct {
	Lt *Unary `protobuf:"bytes,13,opt,name=lt,proto3,oneof"`
}

type Tuple_Neq

type Tuple_Neq struct {
	Neq *Unary `protobuf:"bytes,10,opt,name=neq,proto3,oneof"`
}

type Tuple_Nested

type Tuple_Nested struct {
	Nested *Nested `protobuf:"bytes,3,opt,name=nested,proto3,oneof"`
}

type Tuple_Timeframe

type Tuple_Timeframe struct {
	Timeframe *Binary `protobuf:"bytes,4,opt,name=timeframe,proto3,oneof"`
}

type Unary

type Unary struct {
	First *Operand `protobuf:"bytes,1,opt,name=first,proto3" json:"first,omitempty"`
	// contains filtered or unexported fields
}

func (*Unary) Descriptor deprecated

func (*Unary) Descriptor() ([]byte, []int)

Deprecated: Use Unary.ProtoReflect.Descriptor instead.

func (*Unary) GetFirst

func (x *Unary) GetFirst() *Operand

func (*Unary) ProtoMessage

func (*Unary) ProtoMessage()

func (*Unary) ProtoReflect

func (x *Unary) ProtoReflect() protoreflect.Message

func (*Unary) Reset

func (x *Unary) Reset()

func (*Unary) String

func (x *Unary) String() string

Directories

Path Synopsis
gen

Jump to

Keyboard shortcuts

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