query

package
v0.0.0-...-9ff59ee Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2019 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenAQLFilterStatement

func GenAQLFilterStatement(fmap map[string]string, filters []*Filter) (string, error)

GenAQLFilterStatement generates an AQL(arangodb query language) compatible filter query statement

Types

type Filter

type Filter struct {
	// Field of the object on which the filter will be applied
	Field string
	// Type of filter for matching or exclusion
	Operator string
	// The value to match or exclude
	Value string
	// Logic for combining multiple filter expressions, usually "AND" or "OR"
	Logic string
}

Filter is a container for filter parameters

func ParseFilterString

func ParseFilterString(fstr string) ([]*Filter, error)

ParseFilterString parses a predefined filter string to Filter structure. The filter string specification is defined in corresponding protocol buffer definition.

Jump to

Keyboard shortcuts

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