xast

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OperatorType_name = map[int32]string{
		0:  "Plus",
		1:  "Minus",
		2:  "Multiply",
		3:  "Divide",
		4:  "Modulus",
		5:  "Gt",
		6:  "Lt",
		7:  "GtEq",
		8:  "LtEq",
		9:  "Eq",
		10: "NotEq",
		11: "And",
		12: "Or",
		13: "Not",
		14: "Like",
		15: "NotLike",
		16: "None",
	}
	OperatorType_value = map[string]int32{
		"Plus":     0,
		"Minus":    1,
		"Multiply": 2,
		"Divide":   3,
		"Modulus":  4,
		"Gt":       5,
		"Lt":       6,
		"GtEq":     7,
		"LtEq":     8,
		"Eq":       9,
		"NotEq":    10,
		"And":      11,
		"Or":       12,
		"Not":      13,
		"Like":     14,
		"NotLike":  15,
		"None":     16,
	}
)

Enum value maps for OperatorType.

View Source
var (
	AggType_name = map[int32]string{
		0: "UnknownAgg",
		1: "MAX",
		2: "MIN",
		3: "COUNT",
		4: "SUM",
		5: "AVG",
	}
	AggType_value = map[string]int32{
		"UnknownAgg": 0,
		"MAX":        1,
		"MIN":        2,
		"COUNT":      3,
		"SUM":        4,
		"AVG":        5,
	}
)

Enum value maps for AggType.

View Source
var (
	SetOperatorType_name = map[int32]string{
		0: "Union",
		1: "Intersect",
		2: "Except",
	}
	SetOperatorType_value = map[string]int32{
		"Union":     0,
		"Intersect": 1,
		"Except":    2,
	}
)

Enum value maps for SetOperatorType.

View Source
var (
	JoinTypeCondition_name = map[int32]string{
		0: "INNER",
		1: "LEFT",
		2: "RIGHT",
		3: "FULL",
		4: "LEFTOUTER",
		5: "RIGHTOUTER",
		6: "FULLOUTER",
		7: "IMPLICIT",
	}
	JoinTypeCondition_value = map[string]int32{
		"INNER":      0,
		"LEFT":       1,
		"RIGHT":      2,
		"FULL":       3,
		"LEFTOUTER":  4,
		"RIGHTOUTER": 5,
		"FULLOUTER":  6,
		"IMPLICIT":   7,
	}
)

Enum value maps for JoinTypeCondition.

View Source
var File_proto_sqlast_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AggFunction

type AggFunction struct {
	TypeName AggType `protobuf:"varint,1,opt,name=TypeName,proto3,enum=sqlast.AggType" json:"TypeName,omitempty"`
	// starting from the second args. The first one is in FunctionField below
	RestArgs []*CompoundIdent `protobuf:"bytes,2,rep,name=RestArgs,proto3" json:"RestArgs,omitempty"`
	From     *Pos             `protobuf:"bytes,3,opt,name=From,proto3" json:"From,omitempty"`
	To       *Pos             `protobuf:"bytes,4,opt,name=To,proto3" json:"To,omitempty"`
	// contains filtered or unexported fields
}

func (*AggFunction) Descriptor deprecated

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

Deprecated: Use AggFunction.ProtoReflect.Descriptor instead.

func (*AggFunction) GetFrom

func (x *AggFunction) GetFrom() *Pos

func (*AggFunction) GetRestArgs

func (x *AggFunction) GetRestArgs() []*CompoundIdent

func (*AggFunction) GetTo

func (x *AggFunction) GetTo() *Pos

func (*AggFunction) GetTypeName

func (x *AggFunction) GetTypeName() AggType

func (*AggFunction) ProtoMessage

func (*AggFunction) ProtoMessage()

func (*AggFunction) ProtoReflect

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

func (*AggFunction) Reset

func (x *AggFunction) Reset()

func (*AggFunction) String

func (x *AggFunction) String() string

type AggType

type AggType int32
const (
	AggType_UnknownAgg AggType = 0
	AggType_MAX        AggType = 1
	AggType_MIN        AggType = 2
	AggType_COUNT      AggType = 3
	AggType_SUM        AggType = 4
	AggType_AVG        AggType = 5
)

func (AggType) Descriptor

func (AggType) Descriptor() protoreflect.EnumDescriptor

func (AggType) Enum

func (x AggType) Enum() *AggType

func (AggType) EnumDescriptor deprecated

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

Deprecated: Use AggType.Descriptor instead.

func (AggType) Number

func (x AggType) Number() protoreflect.EnumNumber

func (AggType) String

func (x AggType) String() string

func (AggType) Type

func (AggType) Type() protoreflect.EnumType

type CompoundIdent

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

func (*CompoundIdent) Descriptor deprecated

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

Deprecated: Use CompoundIdent.ProtoReflect.Descriptor instead.

func (*CompoundIdent) GetIdents

func (x *CompoundIdent) GetIdents() []*Ident

func (*CompoundIdent) ProtoMessage

func (*CompoundIdent) ProtoMessage()

func (*CompoundIdent) ProtoReflect

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

