Versions in this module Expand all Collapse all v0 v0.0.8 Feb 17, 2022 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 ErrInvalidJSONPathArrayCell = terror.ClassJSON.New(mysql.ErrInvalidJSONPathArrayCell, ...) + var ErrInvalidJSONPathWildcard = terror.ClassJSON.New(mysql.ErrInvalidJSONPathWildcard, ...) + var ErrInvalidJSONText = terror.ClassJSON.New(mysql.ErrInvalidJSONText, mysql.MySQLErrName[mysql.ErrInvalidJSONText]) + var ErrJSONDocumentNULLKey = terror.ClassJSON.New(mysql.ErrJSONDocumentNULLKey, mysql.MySQLErrName[mysql.ErrJSONDocumentNULLKey]) + var ErrUnsupportedSecondArgumentType = terror.ClassJSON.New(mysql.ErrUnsupportedSecondArgumentType, ...) + func CompareBinary(left, right BinaryJSON) int + func ContainsBinary(obj, target BinaryJSON) bool + func PeekBytesAsJSON(b []byte) (n int, err error) + func UnquoteString(str string) (string, 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) ArrayInsert(pathExpr PathExpression, value BinaryJSON) (res BinaryJSON, err 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) Remove(pathExprList []PathExpression) (BinaryJSON, error) + func (bj BinaryJSON) Search(containType string, search string, escape byte, pathExpres []PathExpression) (res BinaryJSON, isNull bool, err error) + func (bj BinaryJSON) String() string + func (bj BinaryJSON) Type() string + func (bj BinaryJSON) Unquote() (string, error) + func (bj BinaryJSON) Walk(walkFn BinaryJSONWalkFunc, pathExprList ...PathExpression) (err error) + type BinaryJSONWalkFunc func(fullpath PathExpression, bj BinaryJSON) (stop bool, err 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 + func (pe PathExpression) String() string + type TypeCode = byte + const TypeCodeArray + const TypeCodeFloat64 + const TypeCodeInt64 + const TypeCodeLiteral + const TypeCodeObject + const TypeCodeString + const TypeCodeUint64