ast

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2021 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddColumnClause

type AddColumnClause struct {
	Columns []*ColumnDef
	// contains filtered or unexported fields
}

func (*AddColumnClause) IsAlterTableClause

func (c *AddColumnClause) IsAlterTableClause()

type AddConstraintClause

type AddConstraintClause struct {
	Constraints []*OutOfLineConstraint
	// contains filtered or unexported fields
}

func (*AddConstraintClause) IsAlterTableClause

func (c *AddConstraintClause) IsAlterTableClause()

type AlterTableClause

type AlterTableClause interface {
	IsAlterTableClause()
}

type AlterTableStmt

type AlterTableStmt struct {
	TableName         *TableName
	AlterTableClauses []AlterTableClause
	// contains filtered or unexported fields
}

func (*AlterTableStmt) SetText

func (n *AlterTableStmt) SetText(text string)

SetText implements Node interface.

func (*AlterTableStmt) Text

func (n *AlterTableStmt) Text() string

Text implements Node interface.

type Collation

type Collation struct {
	Name *element.Identifier
}

type ColumnDef

type ColumnDef struct {
	ColumnName  *element.Identifier
	Datatype    element.Datatype
	Collation   *Collation
	Props       []ColumnProp
	Default     *ColumnDefault
	Constraints []*InlineConstraint
	// contains filtered or unexported fields
}

func (*ColumnDef) IsTableStructDef

func (c *ColumnDef) IsTableStructDef()

type ColumnDefault

type ColumnDefault struct {
	OnNull bool
	Value  interface{}
}

type ColumnProp

type ColumnProp int
const (
	ColumnPropEmpty ColumnProp = iota
	ColumnPropSort             // for add column
	ColumnPropInvisible
	ColumnPropVisible
	ColumnPropSubstitutable         // for modify column
	ColumnPropNotSubstitutable      // for modify column
	ColumnPropSubstitutableForce    // for modify column
	ColumnPropNotSubstitutableForce // for modify column
)

type ConstraintType

type ConstraintType int
const (
	ConstraintTypeDefault ConstraintType = iota
	ConstraintTypeNull
	ConstraintTypeNotNull
	ConstraintTypeUnique
	ConstraintTypePK
	ConstraintTypeReferences
)

type CreateIndexStmt

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

func (*CreateIndexStmt) SetText

func (n *CreateIndexStmt) SetText(text string)

SetText implements Node interface.

func (*CreateIndexStmt) Text

func (n *CreateIndexStmt) Text() string

Text implements Node interface.

type CreateTableStmt

type CreateTableStmt struct {
	TableName *TableName
	RelTable  *RelTableDef
	// contains filtered or unexported fields
}

func (*CreateTableStmt) SetText

func (n *CreateTableStmt) SetText(text string)

SetText implements Node interface.

func (*CreateTableStmt) Text

func (n *CreateTableStmt) Text() string

Text implements Node interface.

type DropColumnClause

type DropColumnClause struct {
	Type       DropColumnType
	Columns    []*element.Identifier
	Props      []DropColumnProp
	CheckPoint *int
	// contains filtered or unexported fields
}

func (*DropColumnClause) IsAlterTableClause

func (c *DropColumnClause) IsAlterTableClause()

type DropColumnProp

type DropColumnProp int
const (
	DropColumnPropEmpty DropColumnProp = iota
	DropColumnPropCascade
	DropColumnPropInvalidate
	DropColumnPropOnline
)

type DropColumnType

type DropColumnType int
const (
	DropColumnTypeDrop DropColumnType = iota
	DropColumnTypeSetUnused
	DropColumnTypeDropUnusedColumns
	DropColumnTypeDropColumnsContinue
)

type DropConstraintClause

type DropConstraintClause struct {
	Constraint *OutOfLineConstraint
	// contains filtered or unexported fields
}

func (*DropConstraintClause) IsAlterTableClause

func (c *DropConstraintClause) IsAlterTableClause()

type DropIndexStmt

type DropIndexStmt struct {
	IndexName *IndexName
	// contains filtered or unexported fields
}

Drop Index Statement see: https://docs.oracle.com/en/database/oracle/oracle-database/21/sqlrf/DROP-INDEX.html#GUID-F60F75DF-2866-4F93-BB7F-8FCE64BF67B6

func (*DropIndexStmt) SetText

func (n *DropIndexStmt) SetText(text string)

SetText implements Node interface.

func (*DropIndexStmt) Text

func (n *DropIndexStmt) Text() string

Text implements Node interface.

type DropTableStmt

type DropTableStmt struct {
	TableName *TableName
	// contains filtered or unexported fields
}

Drop Table Statement see: https://docs.oracle.com/en/database/oracle/oracle-database/21/sqlrf/CREATE-INDEX.html#GUID-1F89BBC0-825F-4215-AF71-7588E31D8BFE

func (*DropTableStmt) SetText

func (n *DropTableStmt) SetText(text string)

SetText implements Node interface.

func (*DropTableStmt) Text

func (n *DropTableStmt) Text() string

Text implements Node interface.

type IndexName

type IndexName struct {
	Schema *element.Identifier
	Index  *element.Identifier
}

type InlineConstraint

type InlineConstraint struct {
	Name *element.Identifier
	Type ConstraintType
}

type ModifyColumnClause

type ModifyColumnClause struct {
	Columns []*ColumnDef
	// contains filtered or unexported fields
}

func (*ModifyColumnClause) IsAlterTableClause

func (c *ModifyColumnClause) IsAlterTableClause()

type ModifyConstraintClause

type ModifyConstraintClause struct {
	Constraint *OutOfLineConstraint
	// contains filtered or unexported fields
}

func (*ModifyConstraintClause) IsAlterTableClause

func (c *ModifyConstraintClause) IsAlterTableClause()

type Node

type Node interface {
	Text() string
	SetText(text string)
}

type OutOfLineConstraint

type OutOfLineConstraint struct {
	InlineConstraint
	Columns []*element.Identifier
	// contains filtered or unexported fields
}

func (*OutOfLineConstraint) IsTableStructDef

func (c *OutOfLineConstraint) IsTableStructDef()

type RelTableDef

type RelTableDef struct {
	TableStructs []TableStructDef
}

type RenameColumnClause

type RenameColumnClause struct {
	OldName *element.Identifier
	NewName *element.Identifier
	// contains filtered or unexported fields
}

func (*RenameColumnClause) IsAlterTableClause

func (c *RenameColumnClause) IsAlterTableClause()

type RenameConstraintClause

type RenameConstraintClause struct {
	OldName *element.Identifier
	NewName *element.Identifier
	// contains filtered or unexported fields
}

func (*RenameConstraintClause) IsAlterTableClause

func (c *RenameConstraintClause) IsAlterTableClause()

type TableName

type TableName struct {
	Schema *element.Identifier
	Table  *element.Identifier
}

type TableStructDef

type TableStructDef interface {
	IsTableStructDef()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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