# Packages
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
# Functions
ApproximateTypeFromValue returns the closest matching type to the given value.
AreComparable returns whether the given types are either the same or similar enough that values can meaningfully be compared across all permutations.
No description provided by the author
ColumnTypeToType gets the column type using the column definition.
No description provided by the author
No description provided by the author
CreateArray returns a new CreateArray type of the given underlying type.
CreateBinary creates a StringType with a binary collation and character set of the given size.
CreateBitType creates a BitType.
CreateDatetimeType creates a Type dealing with all temporal types that are not TIME nor YEAR.
CreateDecimalType creates a DecimalType.
CreateEnumType creates a EnumType.
CreateLongText creates a LONGTEXT with the given collation.
CreateMediumText creates a MEDIUMTEXT with the given collation.
CreateNumberType creates a NumberType.
CreateSetType creates a SetType.
CreateString creates a StringType.
CreateStringWithDefaults creates a StringType with the default character set and collation of the given size.
CreateText creates a TEXT with the given collation.
CreateTinyText creates a TINYTEXT with the given collation.
CreateTuple returns a new tuple type with the given element types.
DBTableIter iterates over all tables returned by db.GetTableNames() calling cb for each one until all tables have been processed, or an error is returned from the callback, or the cont flag is false when returned from the callback.
DebugString returns a debug string for the Node or Expression given.
No description provided by the author
ErrIfMismatchedColumns returns an operand error if the number of columns in t1 is not equal to the number of columns in t2.
ErrIfMismatchedColumnsInTuple returns an operand error is t2 is not a tuple type whose subtypes are structurally identical to t1.
EvaluateCondition evaluates a condition, which is an expression whose value will be nil or coerced boolean.
FormatRow returns a formatted string representing this row's values.
GetOkResult extracts the OkResult from the row given.
GetTableInsensitive implements a case insensitive map lookup for tables keyed off of the table name.
GetTableNameInsensitive implements a case insensitive search of a slice of table names.
cc: https://dev.mysql.com/doc/refman/8.0/en/temporary-files.html.
HasAvailableMemory reports whether more memory is available to the program if it hasn't reached the max memory limit.
HasDefaultValue checks if session variable value is the default one.
HashOf returns a hash of the given value to be used as key in a cache.
Inspect traverses the plan in depth-first order: It starts by calling f(expr); expr must not be nil.
IsArray returns whether the given type is an array.
IsBlob checks if t is BINARY, VARBINARY, or BLOB.
IsDecimal checks if t is a DECIMAL type.
IsFalse coerces EvaluateCondition interface{} response to boolean.
IsFloat checks if t is float type.
IsInteger checks if t is an integer type.
No description provided by the author
No description provided by the author
IsNull returns true if expression is nil or is Null Type, otherwise false.
IsNumber checks if t is a number type.
IsOkResult returns whether the given row represents an OkResult.
No description provided by the author
IsSigned checks if t is a signed type.
IsText checks if t is a text type.
IsTextBlob checks if t is one of the TEXTs or BLOBs.
IsTextOnly checks if t is CHAR, VARCHAR, or one of the TEXTs.
IsTime checks if t is a timestamp, date or datetime.
IsTrue coerces EvaluateCondition interface{} response to boolean.
IsTuple checks if t is a tuple type.
IsUnsigned checks if t is an unsigned type.
No description provided by the author
MustCreateBinary is the same as CreateBinary except it panics on errors.
MustCreateBitType is the same as CreateBitType except it panics on errors.
MustCreateDatetimeType is the same as CreateDatetimeType except it panics on errors.
MustCreateDecimalType is the same as CreateDecimalType except it panics on errors.
MustCreateEnumType is the same as CreateEnumType except it panics on errors.
MustCreateNumberType is the same as CreateNumberType except it panics on errors.
MustCreateSetType is the same as CreateSetType except it panics on errors.
MustCreateString is the same as CreateString except it panics on errors.
MustCreateStringWithDefaults creates a StringType with the default CharacterSet and Collation.
No description provided by the author
NewArrayGenerator creates a generator for a given array.
NewBaseSession creates a new empty session.
NewColumnDefaultValue returns a new ColumnDefaultValue expression.
NewContext creates a new query context.
No description provided by the author
NewEmptyContext returns a default context with default values.
No description provided by the author
NewIndexRegistry returns a new Index Registry.
NewLockSubsystem creates a LockSubsystem object.
No description provided by the author
NewMemoryManager creates a new manager with the given memory reporter.
NewOkResult returns a new OkResult with the given number of rows affected.
NewRow creates a row from the given values.
NewSession creates a new session with data.
NewSpanIter creates a RowIter executed in the given span.
NewSystemBoolType returns a new systemBoolType.
NewSystemDoubleType returns a new systemDoubleType.
NewSystemEnumType returns a new systemEnumType.
NewSystemIntType returns a new systemIntType.
NewSystemSetType returns a new systemSetType.
NewSystemStringType returns a new systemStringType.
NewSystemUintType returns a new systemUintType.
No description provided by the author
NewTableRowIter returns a new iterator over the rows in the partitions of the table given.
NewTreePrinter creates a new tree printer.
No description provided by the author
NewView creates a View with the specified name and definition.
NewViewKey creates a ViewKey ensuring both names are lowercase.
NewViewRegistry creates an empty ViewRegistry.
No description provided by the author
NillaryWithChildren is a common implementation of expression.WithChildren for expressions with no children.
NodeToRows converts a node to a slice of rows.
NumColumns returns the number of columns in a type.
No description provided by the author
ParseCharacterSet takes in a string representing a CharacterSet and returns the result if a match is found, or an error if not.
ParseCollation takes in an optional character set and collation, along with the binary attribute if present, and returns a valid collation or error.
RowIterToRows converts a row iterator to a slice of rows.
RowsToRowIter creates a RowIter that iterates over the given rows.
No description provided by the author
ToGenerator converts a value to a generator if possible.
TypesEqual compares two Types and returns whether they are equivalent.
UnderlyingType returns the underlying type of an array if the type is an array, or the type itself in any other case.
ValidateTime receives a time and returns either that time or nil if it's not a valid time.
Walk traverses the expression tree in depth-first order.
WalkWithNode traverses the expression tree in depth-first order.
WithMemoryManager adds the given memory manager to the context.
WithPid adds the given pid to the context.
No description provided by the author
WithQuery adds the given query to the context.
WithRootSpan sets the root span of the context.
WithSession adds the given session to the context.
WithTracer adds the given tracer to the context.
# Constants
Ascending order.
No description provided by the author
BitTypeMaxBits returns the maximum number of bits for Bit.
BitTypeMinBits returns the minimum number of bits for Bit.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
Character sets and collations were obtained from a fresh install of MySQL 8.0.17.
ChecksumKey is the key in an index config to store the checksum.
No description provided by the author
DateLayout is the layout of the MySQL date format in the representation Go understands.
DecimalTypeMaxPrecision returns the maximum precision allowed for the Decimal type.
DecimalTypeMaxScale returns the maximum scale allowed for the Decimal type, assuming the maximum precision is used.
Descending order.
EnumTypeMaxElements returns the maximum number of enumerations for the Enum type.
EnumTypeMinElements returns the minimum number of enumerations for the Enum type.
Numeric representation of False as defined by MySQL.
No description provided by the author
No explicit action was specified.
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
IndexBatchSize is the number of rows to save at a time when creating indexes.
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
IndexNotReady means the index is not ready to be used.
IndexOutdated means the index is loaded but will not be used because the contents in it are outdated.
IndexReady means the index can be used.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
LockDoesNotExist is the state where a lock has never been created.
LockFree is the state where a lock has been created, but is not currently owned by any user.
LockInUse is the state where a lock has been acquired by a user.
No description provided by the author
No description provided by the author
NullsFirst puts the null values before any other values.
NullsLast puts the null values after all other values.
OkResultColumnName should be used as the schema column name for Nodes that return an OkResult.
No description provided by the author
QueryKey to access query in the context.
No description provided by the author
No description provided by the author
No description provided by the author
SetTypeMaxElements returns the maximum number of elements for the Set type.
SystemVariableScope_Both is set when the system variable exists in both the global and session contexts.
SystemVariableScope_Global is set when the system variable exists only in the global context.
SystemVariableScope_Session is set when the system variable exists only in the session context.
TimestampDatetimeLayout is the formatting string with the layout of the timestamp using the format of Go "time" package.
Numeric representation of True as defined by MySQL.
No description provided by the author
# Variables
No description provided by the author
Boolean is a synonym for TINYINT.
No description provided by the author
case insensitive collations.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
case sensitive colations.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Date is a date with day, month and year.
Datetime is a date and a time.
ErrAlterTableNotSupported is thrown when the table doesn't support ALTER TABLE statements.
ErrAmbiguousColumnInOrderBy is returned when an order by column is ambiguous.
ErrAmbiguousColumnName is returned when there is a column reference that is present in more than one table.
ErrAsOfNotSupported is thrown when an AS OF query is run on a database that can't support it.
No description provided by the author
ErrCallIncorrectParameterCount is returned when a CALL statement has the incorrect number of parameters.
ErrCannotCreateDatabaseExists is returned when a CREATE DATABASE is called on a table that already exists.
ErrCannotDropDatabaseDoesntExist is returned when a DROP DATABASE is callend when a table is dropped that doesn't exist.
ErrCantDropFieldOrKey is returned when a table invokes DropPrimaryKey on a keyless table.
ErrCantDropIndex is return when a table can't drop an index due to a foreign key relationship.
No description provided by the author
ErrCheckConstraintViolated is returned when a CONSTRAINT CHECK is called with a sub-query expression.
No description provided by the author
ErrChildrenAlreadyWritten is returned when the children have already been written.
No description provided by the author
ErrColumnCountMismatch is returned when a view, derived table or common table expression has a declared column list with a different number of columns than the schema of the table.
ErrColumnDefaultDatetimeOnlyFunc is returned when a non datetime/timestamp column attempts to declare now/current_timestamp as a default value literal.
ErrColumnDefaultReturnedNull is returned when a default expression evaluates to nil but the column is non-nullable.
ErrColumnDefaultSubquery is returned when a default value contains a subquery.
ErrColumnNotFound is returned when the column does not exist in any table in scope.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrConvertingToTime is thrown when a value cannot be converted to a Time.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrConvertToSQL is returned when Convert failed.
ErrDatabaseNotFound is thrown when a database is not found.
ErrDeclareConditionDuplicate is returned when a DECLARE CONDITION statement with the same name was declared in the current scope.
ErrDeclareConditionNotFound is returned when SIGNAL/RESIGNAL references a non-existent DECLARE CONDITION.
ErrDeclareOrderInvalid is returned when a DECLARE statement is at an invalid location.
ErrDeleteRowNotFound.
ErrDropColumnReferencedInDefault is returned when a column cannot be dropped as it is referenced by another column's default value.
ErrDuplicateAlias should be returned when a query contains a duplicate alias / table name.
ErrDuplicateEntry is returns when a duplicate entry is placed on an index such as a UNIQUE or a Primary Key.
No description provided by the author
ErrExistingView is returned when a CREATE VIEW statement uses a name that already exists.
ErrExpectedSingleRow is returned when a subquery executed in normal queries or aggregation function returns more than 1 row without an attached IN clause.
ErrForeignKeyChildViolation is called when a rows is added but there is no parent row, and a foreign key constraint fails.
ErrForeignKeyColumnCountMismatch is called when the declared column and referenced column counts do not match.
ErrForeignKeyNotResolved is called when an add or update is attempted on a foreign key that has not been resolved yet.
ErrForeignKeyParentViolation is called when a parent row that is deleted has children, and a foreign key constraint fails.
ErrFunctionNotFound is thrown when a function is not found.
ErrImmutableDatabaseProvider is returned when attempting to edit an immutable database databaseProvider.
ErrIncompatibleAsOf is thrown when an AS OF clause is used in an incompatible manner, such as when using an AS OF expression with a view when the view definition has its own AS OF expressions.
ErrIncompatibleDefaultType is returned when a provided default cannot be coerced into the type of the column.
ErrIndexDeleteInvalidStatus is returned when the index trying to delete does not have a ready or outdated state.
ErrIndexExpressionAlreadyRegistered is the error returned when there is already an index with the same expression.
ErrIndexIDAlreadyRegistered is the error returned when there is already an index with the same ID.
ErrIndexNotFound is returned when the index could not be found.
ErrInsertIntoNonNullableDefaultNullColumn is returned when an INSERT excludes a field which is non-nullable and has no default/autoincrement.
ErrInsertIntoNonNullableProvidedNull is called when a null value is inserted into a non-nullable column.
ErrInvalidArgument is returned when an argument to a function is invalid.
ErrInvalidArgumentNumber is returned when the number of arguments to call a function is different from the function arity.
ErrInvalidAsOfExpression is returned when an expression for AS OF cannot be used.
No description provided by the author
ErrInvalidChildrenNumber is returned when the WithChildren method of a node or expression is called with an invalid number of arguments.
ErrInvalidChildType is returned when the WithChildren method of a node or expression is called with an invalid child type.
ErrInvalidColTypeDefinition is returned when a column type-definition has argument violations.
ErrInvalidColumnDefaultFunction is returned when an invalid function is used in a default value.
ErrInvalidColumnNumber is returned when a tuple has an invalid number of arguments.
ErrInvalidConstraintFunctionsNotSupported is returned when a CONSTRAINT CHECK is called with a sub-function expression.
ErrInvalidConstraintSubqueryNotSupported is returned when a CONSTRAINT CHECK is called with a sub-query expression.
ErrInvalidDefaultValueOrder is returned when a default value references a column that comes after it and contains a default expression.
ErrInvalidJSONText is returned when a JSON string cannot be parsed or unmarshalled.
ErrInvalidOperandColumns is returned when the columns in the left operand and the elements of the right operand don't match.
No description provided by the author
ErrInvalidSyntax is returned for syntax errors that aren't picked up by the parser, e.g.
ErrInvalidSystemVariableValue is returned when a system variable is assigned a value that it does not accept.
ErrInvalidTextBlobColumnDefault is returned when a column of type text/blob (or related) has a literal default set.
ErrInvalidType is thrown when there is an unexpected type at some part of the execution tree.
ErrInvalidUpdateInAfterTrigger is returned when a trigger attempts to assign to a new row in an AFTER trigger.
ErrInvalidUpdateOfOldRow is returned when a trigger attempts to assign to an old row's value with SET.
ErrInvalidUseOfOldNew is returned when a trigger attempts to make use of OLD or NEW references when they don't exist.
ErrInvalidValue is returned when a given value does not match what is expected.
ErrInvalidValueType is returned when a given value's type does not match what is expected.
ErrJSONObjectAggNullKey is returned when JSON_OBJECTAGG is run on a table with NULL keys.
ErrKeyColumnDoesNotExist is returned when a table invoked CreatePrimaryKey with a non-existent column.
ErrKeyNotFound is returned when the key could not be found in the cache.
No description provided by the author
ErrLengthTooLarge is thrown when a string's length is too large given the other parameters.
ErrLoadDataCannotOpen is returned when a LOAD DATA operation is unable to open the file specified.
ErrLoadDataCharacterLength is returned when a symbol is of the wrong character length for a LOAD DATA operation.
ErrLockDoesNotExist is the kind of error returned when a named lock does not exist and the operation does not created it.
ErrLockNotOwned is the kind of error returned when attempting an operation against a lock that the given context does not own.
ErrLockTimeout is the kind of error returned when acquiring a lock takes longer than the user specified timeout.
No description provided by the author
ErrMisusedAlias is returned when a alias is defined and used in the same projection.
ErrMultiplePrimaryKeysDefined is returned when a table invokes CreatePrimaryKey with a primary key already defined.
No description provided by the author
ErrNoDatabaseSelected is thrown when a database is not selected and the query requires one.
ErrNodeAlreadyWritten is returned when the node has already been written.
ErrNodeNotWritten is returned when the children are printed before the node.
ErrNoMemoryAvailable is returned when there is no more available memory.
ErrNotArray is returned when the value is not an array.
ErrNotGenerator is returned when the value cannot be converted to a generator.
ErrNotTuple is returned when the value is not a tuple.
No description provided by the author
ErrPartitionNotFound is thrown when a partition key on a table is not found.
ErrPidAlreadyUsed is returned when the pid is already registered.
ErrPrimaryKeyViolation is returned when a primary key constraint is violated This is meant to wrap a sql.UniqueKey error, which provides the key string.
ErrProcedureCreateStatementInvalid is returned when a StoredProcedureDatabase returns a CREATE PROCEDURE statement that is invalid.
ErrProcedureDuplicateParameterName is returned when a stored procedure has two (or more) parameters with the same name.
ErrProcedureInvalidBodyStatement is returned when a stored procedure has a statement that is invalid inside of procedures.
ErrProcedureRecursiveCall is returned when a stored procedure has a CALL statement that refers to itself.
ErrReadOnlyTransaction is returned when a write query is executed in a READ ONLY transaction.
ErrSavepointDoesNotExist is returned when a RELEASE SAVEPOINT or ROLLBACK TO SAVEPOINT statement references a non-existent savepoint identifier.
ErrSignalOnlySqlState is returned when SIGNAL/RESIGNAL references a DECLARE CONDITION for a MySQL error code.
ErrTriggerDoesNotExist is returned when a stored procedure does not exist.
ErrTriggerDoesNotExist is returned when a stored procedure does not exist.
ErrStoredProceduresNotSupported is returned when attempting to create a stored procedure on a database that doesn't support them.
ErrSyntaxError is returned when a syntax error in vitess is encountered.
ErrSystemVariableCodeFail is returned when failing to encode/decode a system variable.
ErrSystemVariableGlobalOnly is returned when attempting to set a GLOBAL-only variable using SET SESSION.
ErrSystemVariableReadOnly is returned when attempting to set a value to a non-Dynamic system variable.
ErrSystemVariableSessionOnly is returned when attempting to set a SESSION-only variable using SET GLOBAL.
ErrTableAlreadyExists is thrown when someone tries to create a table with a name of an existing one.
ErrColumnNotFound is thrown when a column named cannot be found in scope.
ErrTableCopyingNotSupported is returned when a table invokes the TableCopierDatabase interface's CopyTableData method without supporting the interface.
ErrTableNotFound is returned when the table is not available from the current scope.
ErrTableCreatedNotFound is thrown when an integrator attempts to create a temporary tables without temporary table support.
No description provided by the author
ErrTriggerCannotBeDropped is returned when dropping a trigger would cause another trigger to reference a non-existent trigger.
ErrTriggerCreateStatementInvalid is returned when a TriggerDatabase returns a CREATE TRIGGER statement that is invalid.
ErrTriggerDoesNotExist is returned when a trigger does not exist.
ErrTriggersNotSupported is returned when attempting to create a trigger on a database that doesn't support them.
ErrTriggerTableInUse is returned when trigger execution calls for a table that invoked a trigger being updated by it.
ErrTruncateReferencedFromForeignKey is returned when a table is referenced in a foreign key and TRUNCATE is called on it.
ErrUnableSort is thrown when something happens on sorting.
ErrUnboundPreparedStatementVariable is returned when a query is executed without a binding for one its variables.
ErrUnexpectedRowLength is thrown when the obtained row has more columns than the schema.
ErrUnexpectedType is thrown when a received type is not the expected.
ErrUniqueKeyViolation is returned when a unique key constraint is violated This is meant to wrap a sql.UniqueKey error, which provides the key string.
ErrUnknownConstraint is returned when a DROP CONSTRAINT statement refers to a constraint that doesn't exist.
ErrUnknownSystemVariable is returned when a query references a system variable that doesn't exist.
No description provided by the author
ErrUnsupportedFeature is thrown when a feature is not already supported.
ErrUserVariableNoDefault is returned when attempting to set the default value on a user variable.
ErrUuidUnableToParse is returned when a UUID is unable to be parsed.
ErrValueNotNil is thrown when a value that was expected to be nil, is not.
ErrViewDoesNotExist is returned when a DROP VIEW statement drops a view that does not exist.
ErrWrongAutoKey is returned when a table invokes DropPrimaryKey without first removing the auto increment property (if it exists) on it.
Float32 is a floating point number of 32 bits.
Float64 is a floating point number of 64 bits.
Int16 is an integer of 16 bits.
Int24 is an integer of 24 bits.
Int32 is an integer of 32 bits.
Int64 is an integer of 64 bytes.
Int8 is an integer of 8 bits.
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
OkResultColumnType should be used as the schema column type for Nodes that return an OkResult.
OkResultSchema should be used as the schema of Nodes that return an OkResult.
ProcessMemory is a reporter for the memory used by the process and the maximum amount of memory allowed controlled by the MAX_MEMORY environment variable.
No description provided by the author
No description provided by the author
SystemVariables is the collection of system variables for this process.
No description provided by the author
No description provided by the author
Timestamp is an UNIX timestamp.
TimestampDatetimeLayouts hold extra timestamps allowed for parsing.
No description provided by the author
No description provided by the author
Uint16 is an unsigned integer of 16 bits.
Uint24 is an unsigned integer of 24 bits.
Uint32 is an unsigned integer of 32 bits.
Uint64 is an unsigned integer of 64 bits.
Uint8 is an unsigned integer of 8 bits.
No description provided by the author
# Structs
BaseSession is the basic session type.
CheckConstraint declares a boolean-eval constraint.
CheckDefinition defines a trigger.
Client holds session user information.
Collation represents the collation of a string.
Column is the definition of a table column.
ColumnDefaultValue is an expression representing the default value of a column.
ColumnOrder is used in ALTER TABLE statements to change the order of inserted / modified columns.
Context of the query execution.
EmptyProcessList is a no-op implementation of ProcessList suitable for use in tests or other installations that don't require a process list.
Engine represents a sql engine.
ForeignKeyConstraint declares a constraint between the columns of two tables.
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
IndexColumn is the column by which to add to an index.
IndexRegistry keeps track of all driver-provided indexes in the engine.
No description provided by the author
LockSubsystem manages reentrant named locks.
MemoryManager is in charge of keeping track and managing all the components that operate in memory.
OkResult is a representation of the OK packet MySQL sends for non-select queries such as UPDATE, INSERT, etc.
PartitionProgress keeps track of a partition progress.
Process represents a process in the SQL server.
Progress between done items and total items.
SortField is a field by which a query will be sorted.
StoredProcedureDetails are the details of the stored procedure.
SystemVariable represents a system variable.
TableProgress keeps track of a table progress, and for each of its partitions.
TableRowIter is an iterator over the partitions in a table.
TreePrinter is a printer for tree nodes.
TriggerDefinition defines a trigger.
No description provided by the author
No description provided by the author
View is the parsed version of ViewDefinition Not meant to be used externally.
ViewDefinition is the named textual definition of a view.
ViewKey is the key used to store view definitions.
ViewRegistry stores session-local views for databases that don't implement view storage.
No description provided by the author
A Window specifies the window parameters of a window function.
# Interfaces
Aggregation implements an aggregation expression, where an aggregation buffer is created for each grouping (NewBuffer).
No description provided by the author
AlterableTable should be implemented by tables that can receive ALTER TABLE statements to modify their schemas.
AscendIndex is an index that is sorted in ascending order.
AutoIncrementSetter provides support for altering a table's AUTO_INCREMENT sequence, eg 'ALTER TABLE t AUTO_INCREMENT = 10;'.
AutoIncrementTable is a table that supports AUTO_INCREMENT.
Represents the BIT type.
No description provided by the author
CheckAlterableTable represents a table that supports check constraints.
Checksumable provides the checksum of some data.
CheckTable is a table that can declare its check constraints.
No description provided by the author
CommentedNode allows comments to be set and retrieved on it.
Database represents the database.
DatabaseProvider is a collection of Database.
Databaser is a node that contains a reference to a database.
Represents DATE, DATETIME, and TIMESTAMP.
DebugStringer is shared by implementors of Node and Expression, and is used for debugging the analyzer.
No description provided by the author
DeleteableTable is a table that can process the deletion of rows.
DescendIndex is an index that is sorted in descending order.
Disposable objects can erase all their content when they're no longer in use.
An indexed managed by a driver, as opposed to natively by a DB table.
DriverIndexableTable represents a table that supports being indexed and receiving indexes to be able to speed up its execution.
DriverIndexLookup is a subset of an index.
Represents the ENUM type.
Expression is a combination of one or more SQL expressions.
Expressioner is a node that contains expressions.
FilteredTable is a table that can produce a specific RowIter that's more optimized given the filters.
ForeignKeyAlterableTable represents a table that supports foreign key modification operations.
ForeignKeyTable is a table that can declare its foreign key constraints.
Freeable objects can free their memory.
Function is a function defined by the user that can be applied in a SQL query.
FunctionExpression is an Expression that represents a function.
FunctionProvider is an extension of DatabaseProvider that allows custom functions to be provided.
Generator will generate a set of values for a given row.
Index is the basic representation of an index.
IndexAddressableTable is a table that can restrict its row iteration to only the rows that match a given index lookup.
IndexAlterableTable represents a table that supports index modification operations.
IndexDriver manages the coordination between the indexes and their representation on disk.
IndexedTable represents a table that has one or more native indexes on its columns, and can use those indexes to speed up execution of queries that reference those columns.
IndexKeyValueIter is an iterator of index key values, that is, a tuple of the values that will be index keys.
IndexLookup is the implementation-specific definition of an index lookup, created by calls to Index.Get().
IndexValueIter is an iterator of index values.
InsertableTable is a table that can process insertion of new rows.
No description provided by the author
JSONValue is an integrator specific implementation of a JSON field value.
KeyValueCache is a cache of key value pairs.
No description provided by the author
Lockable should be implemented by tables that can be locked and unlocked.
MergeableIndexLookup is a specialization of IndexLookup that allows IndexLookups to be merged together.
No description provided by the author
Nameable is something that has a name.
NegateIndex is an index that supports retrieving negated values.
Node is a node in the execution plan tree.
NodeVisitor visits expressions in an expression tree.
NonDeterministicExpression allows a way for expressions to declare that they are non-deterministic, which will signal the engine to not cache their results when this would otherwise appear to be safe.
No description provided by the author
Represents all integer and floating point types.
OpaqueNode is a node that doesn't allow transformations to its children and acts a a black box.
Partition represents a partition from a SQL table.
PartitionCounter can return the number of partitions.
PartitionIndexKeyValueIter is an iterator of partitions that will return the partition and the IndexKeyValueIter of that partition.
PartitionIter is an iterator that retrieves partitions.
PrimaryKeyAlterableTable represents a table that supports primary key changes.
No description provided by the author
ProjectedTable is a table that can produce a specific RowIter that's more optimized given the columns that are projected.
No description provided by the author
Replacer allows rows to be replaced through a Delete (if applicable) then Insert.
Reporter is a component that gives information about the memory usage.
Resolvable is something that can be resolved or not.
RowDeleter is a delete cursor that can delete one or more rows from a table.
RowInserter is an insert cursor that can insert one or more values to a table.
RowIter is an iterator that produces rows.
RowReplacer is a combination of RowDeleter and RowInserter.
RowsCache is a cache of rows.
RowUpdater is an update cursor that can update one or more rows in a table.
SearchableJSONValue is JSONValue supporting in-place access operations.
Session holds the session data.
Represents the SET type.
StatisticsTable is a table that can provide information about its number of rows and other facts to improve query planning performance.
StoredProcedureDatabase is a database that supports the creation and execution of stored procedures.
StringType represents all string types, including VARCHAR and BLOB.
SystemVariableType represents a SQL type specifically (and only) used in system variables.
Table represents the backend of a SQL table.
Tableable is something that has a table.
TableCopierDatabase is a database that can copy a source table's data (without preserving indexed, fks, etc.) into another destination table.
TableCreator should be implemented by databases that can create new tables.
TableDropper should be implemented by databases that can drop tables.
TableEditor is the base interface for sub interfaces that can update rows in a table during an INSERT, REPLACE, UPDATE, or DELETE statement.
TableRenamer should be implemented by databases that can rename tables.
TableWrapper is a node that wraps the real table.
No description provided by the author
TemporaryTableCreator is a database that can create temporary tables that persist only as long as the session.
TemporaryTableDatabase is a database that can query the session (which manages the temporary table state) to retrieve the name of all temporary tables.
Represents the TIME type.
Transaction is an opaque type implemented by an integrator to record necessary information at the start of a transaction.
TransactionDatabase is a Database that can BEGIN, ROLLBACK and COMMIT transactions, as well as create SAVEPOINTS and restore to them.
TriggerDatabase is a Database that supports the creation and execution of triggers.
TruncateableTable is a table that can process the deletion of all rows.
Type represents a SQL type.
UpdateableTable is a table that can process updates of existing rows via update statements.
VersionedDatabase is a Database that can return tables as they existed at different points in time.
ViewDatabase is implemented by databases that persist view definitions.
Visitor visits expressions in an expression tree.
WindowAggregation implements a window aggregation expression.
Represents the YEAR type.
# Type aliases
CharacterSet represents the character set of a string.
No description provided by the author
ContextOption is a function to configure the context.
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
DisposeFunc is a function to completely erase a cache and remove it from the manager.
ForeignKeyReferenceOption is the behavior for this foreign key with the relevant action is performed on the foreign table.
IndexConstraint represents any constraints that should be applied to the index.
IndexStatus represents the current status in which the index is.
IndexUsing is the desired storage type.
LockState represents the different states a lock can be in.
NullOrdering represents how to order based on null values.
Row is a tuple of values.
Schema is the definition of a table.
No description provided by the author
SortOrder represents the order of the sort (ascending or descending).
SystemVariableScope represents the scope of a system variable.
No description provided by the author
TransformExprFunc is a function that given an expression will return that expression as is or transformed along with an error, if any.
TransformNodeFunc is a function that given a node will return that node as is or transformed along with an error, if any.
UnresolvedDatabase is a database which has not been resolved yet.