scope

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func And added in v0.8.0

func And(params ...presto.ScopeFunc) presto.ScopeFunc

And generates a presto.ScopeFunc that concatenates a set of other ScopeFunc's into a single expression

func Integer

func Integer(params ...string) presto.ScopeFunc

Integer generates a presto.ScoperFunc using the values provided. Every context parameter will be compared with an "equals" comparison scope.

func NotDeleted

func NotDeleted(ctx presto.Context) (expression.Expression, *derp.Error)

NotDeleted filters out all records that have not been "virtually deleted" from the database.

func ObjectID

func ObjectID(params ...string) presto.ScopeFunc

ObjectID generates a presto.ScoperFunc using the values provided. It will attempt to convert every context parameter into a mongodb primitive.ObjectId

func Or added in v0.8.0

func Or(params ...presto.ScopeFunc) presto.ScopeFunc

Or generates a presto.ScopeFunc that concatenates a set of other ScopeFunc's into a single expression

func String

func String(params ...string) presto.ScopeFunc

String generates a presto.ScoperFunc using the values provided. Every context parameter will be compared with an "equals" comparison scope.

Types

This section is empty.

Jump to

Keyboard shortcuts

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