Documentation ¶
Index ¶
- func ArrayValue(a document.Array) expr.LiteralValue
- func BlobValue(v []byte) expr.LiteralValue
- func BoolValue(v bool) expr.LiteralValue
- func DocumentValue(d document.Document) expr.LiteralValue
- func DoubleValue(v float64) expr.LiteralValue
- func Dump(t testing.TB, v interface{})
- func IntegerValue(v int64) expr.LiteralValue
- func IteratorToJSONArray(w io.Writer, s document.Iterator) error
- func MakeArray(t testing.TB, jsonArray string) document.Array
- func MakeArrayValue(t testing.TB, vs ...interface{}) document.Value
- func MakeDocument(t testing.TB, jsonDoc string) document.Document
- func MakeValue(t testing.TB, v interface{}) document.Value
- func MakeValueBuffer(t testing.TB, jsonArray string) *document.ValueBuffer
- func NullValue() expr.LiteralValue
- func ParseNamedExpr(t testing.TB, s string, name ...string) expr.Expr
- func ParsePath(t testing.TB, p string) expr.Path
- func RequireDocEqual(t testing.TB, d1, d2 document.Document)
- func RequireDocJSONEq(t testing.TB, d document.Document, expected string)
- func RequireStreamEq(t *testing.T, raw string, res *query.Result)
- func TextValue(v string) expr.LiteralValue
- type Docs
- type KV
- type ResultStream
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayValue ¶
func ArrayValue(a document.Array) expr.LiteralValue
ArrayValue creates a litteral value of type Array.
func BlobValue ¶
func BlobValue(v []byte) expr.LiteralValue
BlobValue creates a litteral value of type Blob.
func BoolValue ¶
func BoolValue(v bool) expr.LiteralValue
BoolValue creates a litteral value of type Bool.
func DocumentValue ¶
func DocumentValue(d document.Document) expr.LiteralValue
DocumentValue creates a litteral value of type Document.
func DoubleValue ¶
func DoubleValue(v float64) expr.LiteralValue
DoubleValue creates a litteral value of type Double.
func IntegerValue ¶
func IntegerValue(v int64) expr.LiteralValue
IntegerValue creates a litteral value of type Integer.
func IteratorToJSONArray ¶
IteratorToJSONArray encodes all the documents of an iterator to a JSON array.
func MakeDocument ¶
MakeDocument creates a document from a json string.
func MakeValueBuffer ¶
func MakeValueBuffer(t testing.TB, jsonArray string) *document.ValueBuffer
func NullValue ¶
func NullValue() expr.LiteralValue
NullValue creates a litteral value of type Null.
func TextValue ¶
func TextValue(v string) expr.LiteralValue
TextValue creates a litteral value of type Text.
Types ¶
type Docs ¶
func MakeDocuments ¶
MakeDocuments creates a slice of document from json strings.
type KV ¶
type KV struct {
Key, Value []byte
}
KV is used to represent key-value pairs stored in tables or indexes.
func GetIndexContent ¶
GetIndexContent iterates over the entire index and returns all the key-value pairs in order.
type ResultStream ¶
func ParseResultStream ¶
func ParseResultStream(stream string) *ResultStream