Versions in this module Expand all Collapse all v1 v1.0.0 May 24, 2019 Changes in this version + const ContainsPathAll + const ContainsPathOne + const LiteralFalse + const LiteralNil + const LiteralTrue + var ErrInvalidJSONContainsPathType = terror.ClassJSON.New(mysql.ErrInvalidJSONContainsPathType, ...) + var ErrInvalidJSONData = terror.ClassJSON.New(mysql.ErrInvalidJSONData, mysql.MySQLErrName[mysql.ErrInvalidJSONData]) + var ErrInvalidJSONPath = terror.ClassJSON.New(mysql.ErrInvalidJSONPath, mysql.MySQLErrName[mysql.ErrInvalidJSONPath]) + var ErrInvalidJSONPathWildcard = terror.ClassJSON.New(mysql.ErrInvalidJSONPathWildcard, ...) + var ErrInvalidJSONText = terror.ClassJSON.New(mysql.ErrInvalidJSONText, mysql.MySQLErrName[mysql.ErrInvalidJSONText]) + func CompareBinary(left, right BinaryJSON) int + func ContainsBinary(obj, target BinaryJSON) bool + func PeekBytesAsJSON(b []byte) (n int, err error) + type BinaryJSON struct + TypeCode TypeCode + Value []byte + func CreateBinary(in interface{}) BinaryJSON + func MergeBinary(bjs []BinaryJSON) BinaryJSON + func ParseBinaryFromString(s string) (bj BinaryJSON, err error) + func (bj *BinaryJSON) UnmarshalJSON(data []byte) error + func (bj BinaryJSON) Copy() BinaryJSON + func (bj BinaryJSON) Extract(pathExprList []PathExpression) (ret BinaryJSON, found bool) + func (bj BinaryJSON) GetElemCount() int + func (bj BinaryJSON) GetElemDepth() int + func (bj BinaryJSON) GetFloat64() float64 + func (bj BinaryJSON) GetInt64() int64 + func (bj BinaryJSON) GetKeys() BinaryJSON + func (bj BinaryJSON) GetString() []byte + func (bj BinaryJSON) GetUint64() uint64 + func (bj BinaryJSON) MarshalJSON() ([]byte, error) + func (bj BinaryJSON) Modify(pathExprList []PathExpression, values []BinaryJSON, mt ModifyType) (retj BinaryJSON, err error) + func (bj BinaryJSON) Quote() string + func (bj BinaryJSON) Remove(pathExprList []PathExpression) (BinaryJSON, error) + func (bj BinaryJSON) String() string + func (bj BinaryJSON) Type() string + func (bj BinaryJSON) Unquote() (string, error) + type ModifyType byte + const ModifyInsert + const ModifyReplace + const ModifySet + type PathExpression struct + func ParseJSONPathExpr(pathExpr string) (pe PathExpression, err error) + func (pe PathExpression) ContainsAnyAsterisk() bool + type TypeCode = byte + const TypeCodeArray + const TypeCodeFloat64 + const TypeCodeInt64 + const TypeCodeLiteral + const TypeCodeObject + const TypeCodeString + const TypeCodeUint64