serializer

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidFilterValue = errors.New("invalid filter value")

Functions

This section is empty.

Types

type Mongo

type Mongo struct {
}

func (*Mongo) Parse

func (*Mongo) Parse(tree *filterparser.Node) (bson.M, error)

type Postgres

type Postgres struct {
}

func (*Postgres) Parse

func (*Postgres) Parse(expr []string, sb WherableBuilder) string

type WherableBuilder

type WherableBuilder interface {
	GreaterEqualThan(field string, value interface{}) string
	GreaterThan(field string, value interface{}) string
	LessEqualThan(field string, value interface{}) string
	LessThan(field string, value interface{}) string
	NotEqual(field string, value interface{}) string
	Equal(field string, value interface{}) string
	In(field string, value ...interface{}) string
	Or(orExpr ...string) string
	And(andExpr ...string) string
}

Jump to

Keyboard shortcuts

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