sqlast

package
v1.0.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Code generated by genmark. DO NOT EDIT.

Code generated by genmark. DO NOT EDIT.

Code generated by genmark. DO NOT EDIT.

Code generated by genmark. DO NOT EDIT.

Code generated by genmark. DO NOT EDIT.

Code generated by genmark. DO NOT EDIT.

Code generated by genmark. DO NOT EDIT.

Code generated by genmark. DO NOT EDIT.

Code generated by genmark. DO NOT EDIT.

Code generated by genmark. DO NOT EDIT.

Code generated by genmark. DO NOT EDIT.

Code generated by genmark. DO NOT EDIT.

Code generated by genmark. DO NOT EDIT.

Code generated by genmark. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Inspect

func Inspect(node Node, f func(node Node) bool)

func NewSize

func NewSize(s uint) *uint

func Walk

func Walk(v Visitor, node Node)

Types

type AddColumnTableAction

type AddColumnTableAction struct {
	Column *ColumnDef
	// contains filtered or unexported fields
}

func (*AddColumnTableAction) ToSQLString

func (a *AddColumnTableAction) ToSQLString() string

type AddConstraintTableAction

type AddConstraintTableAction struct {
	Constraint *TableConstraint
	// contains filtered or unexported fields
}

func (*AddConstraintTableAction) ToSQLString

func (a *AddConstraintTableAction) ToSQLString() string

type AliasSelectItem

type AliasSelectItem struct {
	Expr  Node
	Alias *Ident
	// contains filtered or unexported fields
}

func (*AliasSelectItem) ToSQLString

func (e *AliasSelectItem) ToSQLString() string

type AlterColumnAction

type AlterColumnAction interface {
	Node
	// contains filtered or unexported methods
}

type AlterColumnTableAction

type AlterColumnTableAction struct {
	ColumnName *Ident
	Action     AlterColumnAction
	// contains filtered or unexported fields
}

func (*AlterColumnTableAction) ToSQLString

func (a *AlterColumnTableAction) ToSQLString() string

type AlterTableAction

type AlterTableAction interface {
	Node
	// contains filtered or unexported methods
}

type AlterTableStmt

type AlterTableStmt struct {
	TableName *ObjectName
	Action    AlterTableAction
	// contains filtered or unexported fields
}

func (*AlterTableStmt) ToSQLString

func (s *AlterTableStmt) ToSQLString() string

type Array

type Array struct {
	Ty Type
}

func (*Array) ToSQLString

func (a *Array) ToSQLString() string

type Assignment

type Assignment struct {
	ID    *Ident
	Value Node
}

func (*Assignment) ToSQLString

func (s *Assignment) ToSQLString() string

type Between

type Between struct {
	Expr    Node
	Negated bool
	Low     Node
	High    Node
}

func (*Between) ToSQLString

func (s *Between) ToSQLString() string

type BigInt

type BigInt struct{}

func (*BigInt) ToSQLString

func (b *BigInt) ToSQLString() string

type Binary

type Binary struct {
	Size uint
}

func (*Binary) ToSQLString

func (b *Binary) ToSQLString() string

type BinaryExpr

type BinaryExpr struct {
	Left  Node
	Op    Operator
	Right Node
}

func (*BinaryExpr) ToSQLString

func (s *BinaryExpr) ToSQLString() string

type Blob

type Blob struct {
	Size uint
}

func (*Blob) ToSQLString

func (b *Blob) ToSQLString() string

type Boolean

type Boolean struct{}

func (*Boolean) ToSQLString

func (*Boolean) ToSQLString() string

type BooleanValue

type BooleanValue bool

func NewBooleanValue

func NewBooleanValue(b bool) *BooleanValue

func (*BooleanValue) ToSQLString

func (b *BooleanValue) ToSQLString() string

func (*BooleanValue) Value

func (b *BooleanValue) Value() interface{}

type Bytea

type Bytea struct{}

func (*Bytea) ToSQLString

func (*Bytea) ToSQLString() string

type CTE

type CTE struct {
	Alias *Ident
	Query *Query
}

func (*CTE) ToSQLString

