Documentation
¶
Index ¶
Constants ¶
View Source
const (
JSONNull = "null"
)
Variables ¶
View Source
var ErrUnexpectedJSONTypeIn = errors.New("unexpected type during JSON marshalling")
View Source
var ErrUnexpectedJSONTypeOut = errors.New("unexpected type during JSON unmarshalling")
Functions ¶
func MustTypesJSON ¶
Types ¶
type NomsJSON ¶
NomsJSON is a type alias for types.JSON. The alias allows MySQL-specific logic to be kept separate from the storage-layer code in pkg types.
func MustNomsJSON ¶
func MustNomsJSONWithVRW ¶
func MustNomsJSONWithVRW(vrw types.ValueReadWriter, str string) NomsJSON
func NomsJSONFromJSONValue ¶
func NomsJSONFromJSONValue(ctx context.Context, vrw types.ValueReadWriter, val sql.JSONValue) (NomsJSON, error)
NomsJSONFromJSONValue converts a sql.JSONValue to a NomsJSON value.
func (NomsJSON) Unmarshall ¶
Unmarshall implements the sql.JSONValue interface.
Click to show internal directories.
Click to hide internal directories.