eval

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the eval type in the database.
	Label = "eval"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldSnippet holds the string denoting the snippet field in the database.
	FieldSnippet = "snippet"
	// FieldResult holds the string denoting the result field in the database.
	FieldResult = "result"
	// FieldTime holds the string denoting the time field in the database.
	FieldTime = "time"
	// Table holds the table name of the eval in the database.
	Table = "evals"
)

Variables

Columns holds all SQL columns for eval fields.

Functions

func And

func And(predicates ...predicate.Eval) predicate.Eval

And groups predicates with the AND operator between them.

func ID

func ID(id int) predicate.Eval

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Eval

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Eval

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Eval

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Eval

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Eval

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Eval

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Eval

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Eval

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Eval) predicate.Eval

Or groups predicates with the OR operator between them.

func Snippet

func Snippet(v string) predicate.Eval

Snippet applies equality check predicate on the "snippet" field. It's identical to SnippetEQ.

func SnippetContains

func SnippetContains(v string) predicate.Eval

SnippetContains applies the Contains predicate on the "snippet" field.

func SnippetContainsFold

func SnippetContainsFold(v string) predicate.Eval

SnippetContainsFold applies the ContainsFold predicate on the "snippet" field.

func SnippetEQ

func SnippetEQ(v string) predicate.Eval

SnippetEQ applies the EQ predicate on the "snippet" field.

func SnippetEqualFold

func SnippetEqualFold(v string) predicate.Eval

SnippetEqualFold applies the EqualFold predicate on the "snippet" field.

func SnippetGT

func SnippetGT(v string) predicate.Eval

SnippetGT applies the GT predicate on the "snippet" field.

func SnippetGTE

func SnippetGTE(v string) predicate.Eval

SnippetGTE applies the GTE predicate on the "snippet" field.

func SnippetHasPrefix

func SnippetHasPrefix(v string) predicate.Eval

SnippetHasPrefix applies the HasPrefix predicate on the "snippet" field.

func SnippetHasSuffix

func SnippetHasSuffix(v string) predicate.Eval

SnippetHasSuffix applies the HasSuffix predicate on the "snippet" field.

func SnippetIn

func SnippetIn(vs ...string) predicate.Eval

SnippetIn applies the In predicate on the "snippet" field.

func SnippetLT

func SnippetLT(v string) predicate.Eval

SnippetLT applies the LT predicate on the "snippet" field.

func SnippetLTE

func SnippetLTE(v string) predicate.Eval

SnippetLTE applies the LTE predicate on the "snippet" field.

func SnippetNEQ

func SnippetNEQ(v string) predicate.Eval

SnippetNEQ applies the NEQ predicate on the "snippet" field.

func SnippetNotIn

func SnippetNotIn(vs ...string) predicate.Eval

SnippetNotIn applies the NotIn predicate on the "snippet" field.

func Time

func Time(v string) predicate.Eval

Time applies equality check predicate on the "time" field. It's identical to TimeEQ.

func TimeContains

func TimeContains(v string) predicate.Eval

TimeContains applies the Contains predicate on the "time" field.

func TimeContainsFold

func TimeContainsFold(v string) predicate.Eval

TimeContainsFold applies the ContainsFold predicate on the "time" field.

func TimeEQ

func TimeEQ(v string) predicate.Eval

TimeEQ applies the EQ predicate on the "time" field.

func TimeEqualFold

func TimeEqualFold(v string) predicate.Eval

TimeEqualFold applies the EqualFold predicate on the "time" field.

func TimeGT

func TimeGT(v string) predicate.Eval

TimeGT applies the GT predicate on the "time" field.

func TimeGTE

func TimeGTE(v string) predicate.Eval

TimeGTE applies the GTE predicate on the "time" field.

func TimeHasPrefix

func TimeHasPrefix(v string) predicate.Eval

TimeHasPrefix applies the HasPrefix predicate on the "time" field.

func TimeHasSuffix

func TimeHasSuffix(v string) predicate.Eval

TimeHasSuffix applies the HasSuffix predicate on the "time" field.

func TimeIn

func TimeIn(vs ...string) predicate.Eval

TimeIn applies the In predicate on the "time" field.

func TimeLT

func TimeLT(v string) predicate.Eval

TimeLT applies the LT predicate on the "time" field.

func TimeLTE

func TimeLTE(v string) predicate.Eval

TimeLTE applies the LTE predicate on the "time" field.

func TimeNEQ

func TimeNEQ(v string) predicate.Eval

TimeNEQ applies the NEQ predicate on the "time" field.

func TimeNotIn

func TimeNotIn(vs ...string) predicate.Eval

TimeNotIn applies the NotIn predicate on the "time" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Eval queries.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func BySnippet

func BySnippet(opts ...sql.OrderTermOption) OrderOption

BySnippet orders the results by the snippet field.

func ByTime

func ByTime(opts ...sql.OrderTermOption) OrderOption

ByTime orders the results by the time field.

Jump to

Keyboard shortcuts

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