func (c *CTE) ToSQLString() string

type CaseExpr

type CaseExpr struct {
	Operand    Node
	Conditions []Node
	Results    []Node
	ElseResult Node
}

func (*CaseExpr) ToSQLString

func (s *CaseExpr) ToSQLString() string

type Cast

type Cast struct {
	Expr     Node
	DateType Type
}

func (*Cast) ToSQLString

func (s *Cast) ToSQLString() string

type CharType

type CharType struct {
	Size *uint
}

func (*CharType) ToSQLString

func (c *CharType) ToSQLString() string

type CheckColumnSpec

type CheckColumnSpec struct {
	Expr Node
}

func (*CheckColumnSpec) ToSQLString

func (c *CheckColumnSpec) ToSQLString() string

type CheckTableConstraint

type CheckTableConstraint struct {
	Expr Node
	// contains filtered or unexported fields
}

func (*CheckTableConstraint) ToSQLString

func (c *CheckTableConstraint) ToSQLString() string

type Clob

type Clob struct {
	Size uint
}

func (*Clob) ToSQLString

func (c *Clob) ToSQLString() string

type ColumnConstraint

type ColumnConstraint struct {
	Name *Ident
	Spec ColumnConstraintSpec
}

func (*ColumnConstraint) ToSQLString

func (c *ColumnConstraint) ToSQLString() string

type ColumnDef

type ColumnDef struct {
	Name        *Ident
	DataType    Type
	Default     Node
	Constraints []*ColumnConstraint
	// contains filtered or unexported fields
}

func (*ColumnDef) ToSQLString

func (s *ColumnDef) ToSQLString() string

type CompoundIdent

type CompoundIdent struct {
	Idents []*Ident
}

table.column / schema.table.column

func (*CompoundIdent) ToSQLString

func (s *CompoundIdent) ToSQLString() string

type ConstructorSource

type ConstructorSource struct {
	Rows []*RowValueExpr
	// contains filtered or unexported fields
}

func (*ConstructorSource) ToSQLString

func (c *ConstructorSource) ToSQLString() string

type CopyStmt

type CopyStmt struct {
	TableName *ObjectName
	Columns   []*Ident
	Values    []*string
	// contains filtered or unexported fields
}

func (*CopyStmt) ToSQLString

func (s *CopyStmt) ToSQLString() string

type CreateIndexStmt

type CreateIndexStmt struct {
	TableName   *ObjectName
	IsUnique    bool
	IndexName   *Ident
	MethodName  *Ident
	ColumnNames []*Ident
	Selection   Node
	// contains filtered or unexported fields
}

func (*CreateIndexStmt) ToSQLString

func (s *CreateIndexStmt) ToSQLString() string

type CreateTableStmt

type CreateTableStmt struct {
	Name       *ObjectName
	Elements   []TableElement
	External   bool
	FileFormat *FileFormat
	Location   *string
	NotExists  bool
	// contains filtered or unexported fields
}

func (*CreateTableStmt) ToSQLString

func (s *CreateTableStmt) ToSQLString() string

type CreateViewStmt

type CreateViewStmt struct {
	Name         *ObjectName
	Query        *Query
	Materialized bool
	// contains filtered or unexported fields
}

func (*CreateViewStmt) ToSQLString

func (s *CreateViewStmt) ToSQLString() string

type CrossJoin

type CrossJoin struct {
	Reference TableReference
	Factor    TableFactor
	// contains filtered or unexported fields
}

func (*CrossJoin) ToSQLString

func (c *CrossJoin) ToSQLString() string

type CurrentRow

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

func (*CurrentRow) ToSQLString

func (*CurrentRow) ToSQLString() string

type Custom

type Custom struct {
	Ty *ObjectName
}

func (*Custom) ToSQLString

func (c *Custom) ToSQLString() string

type Date

type Date struct{}

func (*Date) ToSQLString

func (*Date) ToSQLString() string

type DateTimeValue

type DateTimeValue time.Time

func NewDateTimeValue

func NewDateTimeValue(t time.Time) *DateTimeValue

func (*DateTimeValue) ToSQLString

