package
0.0.0-20240827045243-13a6da0b124d
Repository: https://github.com/forhsd/postgresql-parser.git
Documentation: pkg.go.dev

# Functions

AllPaths returns a slice of new JSON documents, each a path to a leaf through the input.
Contains returns true if a contains b.
DecodeJSON decodes a value encoded with EncodeJSON.
DeepInsert inserts a value at a path in a JSON document.
DeepSet sets a path to a value in a JSON document.
EncodeInvertedIndexKeys takes in a key prefix and returns a slice of inverted index keys, one per unique path through the receiver.
EncodeJSON encodes a JSON value as a sequence of bytes.
FetchPath implements the #> operator.
FromBool returns a JSON value given a bool.
FromDecimal returns a JSON value given a apd.Decimal.
FromEncoding returns a JSON value which is lazily decoded.
FromFloat64 returns a JSON value given a float64.
FromInt returns a JSON value given a int.
FromInt64 returns a JSON value given a int64.
FromNumber returns a JSON value given a json.Number.
FromString returns a JSON value given a string.
MakeJSON returns a JSON value given a Go-style representation of JSON.
NewArrayBuilder returns an ArrayBuilder.
NewArrayBuilderWithCounter returns an ArrayBuilderWithCounter.
NewObjectBuilder returns an ObjectBuilder.
NumInvertedIndexEntries returns the number of inverted index entries that would be created for the given JSON value.
ParseJSON takes a string of JSON and returns a JSON value.
Pretty pretty-prints the given JSON document as required by jsonb_pretty.
Random generates a random JSON value.

# Constants

This enum defines the ordering of types.
This enum defines the ordering of types.
This enum defines the ordering of types.
This enum defines the ordering of types.
This enum defines the ordering of types.
This enum defines the ordering of types.
This enum defines the ordering of types.

# Variables

FalseJSONValue is JSON `false`.
NullJSONValue is JSON `null`.
TrueJSONValue is JSON `true`.

# Structs

ArrayBuilder builds JSON Array by a JSON sequence.
ArrayBuilderWithCounter builds JSON Array by a JSON sequence with a size counter.
ObjectBuilder builds JSON Object by a key value pair sequence.
ObjectIterator is an iterator to access the key value pair of an object in sorted order based on key.

# Interfaces

JSON represents a JSON value.

# Type aliases

Type represents a JSON type.