document

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEndRangeValue

func GetEndRangeValue(value string) string

GetEndRangeValue - Get end range value to implement "startsWith" expression operator using where clause. For example with sdk.Expression("pk", "startsWith", "Customer#") this translates to: WHERE pk >= {startRangeValue} AND pk < {endRangeValue} WHERE pk >= "Customer#" AND pk < "Customer!"

func ValidateCollection

func ValidateCollection(collection *sdk.Collection) error

ValidateCollection - validates a collection key, used for operations on a single document/collection e.g. Get, Set, Delete

func ValidateExpressions

func ValidateExpressions(expressions []sdk.QueryExpression) error

ValidateExpressions - Validate the provided query expressions

func ValidateKey

func ValidateKey(key *sdk.Key) error

ValidateKey - validates a document key, used for operations on a single document e.g. Get, Set, Delete

func ValidateQueryCollection

func ValidateQueryCollection(collection *sdk.Collection) error

ValidateQueryCollection - Validates a collection used for query operations. unique from ValidateCollection in that it calls ValidateQueryKey for the collection.Key

func ValidateQueryKey

func ValidateQueryKey(key *sdk.Key) error

ValidateQueryKey - Validates a key used for query operations. unique from ValidateKey in that it permits blank key.Id values for wildcard query scenarios. e.g. querying values in a sub-collection for all documents in the parent collection.

Types

type ExpsSort

type ExpsSort []sdk.QueryExpression

func (ExpsSort) Len

func (exps ExpsSort) Len() int

func (ExpsSort) Less

func (exps ExpsSort) Less(i, j int) bool

Less - Sort by Operand then Operator then Value

func (ExpsSort) Swap

func (exps ExpsSort) Swap(i, j int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL