spanfiltering

package
v0.59.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 8 Imported by: 1

Documentation

Overview

Package spanfiltering provides primitives for transpiling AIP filter expressions to Spanner SQL expressions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TranspileFilter

func TranspileFilter(filter filtering.Filter) (spansql.BoolExpr, map[string]interface{}, error)

TranspileFilter transpiles a parsed AIP filter expression to a spansql.BoolExpr, and parameters used in the expression. The parameter map is nil if the expression does not contain any parameters.

Types

type Transpiler

type Transpiler struct {
	// contains filtered or unexported fields
}

func (*Transpiler) Init

func (t *Transpiler) Init(filter filtering.Filter)

func (*Transpiler) Transpile

func (t *Transpiler) Transpile() (spansql.BoolExpr, map[string]interface{}, error)

Jump to

Keyboard shortcuts

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