func (d *DateTimeValue) ToSQLString() string

func (*DateTimeValue) Value

func (d *DateTimeValue) Value() interface{}

type DateValue

type DateValue time.Time

func (*DateValue) ToSQLString

func (d *DateValue) ToSQLString() string

func (*DateValue) Value

func (d *DateValue) Value() interface{}

type Decimal

type Decimal struct {
	Precision *uint
	Scale     *uint
}

func (*Decimal) ToSQLString

func (d *Decimal) ToSQLString() string

type DeleteStmt

type DeleteStmt struct {
	TableName *ObjectName
	Selection Node
	// contains filtered or unexported fields
}

func (*DeleteStmt) ToSQLString

func (s *DeleteStmt) ToSQLString() string

type Derived

type Derived struct {
	Lateral  bool
	SubQuery *Query
	Alias    *Ident
	// contains filtered or unexported fields
}

func (*Derived) ToSQLString

func (d *Derived) ToSQLString() string

type Double

type Double struct{}

func (*Double) ToSQLString

func (*Double) ToSQLString() string

type DoubleValue

type DoubleValue float64

func NewDoubleValue

func NewDoubleValue(f float64) *DoubleValue

func (*DoubleValue) ToSQLString

func (d *DoubleValue) ToSQLString() string

func (*DoubleValue) Value

func (d *DoubleValue) Value() interface{}

type DropConstraintTableAction

type DropConstraintTableAction struct {
	Name    *Ident
	Cascade bool
	// contains filtered or unexported fields
}

func (*DropConstraintTableAction) ToSQLString

func (d *DropConstraintTableAction) ToSQLString() string

type DropDefaultColumnAction

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

func (*DropDefaultColumnAction) ToSQLString

func (*DropDefaultColumnAction) ToSQLString() string

type DropIndexStmt

type DropIndexStmt struct {
	IndexNames []*Ident
	// contains filtered or unexported fields
}

func (*DropIndexStmt) ToSQLString

func (s *DropIndexStmt) ToSQLString() string

type DropTableStmt

type DropTableStmt struct {
	TableNames []*ObjectName
	Cascade    bool
	IfExists   bool
	// contains filtered or unexported fields
}

func (*DropTableStmt) ToSQLString

func (s *DropTableStmt) ToSQLString() string

type ExceptOperator

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

func (ExceptOperator) ToSQLString

func (ExceptOperator) ToSQLString() string

type Exists

type Exists struct {
	Negated bool
	Query   *Query
}

func (*Exists) ToSQLString

func (s *Exists) ToSQLString() string

type ExplainStmt

type ExplainStmt struct {
	Stmt Stmt
	// contains filtered or unexported fields
}

func (*ExplainStmt) ToSQLString

func (s *ExplainStmt) ToSQLString() string

type FileFormat

type FileFormat int
const (
	TEXTFILE FileFormat = iota
	SEQUENCEFILE
	ORC
	PARQUET
	AVRO
	RCFILE
	JSONFILE
)

func (FileFormat) FromStr

func (FileFormat) FromStr(str string) FileFormat

func (*FileFormat) ToSQLString

func (f *FileFormat) ToSQLString() string

type Float

type Float struct {
	Size *uint
}

func (*Float) ToSQLString

func (f *Float) ToSQLString() string

type Following

type Following struct {
	Bound *uint64
	// contains filtered or unexported fields
}

func (*Following) ToSQLString

func (f *Following) ToSQLString() string

type Function

type Function struct {
	Name *ObjectName
	Args []Node
	Over *WindowSpec
}

func (*Function) ToSQLString

func (s *Function) ToSQLString() string

type Ident

type Ident string

func NewIdent

func NewIdent(str string) *Ident

func (*Ident) ToSQLString

func (s *Ident) ToSQLString() string

type InList

type InList struct {
	Expr    Node
	List    []Node
	Negated bool
}

func (*InList) ToSQLString

func (s *InList) ToSQLString() string

type InSubQuery

type InSubQuery struct {
	Expr     Node
	SubQuery *Query
	Negated  bool
}

