package
2.0.0+incompatible
Repository: https://github.com/nerdatmath/vitess.git
Documentation: pkg.go.dev

# Functions

AddFilteredReplicationUnfriendly annotates the given 'sql' query as filtered-replication-unfriendly.
AddFilteredReplicationUnfriendlyIfDML annotates the given 'sql' query as filtered-replication-unfriendly if its a DML statement (filtered-replication should halt if it encounters such an annotation).
AddIfDML annotates 'sql' based on the keyspaceIDs found in 'keyspaceIDs': If 'sql' is not a DML statement no annotation is added.
AddKeyspaceID returns a copy of 'sql' annotated with the given keyspace id.
AddKeyspaceIDIfDML returns a copy of 'sql' annotated with the given keyspace id if 'sql' is a DML statement; otherwise, it returns a copy of 'sql'.
ExtractKeySpaceID parses the annotation of the given statement and tries to extract the keyspace id.

# Constants

Possible values for ExtractKeySpaceIDError.Kind.
Possible values for ExtractKeySpaceIDError.Kind.

# Structs

ExtractKeySpaceIDError is the error type returned from ExtractKeySpaceID Kind is a numeric code for the error (see constants below) and Message is an error message string.