cel2sql

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupportedExpression = errors.New("unsupported CEL")

ErrUnsupportedExpression is a sentinel error returned when the CEL expression cannot be converted to a set of compatible SQL filters.

Functions

func Convert

func Convert(env *cel.Env, filters string) (string, error)

Convert takes CEL expressions and attempt to convert them into Postgres SQL filters.

Types

type SingleQuoted

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

func (*SingleQuoted) String

func (s *SingleQuoted) String() string

type Unquoted

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

func (*Unquoted) String

func (u *Unquoted) String() string

Jump to

Keyboard shortcuts

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