package
5.2.0-alpha+incompatible
Repository: https://github.com/pingcap/parser.git
Documentation: pkg.go.dev

# Functions

FindColumnInfo finds ColumnInfo in cols by name.
NewCIStr creates a new CIStr.
NewDDLReorgMeta new a DDLReorgMeta.
NewExtraHandleColInfo mocks a column info for extra handle column.
NewExtraPartitionIDColInfo mocks a column info for extra partition id column.
TSConvert2Time converts timestamp to time.

# Constants

List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
AddIndexStr is a string related to the operation of "add index".
ColumnInfoVersion0 means the column info version is 0.
ColumnInfoVersion1 means the column info version is 1.
ColumnInfoVersion2 means the column info version is 2.
CurrLatestColumnInfoVersion means the latest column info in the current TiDB.
CurrLatestTableInfoVersion means the latest table info in the current TiDB.
ExtraHandleID is the column ID of column which we need to append to schema to occupy the handle's position for use of execution phase.
ExtraPidColID is the column ID of column which store the partitionID decoded in global index values.
FlagDividedByZeroAsWarning indicates if DividedByZero should be returned as warning.
FlagIgnoreTruncate indicates if truncate error should be ignored.
FlagIgnoreZeroInDate indicates if ZeroInDate error should be ignored.
FlagInInsertStmt indicates if this is a INSERT statement.
FlagInLoadDataStmt indicates if this is a LOAD DATA statement.
FlagInSelectStmt indicates if this is a SELECT statement.
FlagInSetOprStmt indicates if this is a UNION/EXCEPT/INTERSECT statement.
FlagInUpdateOrDeleteStmt indicates if this is a UPDATE statement or a DELETE statement.
FlagOverflowAsWarning indicates if overflow error should be returned as warning.
FlagPadCharToFullLength indicates if sql_mode 'PAD_CHAR_TO_FULL_LENGTH' is set.
FlagTruncateAsWarning indicates if truncate error should be returned as warning.
IndexTypes.
IndexTypes.
IndexTypes.
IndexTypes.
List job states.
JobStateCancelling is used to mark the DDL job is cancelled by the client, but the DDL work hasn't handle it.
List job states.
List job states.
List job states.
When DDL encountered an unrecoverable error at reorganization state, some keys has been added already, we need to remove them.
List job states.
JobStateSynced is used to mark the information about the completion of this job has been synchronized to all servers.
Partition types.
Partition types.
Partition types.
Partition types.
Partition types.
StateDeleteOnly means we can only delete items for this schema element.
StateDeleteReorganization means we are re-organizing whole data after delete only state.
StateGlobalTxnOnly means we can only use global txn for operator on this schema element.
StateNone means this schema element is absent and can't be used.
StatePublic means this schema element is ok for all write and read operations.
StateReplicaOnly means we're waiting tiflash replica to be finished.
StateWriteOnly means we can use any write operation on this schema element, but outer can't read the changed data.
StateWriteReorganization means we are re-organizing whole data after write only state.
TableInfoVersion0 means the table info version is 0.
TableInfoVersion1 means the table info version is 1.
TableInfoVersion2 means the table info version is 2.
TableInfoVersion3 means the table info version is 3.
TableInfoVersion4 indicates that the auto_increment allocator in TiDB has been separated from _tidb_rowid allocator.
TableLockRead means the session with this lock can read the table (but not write it).
TableLockReadLocal is not supported.
TableLockReadOnly is used to set a table into read-only status, when the session exits, it will not release its lock automatically.
TableLockStateNone means this table lock is absent.
TableLockStatePreLock means this table lock is pre-lock state.
TableLockStatePublic means this table lock is public state.
TableLockWrite means only the session with this lock has write/read permission.
TableLockWriteLocal means the session with this lock has write/read permission, and the other session still has read permission.

# Variables

ExtraHandleName is the name of ExtraHandle Column.
ExtraPartitionIdName is the name of ExtraPartitionId Column.

# Structs

AffectedOption is used when a ddl affects multi tables.
ChangeStateInfo is used for recording the information of schema changing.
CIStr is case insensitive string.
ColumnInfo provides meta data describing of a table column.
ConstraintInfo provides meta data describing check-expression constraint.
DBInfo provides meta data describing a DB.
DDLReorgMeta is meta info of DDL reorganization.
FKInfo provides meta data describing a foreign key constraint.
HistoryInfo is used for binlog.
IndexColumn provides index column info.
IndexInfo provides meta data describing a DB index.
Job is for a DDL operation.
PartitionDefinition defines a single partition.
PartitionInfo provides table partition info.
SchemaDiff contains the schema modification at a particular schema version.
SequenceInfo provide meta data describing a DB sequence.
SessionInfo contain the session ID and the server ID.
TableColumnID is composed by table ID and column ID.
TableInfo provides meta data describing a DB table.
TableLockInfo provides meta data describing a table lock.
TableLockTpInfo is composed by schema ID, table ID and table lock type.
TiFlashReplicaInfo means the flash replica info.
ViewInfo provides meta data describing a DB view.

# Type aliases

ActionType is the type for DDL action.
IndexType is the type of index.
JobState is for job state.
PartitionType is the type for PartitionInfo.
PrimaryKeyType is the type of primary key.
SchemaState is the state for schema elements.
TableLockState is the state for table lock.
TableLockType is the type of the table lock.
ViewAlgorithm is VIEW's SQL ALGORITHM characteristic.
ViewCheckOption is VIEW's WITH CHECK OPTION clause part.
ViewSecurity is VIEW's SQL SECURITY characteristic.