func (*CompoundIdent) Reset

func (x *CompoundIdent) Reset()

func (*CompoundIdent) String

func (x *CompoundIdent) String() string

type DoubleUnit

type DoubleUnit struct {
	Value float64 `protobuf:"fixed64,1,opt,name=Value,proto3" json:"Value,omitempty"`
	From  *Pos    `protobuf:"bytes,2,opt,name=From,proto3" json:"From,omitempty"`
	To    *Pos    `protobuf:"bytes,3,opt,name=To,proto3" json:"To,omitempty"`
	// contains filtered or unexported fields
}

func (*DoubleUnit) Descriptor deprecated

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

Deprecated: Use DoubleUnit.ProtoReflect.Descriptor instead.

func (*DoubleUnit) GetFrom

func (x *DoubleUnit) GetFrom() *Pos

func (*DoubleUnit) GetTo

func (x *DoubleUnit) GetTo() *Pos

func (*DoubleUnit) GetValue

func (x *DoubleUnit) GetValue() float64

func (*DoubleUnit) ProtoMessage

func (*DoubleUnit) ProtoMessage()

func (*DoubleUnit) ProtoReflect

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

func (*DoubleUnit) Reset

func (x *DoubleUnit) Reset()

func (*DoubleUnit) String

func (x *DoubleUnit) String() string

type Ident

type Ident struct {
	Value string `protobuf:"bytes,1,opt,name=Value,proto3" json:"Value,omitempty"`
	From  *Pos   `protobuf:"bytes,2,opt,name=From,proto3" json:"From,omitempty"`
	To    *Pos   `protobuf:"bytes,3,opt,name=To,proto3" json:"To,omitempty"`
	// contains filtered or unexported fields
}

func (*Ident) Descriptor deprecated

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

Deprecated: Use Ident.ProtoReflect.Descriptor instead.

func (*Ident) GetFrom

func (x *Ident) GetFrom() *Pos

func (*Ident) GetTo

func (x *Ident) GetTo() *Pos

func (*Ident) GetValue

func (x *Ident) GetValue() string

func (*Ident) ProtoMessage

func (*Ident) ProtoMessage()

func (*Ident) ProtoReflect

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

func (*Ident) Reset

func (x *Ident) Reset()

func (*Ident) String

func (x *Ident) String() string

type JoinType

type JoinType struct {
	Condition JoinTypeCondition `protobuf:"varint,1,opt,name=Condition,proto3,enum=sqlast.JoinTypeCondition" json:"Condition,omitempty"`
	From      *Pos              `protobuf:"bytes,2,opt,name=From,proto3" json:"From,omitempty"`
	To        *Pos              `protobuf:"bytes,3,opt,name=To,proto3" json:"To,omitempty"`
	// contains filtered or unexported fields
}

func (*JoinType) Descriptor deprecated

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

Deprecated: Use JoinType.ProtoReflect.Descriptor instead.

func (*JoinType) GetCondition

func (x *JoinType) GetCondition() JoinTypeCondition

func (*JoinType) GetFrom

func (x *JoinType) GetFrom() *Pos

func (*JoinType) GetTo

func (x *JoinType) GetTo() *Pos

func (*JoinType) ProtoMessage

func (*JoinType) ProtoMessage()

func (*JoinType) ProtoReflect

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

func (*JoinType) Reset

func (x *JoinType) Reset()

func (*JoinType) String

func (x *JoinType) String() string

type JoinTypeCondition

type JoinTypeCondition int32
const (
	JoinTypeCondition_INNER      JoinTypeCondition = 0
	JoinTypeCondition_LEFT       JoinTypeCondition = 1
	JoinTypeCondition_RIGHT      JoinTypeCondition = 2
	JoinTypeCondition_FULL       JoinTypeCondition = 3
	JoinTypeCondition_LEFTOUTER  JoinTypeCondition = 4
	JoinTypeCondition_RIGHTOUTER JoinTypeCondition = 5
	JoinTypeCondition_FULLOUTER  JoinTypeCondition = 6
	JoinTypeCondition_IMPLICIT   JoinTypeCondition = 7
)

func (JoinTypeCondition) Descriptor

func (JoinTypeCondition) Enum

func (JoinTypeCondition) EnumDescriptor deprecated

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

Deprecated: Use JoinTypeCondition.Descriptor instead.

func (JoinTypeCondition) Number

func (JoinTypeCondition) String

func (x JoinTypeCondition) String() string

func (JoinTypeCondition) Type

type LongUnit

type LongUnit struct {
	Value int64 `protobuf:"varint,1,opt,name=Value,proto3" json:"Value,omitempty"`
	From  *Pos  `protobuf:"bytes,2,opt,name=From,proto3" json:"From,omitempty"`
	To    *Pos  `protobuf:"bytes,3,opt,name=To,proto3" json:"To,omitempty"`
	// contains filtered or unexported fields
}

func (*LongUnit) Descriptor deprecated

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

Deprecated: Use LongUnit.ProtoReflect.Descriptor instead.

func (*LongUnit) GetFrom

func (x *LongUnit) GetFrom() *Pos

