{"modulePath":"github.com/cockroachdb/cockroachdb-parser","version":"v0.25.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package treebin\n\nPackage treebin contains the implementation-agnostic information about all binary operators that we support.\n\n## Functions\n\n```go\nfunc BinaryOpName(op BinaryOperatorSymbol) string\n```\nBinaryOpName returns the name of op.\n\n## Types\n\n```go\ntype BinaryOperator struct {\n\tSymbol BinaryOperatorSymbol\n\t// IsExplicitOperator is true if OPERATOR(symbol) is used.\n\tIsExplicitOperator bool\n}\n```\nBinaryOperator represents a unary operator used in a BinaryExpr.\n\n```go\nfunc MakeBinaryOperator(symbol BinaryOperatorSymbol) BinaryOperator\n```\nMakeBinaryOperator creates a BinaryOperator given a symbol.\n\n```go\nfunc (BinaryOperator) Operator()\n```\nOperator implements tree.Operator.\n\n```go\nfunc (o BinaryOperator) String() string\n```\n\n```go\ntype BinaryOperatorSymbol uint8\n```\nBinaryOperatorSymbol is a symbol for a binary operator.\n\n```go\nconst (\n\tBitand BinaryOperatorSymbol = iota\n\tBitor\n\tBitxor\n\tPlus\n\tMinus\n\tMult\n\tDiv\n\tFloorDiv\n\tMod\n\tPow\n\tConcat\n\tLShift\n\tRShift\n\tJSONFetchVal\n\tJSONFetchText\n\tJSONFetchValPath\n\tJSONFetchTextPath\n\tTSMatch\n\tDistance\n\tCosDistance\n\tNegInnerProduct\n\n\tNumBinaryOperatorSymbols\n)\n```\nBinaryExpr.Operator\n\n```go\nfunc (i BinaryOperatorSymbol) IsPadded() bool\n```\nIsPadded returns whether the binary operator needs to be padded.\n\n```go\nfunc (i BinaryOperatorSymbol) String() string\n```\n\n","path":"github.com/cockroachdb/cockroachdb-parser/pkg/sql/sem/tree/treebin","name":"treebin","synopsis":"Package treebin contains the implementation-agnostic information about all binary operators that we support.","isRedistributable":true}
