matchers

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToFloat64

func ToFloat64(v interface{}) (float64, bool)

func ToInt64

func ToInt64(v interface{}) (int64, bool)

Types

type Matcher

type Matcher struct {
	Store *storage.DB
	Index *graph.Index
}

func NewMatcher

func NewMatcher(store *storage.DB, index *graph.Index) *Matcher

func NewMatcherForMerge added in v0.2.0

func NewMatcherForMerge(store *storage.DB, index *graph.Index) *Matcher

func (*Matcher) EvaluateExpression

func (m *Matcher) EvaluateExpression(path map[string]interface{}, expr ast.Expr, params map[string]interface{}) bool

func (*Matcher) ExecuteMatch added in v0.2.0

func (m *Matcher) ExecuteMatch(stmt *ast.MatchStmt, params map[string]interface{}) (rows []map[string]interface{}, columns []string, err error)

func (*Matcher) ExecutePathForMerge added in v0.2.0

func (m *Matcher) ExecutePathForMerge(path *ast.PathExpr, params map[string]interface{}) ([]map[string]interface{}, error)

func (*Matcher) PropertyToInterface

func (m *Matcher) PropertyToInterface(prop graph.PropertyValue) interface{}

Jump to

Keyboard shortcuts

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