func (*LongUnit) GetTo

func (x *LongUnit) GetTo() *Pos

func (*LongUnit) GetValue

func (x *LongUnit) GetValue() int64

func (*LongUnit) ProtoMessage

func (*LongUnit) ProtoMessage()

func (*LongUnit) ProtoReflect

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

func (*LongUnit) Reset

func (x *LongUnit) Reset()

func (*LongUnit) String

func (x *LongUnit) String() string

type Operator

type Operator struct {
	Type OperatorType `protobuf:"varint,1,opt,name=Type,proto3,enum=sqlast.OperatorType" json:"Type,omitempty"`
	From *Pos         `protobuf:"bytes,2,opt,name=From,proto3" json:"From,omitempty"`
	To   *Pos         `protobuf:"bytes,3,opt,name=To,proto3" json:"To,omitempty"`
	// contains filtered or unexported fields
}

func (*Operator) Descriptor deprecated

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

Deprecated: Use Operator.ProtoReflect.Descriptor instead.

func (*Operator) GetFrom

func (x *Operator) GetFrom() *Pos

func (*Operator) GetTo

func (x *Operator) GetTo() *Pos

func (*Operator) GetType

func (x *Operator) GetType() OperatorType

func (*Operator) ProtoMessage

func (*Operator) ProtoMessage()

func (*Operator) ProtoReflect

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

func (*Operator) Reset

func (x *Operator) Reset()

func (*Operator) String

func (x *Operator) String() string

type OperatorType

type OperatorType int32
const (
	OperatorType_Plus     OperatorType = 0
	OperatorType_Minus    OperatorType = 1
	OperatorType_Multiply OperatorType = 2
	OperatorType_Divide   OperatorType = 3
	OperatorType_Modulus  OperatorType = 4
	OperatorType_Gt       OperatorType = 5
	OperatorType_Lt       OperatorType = 6
	OperatorType_GtEq     OperatorType = 7
	OperatorType_LtEq     OperatorType = 8
	OperatorType_Eq       OperatorType = 9
	OperatorType_NotEq    OperatorType = 10
	OperatorType_And      OperatorType = 11
	OperatorType_Or       OperatorType = 12
	OperatorType_Not      OperatorType = 13
	OperatorType_Like     OperatorType = 14
	OperatorType_NotLike  OperatorType = 15
	OperatorType_None     OperatorType = 16
)

func (OperatorType) Descriptor

func (OperatorType) Enum

func (x OperatorType) Enum() *OperatorType

func (OperatorType) EnumDescriptor deprecated

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

Deprecated: Use OperatorType.Descriptor instead.

func (OperatorType) Number

func (OperatorType) String

func (x OperatorType) String() string

func (OperatorType) Type

type Pos

type Pos struct {
	Line int32 `protobuf:"varint,1,opt,name=Line,proto3" json:"Line,omitempty"`
	Col  int32 `protobuf:"varint,2,opt,name=Col,proto3" json:"Col,omitempty"`
	// contains filtered or unexported fields
}

func (*Pos) Descriptor deprecated

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

Deprecated: Use Pos.ProtoReflect.Descriptor instead.

func (*Pos) GetCol

func (x *Pos) GetCol() int32

func (*Pos) GetLine

func (x *Pos) GetLine() int32

func (*Pos) ProtoMessage

func (*Pos) ProtoMessage()

func (*Pos) ProtoReflect

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

func (*Pos) Reset

func (x *Pos) Reset()

func (*Pos) String

func (x *Pos) String() string

type QueryStmt

