package
0.0.0-20250302012944-701c1ceec546
Repository: https://github.com/khulnasoft/devsecdb.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
DealWithDelimiter converts the delimiter statement to comment, also converts the following statement's delimiter to semicolon(`;`).
ExtractDelimiter extracts the delimiter from the delimiter statement.
ExtractMySQLTableList extracts all the TableNames from node.
No description provided by the author
GetCharSetName get charset name from DataTypeContext.
No description provided by the author
IsDelimiter returns true if the statement is a delimiter statement.
IsTiDBUnsupportDDLStmt checks whether the `stmt` is unsupported DDL statement in TiDB, the following statements are unsupported: 1.
IsTimeType check if the dataType is time type.
No description provided by the author
NormalizeTiDBConstraintName normalize the given IConstraintName.
NormalizeTiDBIdentifierListWithParentheses normalize the given IdentififerListWithparentheses.
NormalizeTiDBIndexName normalize the given IndexName.
NormalizeTiDBIndexName normalize the given IndeRef.
NormalizeTiDBKeyList normalize the given keyList.
NormalizeTiDBKeyListVariants normalize the given keyListVariants.
NormalizeTiDBKeyListWithExpression normalize the given keyListWithExpression.
NormalizeTiDBCharsetName noamalizes the given charset name.
NormalizeTiDBCollationName noamalizes the given collation name.
NormalizeTiDBColumnInternalRef noamalizes the given columnInternalRef.
NormalizeTiDBColumnName normalizes the given column name.
NormalizeTiDBDataType noamalizes the given dataType.
NormalizeTiDBEventName normalizes the given event name.
NormalizeTiDBFieldIdentifier normalizes the given field identifier.
NormalizeTiDBFunctionName normalizes the given function name.
NormalizeTiDBIdentifier normalizes the given identifier.
NormalizeTiDBIdentifierList normalizes the given identifier list.
NormalizeTiDBProcedureName normalizes the given procedure name.
NormalizeTiDBSchemaRef normalize the given schemaName.
NormalizeTiDBSchemaRef normalize the given schemaRef.
NormalizeTiDBSelectAlias normalizes the given select alias.
NormalizeTiDBSignedStringLiteral normalize the given SignedLiteral.
NormalizeTiDBTableName normalizes the given table name.
NormalizeTiDBTableRef normalizes the given table reference.
NormalizeTiDBTextStringLiteral normalize the given TextStringLiteral.
NormalizeTiDBTextOrIdentifier normalizes the given TextOrIdentifier.
NormalizeTiDBTextStringLiteral normalize the given TextStringLiteral.
NormalizeTiDBTriggerName normalizes the given trigger name.
NormalizeTiDBViewName normalizes the given view name.
ParseTiDB parses the given SQL statement and returns the AST.
SchemaDiff returns the schema diff.
SetLineForMySQLCreateTableStmt sets the line for columns and table constraints in MySQL CREATE TABLE statments.
SplitSQL splits the given SQL statement into multiple SQL statements.
SplitSQLKeepEmptyBlocks splits the given SQL statement into multiple SQL statements.
No description provided by the author
TypeString returns the string representation of the type for MySQL.
# Structs
ParseResult is the result of parsing a MySQL statement.
No description provided by the author
No description provided by the author