package
0.0.0-20250302012944-701c1ceec546
Repository: https://github.com/khulnasoft/devsecdb.git
Documentation: pkg.go.dev
# Functions
Completion is the entry point of MySQL code completion.
DealWithDelimiter converts the delimiter statement to comment, also converts the following statement's delimiter to semicolon(`;`).
No description provided by the author
ExtractDelimiter extracts the delimiter from the delimiter statement.
No description provided by the author
No description provided by the author
No description provided by the author
GetCharSetName get charset name from DataTypeContext.
GetCollationName get collation name from FieldDefinitionContext.
GetFingerprint gets mysql query fingerprint.
GetQuerySpan returns the query span for the given statement.
No description provided by the author
IsAutoIncrement check if this column is auto_increment.
IsCompoundEqualCreateFuncStmt returns true if the compound statement is equal to the create function statement.
IsCompoundStmtEqual returns true if the two compound statements are equal.
IsDelimiter returns true if the statement is a delimiter statement.
IsTimeType check if the dataType is time type.
IsTopMySQLRule returns true if the given context is a top-level MySQL rule.
IsViewTailEqual returns true if the two view tails are equal.
IsViewTailEqualCreateViewStmt returns true if the view tail is equal to the view statement.
No description provided by the author
No description provided by the author
No description provided by the author
NormalizeMySQLConstraintName normalize the given IConstraintName.
NormalizeMySQLIdentifierListWithParentheses normalize the given IdentififerListWithparentheses.
NormalizeMySQLIndexName normalize the given IndexName.
NormalizeMySQLIndexName normalize the given IndeRef.
NormalizeMySQLKeyList normalize the given keyList.
NormalizeMySQLKeyListVariants normalize the given keyListVariants.
NormalizeMySQLKeyListWithExpression normalizes the given keyListWithExpression.
NormalizeMySQLCharsetName noamalizes the given charset name.
NormalizeMySQLCollationName noamalizes the given collation name.
NormalizeMySQLColumnInternalRef noamalizes the given columnInternalRef.
NormalizeMySQLColumnName normalizes the given column name.
No description provided by the author
NormalizeMySQLDataType noamalizes the given dataType.
NormalizeMySQLEventName normalizes the given event name.
NormalizeMySQLFieldIdentifier normalizes the given field identifier.
NormalizeMySQLFunctionName normalizes the given function name.
NormalizeMySQLFunctionRef normalizes the given function ref.
NormalizeMySQLIdentifier normalizes the given identifier.
NormalizeMySQLIdentifierList normalizes the given identifier list.
NormalizeMySQLProcedureName normalizes the given procedure name.
NormalizeMySQLProcedureRef normalizes the given procedure ref.
No description provided by the author
NormalizeMySQLSchemaName normalize the given schemaName.
NormalizeMySQLSchemaRef normalize the given schemaRef.
NormalizeMySQLSelectAlias normalizes the given select alias.
NormalizeMySQLSignedLiteral normalize the given SignedLiteral.
NormalizeMySQLTableName normalizes the given table name.
NormalizeMySQLTableRef normalizes the given table reference.
No description provided by the author
NormalizeMySQLTextLiteral normalize the given TextStringLiteral.
NormalizeMySQLTextOrIdentifier normalizes the given TextOrIdentifier.
NormalizeMySQLTextStringLiteral normalize the given TextStringLiteral.
NormalizeMySQLTriggerName normalizes the given trigger name.
NormalizeMySQLViewName normalizes the given view name.
No description provided by the author
ParseMySQL parses the given SQL statement and returns the AST.
RestoreDelimiter tries to restore the delimiter statement which is commented by DealWithDelimiter,
Assumes the delimiter comment takes up a single line and matches the syntax `-- DELIMITER ?`, also, one delimiter comment MUST only affect one statement, in the other words, the following statement cause UB: -- DELIMITER ; SELECT 1; SELECT 2; -- DELIMITER ;.
SchemaDiff returns the schema diff.
SplitSQL splits the given SQL statement into multiple SQL statements.
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
ParseResult is the result of parsing a MySQL statement.
PartitionDefaultNameGenerator is the name generator of MySQL partition, which use the default clause.
SchemaDiffer is the parser for MySQL dialect.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author