[ NOT ] IN (SELECT ...)

func (*InSubQuery) ToSQLString

func (s *InSubQuery) ToSQLString() string

type InsertSource

type InsertSource interface {
	Node
	// contains filtered or unexported methods
}

type InsertStmt

type InsertStmt struct {
	TableName         *ObjectName
	Columns           []*Ident
	Source            InsertSource
	UpdateAssignments []*Assignment // MySQL only (ON DUPLICATED KEYS)
	// contains filtered or unexported fields
}

func (*InsertStmt) ToSQLString

func (s *InsertStmt) ToSQLString() string

type Int

type Int struct{}

func (*Int) ToSQLString

func (i *Int) ToSQLString() string

type IntersectOperator

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

func (IntersectOperator) ToSQLString

func (IntersectOperator) ToSQLString() string

type IsNotNull

type IsNotNull struct {
	X Node
}

func (*IsNotNull) ToSQLString

func (s *IsNotNull) ToSQLString() string

type IsNull

type IsNull struct {
	X Node
}

func (*IsNull) ToSQLString

func (s *IsNull) ToSQLString() string

type JoinCondition

type JoinCondition struct {
	SearchCondition Node
	// contains filtered or unexported fields
}

func (*JoinCondition) ToSQLString

func (j *JoinCondition) ToSQLString() string

type JoinElement

type JoinElement interface {
	Node
	// contains filtered or unexported methods
}

type JoinSpec

type JoinSpec interface {
	Node
	// contains filtered or unexported methods
}

type JoinType

type JoinType int
const (
	INNER JoinType = iota
	LEFT
	RIGHT
	FULL
	LEFTOUTER
	RIGHTOUTER
	FULLOUTER
	IMPLICIT
)

func (JoinType) ToSQLString

func (j JoinType) ToSQLString() string

type LimitExpr

type LimitExpr struct {
	All         bool
	LimitValue  *LongValue
	OffsetValue *LongValue
}

func (*LimitExpr) ToSQLString

func (l *LimitExpr) ToSQLString() string

type LongValue

type LongValue int64

func NewLongValue

func NewLongValue(i int64) *LongValue

func (*LongValue) ToSQLString

func (l *LongValue) ToSQLString() string

func (*LongValue) Value

func (l *LongValue) Value() interface{}

type NamedColumnsJoin

type NamedColumnsJoin struct {
	ColumnList []*Ident
	// contains filtered or unexported fields
}

func (*NamedColumnsJoin) ToSQLString

func (n *NamedColumnsJoin) ToSQLString() string

type NationalStringLiteral

type NationalStringLiteral string

func NewNationalStringLiteral

func NewNationalStringLiteral(str string) *NationalStringLiteral

func (*NationalStringLiteral) ToSQLString

func (n *NationalStringLiteral) ToSQLString() string

func (*NationalStringLiteral) Value

func (n *NationalStringLiteral) Value() interface{}

type NaturalJoin

type NaturalJoin struct {
	LeftElement  *TableJoinElement
	Type         JoinType
	RightElement *TableJoinElement
	// contains filtered or unexported fields
}

func (*NaturalJoin) ToSQLString

func (n *NaturalJoin) ToSQLString() string

type Nested

type Nested struct {
	AST Node
}

func (*Nested) ToSQLString

func (s *Nested) ToSQLString() string

type Node

type Node interface {
	ToSQLString() string
}

type NotNullColumnSpec

type NotNullColumnSpec struct {
}

func (*NotNullColumnSpec) ToSQLString

func (*NotNullColumnSpec) ToSQLString() string

type NullValue

type NullValue struct{}

func NewNullValue

func NewNullValue() *NullValue

func (*NullValue) ToSQLString

func (n *NullValue) ToSQLString() string

func (*NullValue) Value

func (n *NullValue) Value() interface{}

type ObjectName

type ObjectName struct {
	Idents []*Ident
}

func NewObjectName

func NewObjectName(strs ...string) *ObjectName

func (*ObjectName) ToSQLString

func (s *ObjectName) ToSQLString() string

type Operator

