package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev
# Functions
CombineCompareResult combines two comparison results.
DecodeColumnFieldTypes is used to decode column field types from Lattice.
Encode is used to encode a Table.
EqualitySingleton wraps an unordered value with equality defined by custom code instead of the `==` operator.
FieldTp is used for the column field type (`github.com/pingcap/tidb/pkg/parser/types.FieldType.Tp`).
Map wraps a LatticeMap instance into a Lattice.
Maybe includes `nil` as the universal lower bound of the original Lattice.
MaybeSingletonInterface is a convenient function calling `Maybe(Singleton(value))`.
MaybeSingletonString is a convenient function calling `Maybe(Singleton(s))`.
Singleton wraps an unordered value.
Type is to create type.
# Constants
ErrMsgAtMapKey is the error message for at map key.
ErrMsgAtTupleIndex is the error message for at tuple index.
Please ensure this list is synchronized with the order of Tuple{} in encodeFieldTypeToLattice().
ErrMsgContradictingOrders is the error message for contradicting orders.
ErrMsgDistinctSingletons is the error message for distinct singletons.
ErrMsgIncompatibleType is the error message for incompatible type.
ErrMsgNonInclusiveBitSets is the error message for non-inclusive bit sets.
ErrMsgStringListElemMismatch is the error message for string list elem mismatch.
ErrMsgTupleLengthMismatch is the error message for tuple length mismatch.
ErrMsgTypeMismatch is the error message for type mismatch.
# Structs
IncompatibleError is the error type for incompatible schema.
Table is a table in the database.
# Interfaces
Equality allows custom equality.
Lattice is implemented for types which forms a join-semilattice.
LatticeMap is a map of Lattice objects keyed by strings.
# Type aliases
BitSet is a set of bits where `a < b` iff `a` is a subset of `b`.
Bool is a boolean implementing Lattice where `false < true`.
Byte is a byte implementing Lattice.
Int is an int implementing Lattice.
Int64 is an int64 implementing Lattice.
StringList is a list of string where `a <= b` iff `a == b[:len(a)]`.
Tuple of Lattice instances.
Uint is a uint implementing Lattice.