type QueryStmt struct {
	With            *Pos                        `protobuf:"bytes,1,opt,name=With,proto3" json:"With,omitempty"`
	CTEs            []*QueryStmt_CTE            `protobuf:"bytes,2,rep,name=CTEs,proto3" json:"CTEs,omitempty"`
	Body            *QueryStmt_SetOperationExpr `protobuf:"bytes,4,opt,name=Body,proto3" json:"Body,omitempty"`
	OrderBy         []*QueryStmt_OrderByExpr    `protobuf:"bytes,5,rep,name=OrderBy,proto3" json:"OrderBy,omitempty"`
	LimitExpression *QueryStmt_LimitExpr        `protobuf:"bytes,6,opt,name=LimitExpression,proto3" json:"LimitExpression,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryStmt) Descriptor deprecated

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

Deprecated: Use QueryStmt.ProtoReflect.Descriptor instead.

func (*QueryStmt) GetBody

func (x *QueryStmt) GetBody() *QueryStmt_SetOperationExpr

func (*QueryStmt) GetCTEs

func (x *QueryStmt) GetCTEs() []*QueryStmt_CTE

func (*QueryStmt) GetLimitExpression

func (x *QueryStmt) GetLimitExpression() *QueryStmt_LimitExpr

func (*QueryStmt) GetOrderBy

func (x *QueryStmt) GetOrderBy() []*QueryStmt_OrderByExpr

func (*QueryStmt) GetWith

func (x *QueryStmt) GetWith() *Pos

func (*QueryStmt) ProtoMessage

func (*QueryStmt) ProtoMessage()

func (*QueryStmt) ProtoReflect

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

func (*QueryStmt) Reset

func (x *QueryStmt) Reset()

func (*QueryStmt) String

func (x *QueryStmt) String() string

type QueryStmt_BinaryExpr

type QueryStmt_BinaryExpr struct {

	// Types that are assignable to LeftOneOf:
	//	*QueryStmt_BinaryExpr_LeftIdents
	//	*QueryStmt_BinaryExpr_LeftBinary
	LeftOneOf isQueryStmt_BinaryExpr_LeftOneOf `protobuf_oneof:"LeftOneOf"`
	Op        *Operator                        `protobuf:"bytes,3,opt,name=Op,proto3" json:"Op,omitempty"`
	// Types that are assignable to RightOneOf:
	//	*QueryStmt_BinaryExpr_RightIdents
	//	*QueryStmt_BinaryExpr_RightBinary
	//	*QueryStmt_BinaryExpr_QueryValue
	//	*QueryStmt_BinaryExpr_SingleQuotedString
	//	*QueryStmt_BinaryExpr_DoubleValue
	//	*QueryStmt_BinaryExpr_LongValue
	RightOneOf isQueryStmt_BinaryExpr_RightOneOf `protobuf_oneof:"RightOneOf"`
	// contains filtered or unexported fields
}

func (*QueryStmt_BinaryExpr) Descriptor deprecated

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

Deprecated: Use QueryStmt_BinaryExpr.ProtoReflect.Descriptor instead.

func (*QueryStmt_BinaryExpr) GetDoubleValue

func (x *QueryStmt_BinaryExpr) GetDoubleValue() *DoubleUnit

func (*QueryStmt_BinaryExpr) GetLeftBinary

func (x *QueryStmt_BinaryExpr) GetLeftBinary() *QueryStmt_BinaryExpr

func (*QueryStmt_BinaryExpr) GetLeftIdents

func (x *QueryStmt_BinaryExpr) GetLeftIdents() *CompoundIdent

func (*QueryStmt_BinaryExpr) GetLeftOneOf

func (m *QueryStmt_BinaryExpr) GetLeftOneOf() isQueryStmt_BinaryExpr_LeftOneOf

func (*QueryStmt_BinaryExpr) GetLongValue

func (x *QueryStmt_BinaryExpr) GetLongValue() *LongUnit

func (*QueryStmt_BinaryExpr) GetOp

func (x *QueryStmt_BinaryExpr) GetOp() *Operator

func (*QueryStmt_BinaryExpr) GetQueryValue

func (x *QueryStmt_BinaryExpr) GetQueryValue() *QueryStmt_InSubQuery

func (*QueryStmt_BinaryExpr) GetRightBinary

func (x *QueryStmt_BinaryExpr) GetRightBinary() *QueryStmt_BinaryExpr

func (*QueryStmt_BinaryExpr) GetRightIdents

func (x *QueryStmt_BinaryExpr) GetRightIdents() *CompoundIdent

func (*QueryStmt_BinaryExpr) GetRightOneOf

func (m *QueryStmt_BinaryExpr) GetRightOneOf() isQueryStmt_BinaryExpr_RightOneOf

func (*QueryStmt_BinaryExpr) GetSingleQuotedString

func (x *QueryStmt_BinaryExpr) GetSingleQuotedString() *StringUnit

func (*QueryStmt_BinaryExpr) ProtoMessage

func (*QueryStmt_BinaryExpr) ProtoMessage()

func (*QueryStmt_BinaryExpr) ProtoReflect

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

func (*QueryStmt_BinaryExpr) Reset

func (x *QueryStmt_BinaryExpr) Reset()

func (*QueryStmt_BinaryExpr) String

func (x *QueryStmt_BinaryExpr) String() string

type QueryStmt_BinaryExpr_DoubleValue

type QueryStmt_BinaryExpr_DoubleValue struct {
	DoubleValue *DoubleUnit `protobuf:"bytes,8,opt,name=DoubleValue,proto3,oneof"`
}

type QueryStmt_BinaryExpr_LeftBinary

type QueryStmt_BinaryExpr_LeftBinary struct {
	LeftBinary *QueryStmt_BinaryExpr `protobuf:"bytes,2,opt,name=LeftBinary,proto3,oneof"`
}

type QueryStmt_BinaryExpr_LeftIdents

type QueryStmt_BinaryExpr_LeftIdents struct {
	LeftIdents *CompoundIdent `protobuf:"bytes,1,opt,name=LeftIdents,proto3,oneof"`
}

type QueryStmt_BinaryExpr_LongValue

type QueryStmt_BinaryExpr_LongValue struct {
	LongValue *LongUnit `protobuf:"bytes,9,opt,name=LongValue,proto3,oneof"`
}

type QueryStmt_BinaryExpr_QueryValue

type QueryStmt_BinaryExpr_QueryValue struct {
	QueryValue *QueryStmt_InSubQuery `protobuf:"bytes,6,opt,name=QueryValue,proto3,oneof"`
}

type QueryStmt_BinaryExpr_RightBinary

type QueryStmt_BinaryExpr_RightBinary struct {
	RightBinary *QueryStmt_BinaryExpr `protobuf:"bytes,5,opt,name=RightBinary,proto3,oneof"`
}

type QueryStmt_BinaryExpr_RightIdents

type QueryStmt_BinaryExpr_RightIdents struct {
	RightIdents *CompoundIdent `protobuf:"bytes,4,opt,name=RightIdents,proto3,oneof"`
}

type QueryStmt_BinaryExpr_SingleQuotedString

type QueryStmt_BinaryExpr_SingleQuotedString struct {
	SingleQuotedString *StringUnit `protobuf:"bytes,7,opt,name=SingleQuotedString,proto3,oneof"`
}

type QueryStmt_CTE

type QueryStmt_CTE struct {
	AliasName *Ident     `protobuf:"bytes,1,opt,name=AliasName,proto3" json:"AliasName,omitempty"`
	Query     *QueryStmt `protobuf:"bytes,2,opt,name=Query,proto3" json:"Query,omitempty"`
	RParen    *Pos       `protobuf:"bytes,3,opt,name=RParen,proto3" json:"RParen,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryStmt_CTE) Descriptor deprecated

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

Deprecated: Use QueryStmt_CTE.ProtoReflect.Descriptor instead.

func (*QueryStmt_CTE) GetAliasName

func (x *QueryStmt_CTE) GetAliasName() *Ident

func (*QueryStmt_CTE) GetQuery

func (x *QueryStmt_CTE) GetQuery() *QueryStmt

func (*QueryStmt_CTE) GetRParen

func (x *QueryStmt_CTE) GetRParen() *Pos

func (*QueryStmt_CTE) ProtoMessage

func (*QueryStmt_CTE) ProtoMessage()

func (*QueryStmt_CTE) ProtoReflect

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

func (*QueryStmt_CTE) Reset

func (x *QueryStmt_CTE) Reset()

func (*QueryStmt_CTE) String

func (x *QueryStmt_CTE) String() string

type QueryStmt_InSubQuery

type QueryStmt_InSubQuery struct {
	Expr     *CompoundIdent `protobuf:"bytes,1,opt,name=Expr,proto3" json:"Expr,omitempty"`
	SubQuery *QueryStmt     `protobuf:"bytes,2,opt,name=SubQuery,proto3" json:"SubQuery,omitempty"`
	Negated  bool           `protobuf:"varint,3,opt,name=Negated,proto3" json:"Negated,omitempty"`
	RParen   *Pos           `protobuf:"bytes,4,opt,name=RParen,proto3" json:"RParen,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryStmt_InSubQuery) Descriptor deprecated

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

Deprecated: Use QueryStmt_InSubQuery.ProtoReflect.Descriptor instead.

func (*QueryStmt_InSubQuery) GetExpr

func (x *QueryStmt_InSubQuery) GetExpr() *CompoundIdent

func (*QueryStmt_InSubQuery) GetNegated

func (x *QueryStmt_InSubQuery) GetNegated() bool

func (*QueryStmt_InSubQuery) GetRParen

func (x *QueryStmt_InSubQuery) GetRParen() *Pos

func (*QueryStmt_InSubQuery) GetSubQuery

func (x *QueryStmt_InSubQuery) GetSubQuery() *QueryStmt

func (*QueryStmt_InSubQuery) ProtoMessage

func (*QueryStmt_InSubQuery) ProtoMessage()

func (*QueryStmt_InSubQuery) ProtoReflect

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

func (*QueryStmt_InSubQuery) Reset

func (x *QueryStmt_InSubQuery) Reset()

func (*QueryStmt_InSubQuery) String

func (x *QueryStmt_InSubQuery) String() string

type QueryStmt_LimitExpr

type QueryStmt_LimitExpr struct {
	AllBool     bool      `protobuf:"varint,1,opt,name=AllBool,proto3" json:"AllBool,omitempty"`
	AllPos      *Pos      `protobuf:"bytes,2,opt,name=AllPos,proto3" json:"AllPos,omitempty"`
	Limit       *Pos      `protobuf:"bytes,3,opt,name=Limit,proto3" json:"Limit,omitempty"`
	LimitValue  *LongUnit `protobuf:"bytes,4,opt,name=LimitValue,proto3" json:"LimitValue,omitempty"`
	OffsetValue *LongUnit `protobuf:"bytes,5,opt,name=OffsetValue,proto3" json:"OffsetValue,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryStmt_LimitExpr) Descriptor deprecated

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

Deprecated: Use QueryStmt_LimitExpr.ProtoReflect.Descriptor instead.

func (*QueryStmt_LimitExpr) GetAllBool

func (x *QueryStmt_LimitExpr) GetAllBool() bool

func (*QueryStmt_LimitExpr) GetAllPos

func (x *QueryStmt_LimitExpr) GetAllPos() *Pos

func (*QueryStmt_LimitExpr) GetLimit

func (x *QueryStmt_LimitExpr) GetLimit() *Pos

func (*QueryStmt_LimitExpr) GetLimitValue

func (x *QueryStmt_LimitExpr) GetLimitValue() *LongUnit

func (*QueryStmt_LimitExpr) GetOffsetValue

func (x *QueryStmt_LimitExpr) GetOffsetValue() *LongUnit

func (*QueryStmt_LimitExpr) ProtoMessage

func (*QueryStmt_LimitExpr) ProtoMessage()

func (*QueryStmt_LimitExpr) ProtoReflect

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

func (*QueryStmt_LimitExpr) Reset

func (x *QueryStmt_LimitExpr) Reset()

func (*QueryStmt_LimitExpr) String

func (x *QueryStmt_LimitExpr) String() string

type QueryStmt_OrderByExpr

type QueryStmt_OrderByExpr struct {
	Expr        *CompoundIdent `protobuf:"bytes,1,opt,name=Expr,proto3" json:"Expr,omitempty"`
	OrderingPos *Pos           `protobuf:"bytes,2,opt,name=OrderingPos,proto3" json:"OrderingPos,omitempty"`
	ASCBool     bool           `protobuf:"varint,3,opt,name=ASCBool,proto3" json:"ASCBool,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryStmt_OrderByExpr) Descriptor deprecated

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

Deprecated: Use QueryStmt_OrderByExpr.ProtoReflect.Descriptor instead.

func (*QueryStmt_OrderByExpr) GetASCBool

func (x *QueryStmt_OrderByExpr) GetASCBool() bool

func (*QueryStmt_OrderByExpr) GetExpr

func (x *QueryStmt_OrderByExpr) GetExpr() *CompoundIdent

func (*QueryStmt_OrderByExpr) GetOrderingPos

func (x *QueryStmt_OrderByExpr) GetOrderingPos() *Pos

func (*QueryStmt_OrderByExpr) ProtoMessage

func (*QueryStmt_OrderByExpr) ProtoMessage()

func (*QueryStmt_OrderByExpr) ProtoReflect

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

func (*QueryStmt_OrderByExpr) Reset

func (x *QueryStmt_OrderByExpr) Reset()

func (*QueryStmt_OrderByExpr) String

func (x *QueryStmt_OrderByExpr) String() string

type QueryStmt_SQLSelect

type QueryStmt_SQLSelect struct {
	DistinctBool bool                                 `protobuf:"varint,1,opt,name=DistinctBool,proto3" json:"DistinctBool,omitempty"`
	Projection   []*QueryStmt_SQLSelect_SQLSelectItem `protobuf:"bytes,2,rep,name=Projection,proto3" json:"Projection,omitempty"`
	FromClause   []*QueryStmt_SQLSelect_QualifiedJoin `protobuf:"bytes,3,rep,name=FromClause,proto3" json:"FromClause,omitempty"`
	// Types that are assignable to WhereClause:
	//	*QueryStmt_SQLSelect_InQuery
	//	*QueryStmt_SQLSelect_BinExpr
	WhereClause   isQueryStmt_SQLSelect_WhereClause `protobuf_oneof:"WhereClause"`
	GroupByClause []*CompoundIdent                  `protobuf:"bytes,8,rep,name=GroupByClause,proto3" json:"GroupByClause,omitempty"`
	HavingClause  *QueryStmt_BinaryExpr             `protobuf:"bytes,9,opt,name=HavingClause,proto3" json:"HavingClause,omitempty"`
	Select        *Pos                              `protobuf:"bytes,10,opt,name=Select,proto3" json:"Select,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryStmt_SQLSelect) Descriptor deprecated

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

Deprecated: Use QueryStmt_SQLSelect.ProtoReflect.Descriptor instead.

func (*QueryStmt_SQLSelect) GetBinExpr

func (x *QueryStmt_SQLSelect) GetBinExpr() *QueryStmt_BinaryExpr

func (*QueryStmt_SQLSelect) GetDistinctBool

func (x *QueryStmt_SQLSelect) GetDistinctBool() bool

func (*QueryStmt_SQLSelect) GetFromClause

func (*QueryStmt_SQLSelect) GetGroupByClause

func (x *QueryStmt_SQLSelect) GetGroupByClause() []*CompoundIdent

func (*QueryStmt_SQLSelect) GetHavingClause

func (x *QueryStmt_SQLSelect) GetHavingClause() *QueryStmt_BinaryExpr

func (*QueryStmt_SQLSelect) GetInQuery

func (x *QueryStmt_SQLSelect) GetInQuery() *QueryStmt_InSubQuery

func (*QueryStmt_SQLSelect) GetProjection

func (*QueryStmt_SQLSelect) GetSelect

func (x *QueryStmt_SQLSelect) GetSelect() *Pos

func (*QueryStmt_SQLSelect) GetWhereClause

func (m *QueryStmt_SQLSelect) GetWhereClause() isQueryStmt_SQLSelect_WhereClause

func (*QueryStmt_SQLSelect) ProtoMessage

func (*QueryStmt_SQLSelect) ProtoMessage()

func (*QueryStmt_SQLSelect) ProtoReflect

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

func (*QueryStmt_SQLSelect) Reset

func (x *QueryStmt_SQLSelect) Reset()

func (*QueryStmt_SQLSelect) String

func (x *QueryStmt_SQLSelect) String() string

type QueryStmt_SQLSelect_BinExpr

type QueryStmt_SQLSelect_BinExpr struct {
	BinExpr *QueryStmt_BinaryExpr `protobuf:"bytes,5,opt,name=BinExpr,proto3,oneof"`
}

type QueryStmt_SQLSelect_InQuery

type QueryStmt_SQLSelect_InQuery struct {
	InQuery *QueryStmt_InSubQuery `protobuf:"bytes,4,opt,name=InQuery,proto3,oneof"`
}

type QueryStmt_SQLSelect_QualifiedJoin

type QueryStmt_SQLSelect_QualifiedJoin struct {
	Name          *CompoundIdent                                   `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	AliasName     *Ident                                           `protobuf:"bytes,2,opt,name=AliasName,proto3" json:"AliasName,omitempty"`
	LeftElement   *QueryStmt_SQLSelect_QualifiedJoin               `protobuf:"bytes,3,opt,name=LeftElement,proto3" json:"LeftElement,omitempty"`
	TypeCondition *JoinType                                        `protobuf:"bytes,4,opt,name=TypeCondition,proto3" json:"TypeCondition,omitempty"`
	Spec          *QueryStmt_SQLSelect_QualifiedJoin_JoinCondition `protobuf:"bytes,5,opt,name=Spec,proto3" json:"Spec,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryStmt_SQLSelect_QualifiedJoin) Descriptor deprecated

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

Deprecated: Use QueryStmt_SQLSelect_QualifiedJoin.ProtoReflect.Descriptor instead.

func (*QueryStmt_SQLSelect_QualifiedJoin) GetAliasName

func (x *QueryStmt_SQLSelect_QualifiedJoin) GetAliasName() *Ident

func (*QueryStmt_SQLSelect_QualifiedJoin) GetLeftElement

func (*QueryStmt_SQLSelect_QualifiedJoin) GetName

func (*QueryStmt_SQLSelect_QualifiedJoin) GetSpec

func (*QueryStmt_SQLSelect_QualifiedJoin) GetTypeCondition

func (x *QueryStmt_SQLSelect_QualifiedJoin) GetTypeCondition() *JoinType

func (*QueryStmt_SQLSelect_QualifiedJoin) ProtoMessage

func (*QueryStmt_SQLSelect_QualifiedJoin) ProtoMessage()

func (*QueryStmt_SQLSelect_QualifiedJoin) ProtoReflect

func (*QueryStmt_SQLSelect_QualifiedJoin) Reset

func (*QueryStmt_SQLSelect_QualifiedJoin) String

type QueryStmt_SQLSelect_QualifiedJoin_JoinCondition

type QueryStmt_SQLSelect_QualifiedJoin_JoinCondition struct {
	SearchCondition *QueryStmt_BinaryExpr `protobuf:"bytes,1,opt,name=SearchCondition,proto3" json:"SearchCondition,omitempty"`
	On              *Pos                  `protobuf:"bytes,2,opt,name=On,proto3" json:"On,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryStmt_SQLSelect_QualifiedJoin_JoinCondition) Descriptor deprecated

Deprecated: Use QueryStmt_SQLSelect_QualifiedJoin_JoinCondition.ProtoReflect.Descriptor instead.

func (*QueryStmt_SQLSelect_QualifiedJoin_JoinCondition) GetOn

func (*QueryStmt_SQLSelect_QualifiedJoin_JoinCondition) GetSearchCondition

func (*QueryStmt_SQLSelect_QualifiedJoin_JoinCondition) ProtoMessage

func (*QueryStmt_SQLSelect_QualifiedJoin_JoinCondition) ProtoReflect

func (*QueryStmt_SQLSelect_QualifiedJoin_JoinCondition) Reset

func (*QueryStmt_SQLSelect_QualifiedJoin_JoinCondition) String

type QueryStmt_SQLSelect_SQLSelectItem

type QueryStmt_SQLSelect_SQLSelectItem struct {
	FieldFunction *AggFunction   `protobuf:"bytes,1,opt,name=FieldFunction,proto3" json:"FieldFunction,omitempty"`
	FieldIdents   *CompoundIdent `protobuf:"bytes,2,opt,name=FieldIdents,proto3" json:"FieldIdents,omitempty"`
	AliasName     *Ident         `protobuf:"bytes,3,opt,name=AliasName,proto3" json:"AliasName,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryStmt_SQLSelect_SQLSelectItem) Descriptor deprecated

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

Deprecated: Use QueryStmt_SQLSelect_SQLSelectItem.ProtoReflect.Descriptor instead.

func (*QueryStmt_SQLSelect_SQLSelectItem) GetAliasName

func (x *QueryStmt_SQLSelect_SQLSelectItem) GetAliasName() *Ident

func (*QueryStmt_SQLSelect_SQLSelectItem) GetFieldFunction

func (x *QueryStmt_SQLSelect_SQLSelectItem) GetFieldFunction() *AggFunction

func (*QueryStmt_SQLSelect_SQLSelectItem) GetFieldIdents

func (x *QueryStmt_SQLSelect_SQLSelectItem) GetFieldIdents() *CompoundIdent

func (*QueryStmt_SQLSelect_SQLSelectItem) ProtoMessage

func (*QueryStmt_SQLSelect_SQLSelectItem) ProtoMessage()

func (*QueryStmt_SQLSelect_SQLSelectItem) ProtoReflect

func (*QueryStmt_SQLSelect_SQLSelectItem) Reset

func (*QueryStmt_SQLSelect_SQLSelectItem) String

type QueryStmt_SetOperationExpr

type QueryStmt_SetOperationExpr struct {
	LeftSide  *QueryStmt_SQLSelect        `protobuf:"bytes,1,opt,name=LeftSide,proto3" json:"LeftSide,omitempty"`
	AllBool   bool                        `protobuf:"varint,2,opt,name=AllBool,proto3" json:"AllBool,omitempty"`
	Op        *SetOperator                `protobuf:"bytes,3,opt,name=Op,proto3" json:"Op,omitempty"`
	RightSide *QueryStmt_SetOperationExpr `protobuf:"bytes,4,opt,name=RightSide,proto3" json:"RightSide,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryStmt_SetOperationExpr) Descriptor deprecated

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

Deprecated: Use QueryStmt_SetOperationExpr.ProtoReflect.Descriptor instead.

func (*QueryStmt_SetOperationExpr) GetAllBool

func (x *QueryStmt_SetOperationExpr) GetAllBool() bool

func (*QueryStmt_SetOperationExpr) GetLeftSide

func (*QueryStmt_SetOperationExpr) GetOp

func (*QueryStmt_SetOperationExpr) GetRightSide

func (*QueryStmt_SetOperationExpr) ProtoMessage

func (*QueryStmt_SetOperationExpr) ProtoMessage()

func (*QueryStmt_SetOperationExpr) ProtoReflect

func (*QueryStmt_SetOperationExpr) Reset

func (x *QueryStmt_SetOperationExpr) Reset()

func (*QueryStmt_SetOperationExpr) String

func (x *QueryStmt_SetOperationExpr) String() string

type SetOperator

type SetOperator struct {
	Type SetOperatorType `protobuf:"varint,1,opt,name=Type,proto3,enum=sqlast.SetOperatorType" json:"Type,omitempty"`
	From *Pos            `protobuf:"bytes,2,opt,name=From,proto3" json:"From,omitempty"`
	To   *Pos            `protobuf:"bytes,3,opt,name=To,proto3" json:"To,omitempty"`
	// contains filtered or unexported fields
}

func (*SetOperator) Descriptor deprecated

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

Deprecated: Use SetOperator.ProtoReflect.Descriptor instead.

func (*SetOperator) GetFrom

func (x *SetOperator) GetFrom() *Pos

func (*SetOperator) GetTo

func (x *SetOperator) GetTo() *Pos

func (*SetOperator) GetType

func (x *SetOperator) GetType() SetOperatorType

func (*SetOperator) ProtoMessage

func (*SetOperator) ProtoMessage()

func (*SetOperator) ProtoReflect

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

func (*SetOperator) Reset

func (x *SetOperator) Reset()

func (*SetOperator) String

func (x *SetOperator) String() string

type SetOperatorType

type SetOperatorType int32
const (
	SetOperatorType_Union     SetOperatorType = 0
	SetOperatorType_Intersect SetOperatorType = 1
	SetOperatorType_Except    SetOperatorType = 2
)

func (SetOperatorType) Descriptor

func (SetOperatorType) Enum

func (x SetOperatorType) Enum() *SetOperatorType

func (SetOperatorType) EnumDescriptor deprecated

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

Deprecated: Use SetOperatorType.Descriptor instead.

func (SetOperatorType) Number

func (SetOperatorType) String

func (x SetOperatorType) String() string

func (SetOperatorType) Type

type StringUnit

type StringUnit struct {
	Value string `protobuf:"bytes,1,opt,name=Value,proto3" json:"Value,omitempty"`
	From  *Pos   `protobuf:"bytes,2,opt,name=From,proto3" json:"From,omitempty"`
	To    *Pos   `protobuf:"bytes,3,opt,name=To,proto3" json:"To,omitempty"`
	// contains filtered or unexported fields
}

func (*StringUnit) Descriptor deprecated

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

Deprecated: Use StringUnit.ProtoReflect.Descriptor instead.

func (*StringUnit) GetFrom

func (x *StringUnit) GetFrom() *Pos

func (*StringUnit) GetTo

func (x *StringUnit) GetTo() *Pos

func (*StringUnit) GetValue

func (x *StringUnit) GetValue() string

func (*StringUnit) ProtoMessage

func (*StringUnit) ProtoMessage()

func (*StringUnit) ProtoReflect

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

func (*StringUnit) Reset

func (x *StringUnit) Reset()

func (*StringUnit) String

func (x *StringUnit) String() string

Jump to

Keyboard shortcuts

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