type Operator int
const (
	Plus Operator = iota
	Minus
	Multiply
	Divide
	Modulus
	Gt
	Lt
	GtEq
	LtEq
	Eq
	NotEq
	And
	Or
	Not
	Like
	NotLike
	None
)

func (Operator) ToSQLString

func (s Operator) ToSQLString() string

type OrderByExpr

type OrderByExpr struct {
	Expr Node
	ASC  *bool
}

func (*OrderByExpr) ToSQLString

func (s *OrderByExpr) ToSQLString() string

type PGAlterDataTypeColumnAction

type PGAlterDataTypeColumnAction struct {
	DataType Type
	// contains filtered or unexported fields
}

postgres only

func (*PGAlterDataTypeColumnAction) ToSQLString

func (p *PGAlterDataTypeColumnAction) ToSQLString() string

type PGDropNotNullColumnAction

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

func (*PGDropNotNullColumnAction) ToSQLString

func (p *PGDropNotNullColumnAction) ToSQLString() string

type PGSetNotNullColumnAction

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

func (*PGSetNotNullColumnAction) ToSQLString

func (p *PGSetNotNullColumnAction) ToSQLString() string

type PartitionedJoinTable

type PartitionedJoinTable struct {
	Factor     TableFactor
	ColumnList []*Ident
	// contains filtered or unexported fields
}

func (*PartitionedJoinTable) ToSQLString

func (p *PartitionedJoinTable) ToSQLString() string

type Preceding

type Preceding struct {
	Bound *uint64
	// contains filtered or unexported fields
}

func (*Preceding) ToSQLString

func (p *Preceding) ToSQLString() string

type QualifiedJoin

type QualifiedJoin struct {
	LeftElement  *TableJoinElement
	Type         JoinType
	RightElement *TableJoinElement
	Spec         JoinSpec
	// contains filtered or unexported fields
}

func (*QualifiedJoin) ToSQLString

func (q *QualifiedJoin) ToSQLString() string

type QualifiedWildcard

type QualifiedWildcard struct {
	Idents []*Ident
}

table.*, schema.table.*

func (*QualifiedWildcard) ToSQLString

func (s *QualifiedWildcard) ToSQLString() string

type QualifiedWildcardSelectItem

type QualifiedWildcardSelectItem struct {
	Prefix *ObjectName
	// contains filtered or unexported fields
}

schema.*

func (*QualifiedWildcardSelectItem) ToSQLString

func (q *QualifiedWildcardSelectItem) ToSQLString() string

type Query

type Query struct {
	CTEs    []*CTE
	Body    SQLSetExpr
	OrderBy []*OrderByExpr
	Limit   *LimitExpr
	// contains filtered or unexported fields
}

func (*Query) ToSQLString

func (s *Query) ToSQLString() string

type QueryExpr

type QueryExpr struct {
	Query *Query
	// contains filtered or unexported fields
}

func (*QueryExpr) ToSQLString

func (q *QueryExpr) ToSQLString() string

type Real

type Real struct {
}

func (*Real) ToSQLString

func (*Real) ToSQLString() string

type ReferenceKeyExpr

type ReferenceKeyExpr struct {
	TableName *Ident
	Columns   []*Ident
}

func (*ReferenceKeyExpr) ToSQLString

func (r *ReferenceKeyExpr) ToSQLString() string

type ReferencesColumnSpec

type ReferencesColumnSpec struct {
	TableName *ObjectName
	Columns   []*Ident
}

func (*ReferencesColumnSpec) ToSQLString

func (r *ReferencesColumnSpec) ToSQLString() string

type ReferentialTableConstraint

type ReferentialTableConstraint struct {
	Columns []*Ident
	KeyExpr *ReferenceKeyExpr
	// contains filtered or unexported fields
}

func (*ReferentialTableConstraint) ToSQLString

func (r *ReferentialTableConstraint) ToSQLString() string

type Regclass

type Regclass struct{}

func (*Regclass) ToSQLString

func (*Regclass) ToSQLString() string

type RemoveColumnTableAction

type RemoveColumnTableAction struct {
	Name    *Ident
	Cascade bool
	// contains filtered or unexported fields
}

func (*RemoveColumnTableAction) ToSQLString

func (r *RemoveColumnTableAction) ToSQLString() string

type RowValueExpr

type RowValueExpr struct {
	Values []Node
}

func (*RowValueExpr) ToSQLString

func (r *RowValueExpr) ToSQLString() string

type SQLSelect

type SQLSelect struct {
	Distinct      bool
	Projection    []SQLSelectItem
	FromClause    []TableReference
	WhereClause   Node
	GroupByClause []Node
	HavingClause  Node
	// contains filtered or unexported fields
}

func (*SQLSelect) ToSQLString

func (s *SQLSelect) ToSQLString() string

type SQLSelectItem

type SQLSelectItem interface {
	Node
	// contains filtered or unexported methods
}

type SQLSetExpr

type SQLSetExpr interface {
	Node
	// contains filtered or unexported methods
}

type SQLSetOperator

type SQLSetOperator interface {
	Node
	// contains filtered or unexported methods
}

type SQLWindowFrameBound

type SQLWindowFrameBound interface {
	Node
	// contains filtered or unexported methods
}

type SelectExpr

type SelectExpr struct {
	Select *SQLSelect
	// contains filtered or unexported fields
}

func (*SelectExpr) ToSQLString

func (s *SelectExpr) ToSQLString() string

type SetDefaultColumnAction

type SetDefaultColumnAction struct {
	Default Node
	// contains filtered or unexported fields
}

func (*SetDefaultColumnAction) ToSQLString

func (s *SetDefaultColumnAction) ToSQLString() string

type SetOperationExpr

type SetOperationExpr struct {
	Op    SQLSetOperator
	All   bool
	Left  SQLSetExpr
	Right SQLSetExpr
	// contains filtered or unexported fields
}

func (*SetOperationExpr) ToSQLString

func (s *SetOperationExpr) ToSQLString() string

type SingleQuotedString

type SingleQuotedString string

func NewSingleQuotedString

func NewSingleQuotedString(str string) *SingleQuotedString

func (*SingleQuotedString) ToSQLString

func (s *SingleQuotedString) ToSQLString() string

func (*SingleQuotedString) Value

func (s *SingleQuotedString) Value() interface{}

type SmallInt

type SmallInt struct {
}

func (*SmallInt) ToSQLString

func (s *SmallInt) ToSQLString() string

type Stmt

type Stmt interface {
	Node
	// contains filtered or unexported methods
}

type SubQuery

type SubQuery struct {
	Query *Query
}

func (*SubQuery) ToSQLString

func (s *SubQuery) ToSQLString() string

type SubQuerySource

type SubQuerySource struct {
	SubQuery *Query
	// contains filtered or unexported fields
}

func (*SubQuerySource) ToSQLString

func (s *SubQuerySource) ToSQLString() string

type Table

type Table struct {
	Name      *ObjectName
	Alias     *Ident
	Args      []Node
	WithHints []Node
	// contains filtered or unexported fields
}

func (*Table) ToSQLString

func (t *Table) ToSQLString() string

type TableConstraint

type TableConstraint struct {
	Name *Ident
	Spec TableConstraintSpec
	// contains filtered or unexported fields
}

func (*TableConstraint) ToSQLString

func (t *TableConstraint) ToSQLString() string

type TableConstraintSpec

type TableConstraintSpec interface {
	Node
	// contains filtered or unexported methods
}

type TableElement

type TableElement interface {
	Node
	// contains filtered or unexported methods
}

type TableFactor

type TableFactor interface {
	TableReference
	// contains filtered or unexported methods
}

type TableJoinElement

type TableJoinElement struct {
	Ref TableReference
	// contains filtered or unexported fields
}

func (*TableJoinElement) ToSQLString

func (t *TableJoinElement) ToSQLString() string

type TableReference

type TableReference interface {
	Node
	// contains filtered or unexported methods
}

type Text

type Text struct{}

func (*Text) ToSQLString

func (*Text) ToSQLString() string

type Time

type Time struct{}

func (*Time) ToSQLString

func (*Time) ToSQLString() string

type TimeValue

type TimeValue time.Time

func NewTimeValue

func NewTimeValue(t time.Time) *TimeValue

func (*TimeValue) ToSQLString

func (t *TimeValue) ToSQLString() string

func (*TimeValue) Value

func (t *TimeValue) Value() interface{}

type Timestamp

type Timestamp struct {
	WithTimeZone bool
}

func (*Timestamp) ToSQLString

func (t *Timestamp) ToSQLString() string

type TimestampValue

type TimestampValue time.Time

func NewTimestampValue

func NewTimestampValue(t time.Time) *TimestampValue

func (*TimestampValue) ToSQLString

func (t *TimestampValue) ToSQLString() string

func (*TimestampValue) Value

func (t *TimestampValue) Value() interface{}

type Type

type Type interface {
	Node
}

type UUID

type UUID struct {
}

func (*UUID) ToSQLString

func (*UUID) ToSQLString() string

type Unary

type Unary struct {
	Operator Operator
	Expr     Node
}

func (*Unary) ToSQLString

func (s *Unary) ToSQLString() string

type UnboundedFollowing

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

func (*UnboundedFollowing) ToSQLString

func (*UnboundedFollowing) ToSQLString() string

type UnboundedPreceding

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

func (*UnboundedPreceding) ToSQLString

func (*UnboundedPreceding) ToSQLString() string

type UnionOperator

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

func (UnionOperator) ToSQLString

func (UnionOperator) ToSQLString() string

type UniqueColumnSpec

type UniqueColumnSpec struct {
	IsPrimaryKey bool
}

func (*UniqueColumnSpec) ToSQLString

func (u *UniqueColumnSpec) ToSQLString() string

type UniqueTableConstraint

type UniqueTableConstraint struct {
	IsPrimary bool
	Columns   []*Ident
	// contains filtered or unexported fields
}

func (*UniqueTableConstraint) ToSQLString

func (u *UniqueTableConstraint) ToSQLString() string

type UnnamedSelectItem

type UnnamedSelectItem struct {
	Node Node
	// contains filtered or unexported fields
}

func (*UnnamedSelectItem) ToSQLString

func (u *UnnamedSelectItem) ToSQLString() string

type UpdateStmt

type UpdateStmt struct {
	TableName   *ObjectName
	Assignments []*Assignment
	Selection   Node
	// contains filtered or unexported fields
}

func (*UpdateStmt) ToSQLString

func (s *UpdateStmt) ToSQLString() string

type Value

type Value interface {
	Value() interface{}
	Node
}

type Varbinary

type Varbinary struct {
	Size uint
}

func (*Varbinary) ToSQLString

func (v *Varbinary) ToSQLString() string

type VarcharType

type VarcharType struct {
	Size *uint
}

func (*VarcharType) ToSQLString

func (v *VarcharType) ToSQLString() string

type Visitor

type Visitor interface {
	Visit(node Node) Visitor
}

type Wildcard

type Wildcard struct{}

*

func (Wildcard) ToSQLString

func (s Wildcard) ToSQLString() string

type WildcardSelectItem

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

func (*WildcardSelectItem) ToSQLString

func (w *WildcardSelectItem) ToSQLString() string

type WindowFrame

type WindowFrame struct {
	Units      WindowFrameUnits
	StartBound SQLWindowFrameBound
	EndBound   SQLWindowFrameBound
}

func (*WindowFrame) ToSQLString

func (s *WindowFrame) ToSQLString() string

type WindowFrameUnits

type WindowFrameUnits int
const (
	RowsUnit WindowFrameUnits = iota
	RangeUnit
	GroupsUnit
)

func (WindowFrameUnits) FromStr

func (WindowFrameUnits) ToSQLString

func (s WindowFrameUnits) ToSQLString() string

type WindowSpec

type WindowSpec struct {
	PartitionBy  []Node
	OrderBy      []*OrderByExpr
	WindowsFrame *WindowFrame
}

func (*WindowSpec) ToSQLString

func (s *WindowSpec) ToSQLString() string

Jump to

Keyboard shortcuts

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