Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Eval) predicate.Eval
- func ID(id int) predicate.Eval
- func IDEQ(id int) predicate.Eval
- func IDGT(id int) predicate.Eval
- func IDGTE(id int) predicate.Eval
- func IDIn(ids ...int) predicate.Eval
- func IDLT(id int) predicate.Eval
- func IDLTE(id int) predicate.Eval
- func IDNEQ(id int) predicate.Eval
- func IDNotIn(ids ...int) predicate.Eval
- func Not(p predicate.Eval) predicate.Eval
- func Or(predicates ...predicate.Eval) predicate.Eval
- func Snippet(v string) predicate.Eval
- func SnippetContains(v string) predicate.Eval
- func SnippetContainsFold(v string) predicate.Eval
- func SnippetEQ(v string) predicate.Eval
- func SnippetEqualFold(v string) predicate.Eval
- func SnippetGT(v string) predicate.Eval
- func SnippetGTE(v string) predicate.Eval
- func SnippetHasPrefix(v string) predicate.Eval
- func SnippetHasSuffix(v string) predicate.Eval
- func SnippetIn(vs ...string) predicate.Eval
- func SnippetLT(v string) predicate.Eval
- func SnippetLTE(v string) predicate.Eval
- func SnippetNEQ(v string) predicate.Eval
- func SnippetNotIn(vs ...string) predicate.Eval
- func Time(v string) predicate.Eval
- func TimeContains(v string) predicate.Eval
- func TimeContainsFold(v string) predicate.Eval
- func TimeEQ(v string) predicate.Eval
- func TimeEqualFold(v string) predicate.Eval
- func TimeGT(v string) predicate.Eval
- func TimeGTE(v string) predicate.Eval
- func TimeHasPrefix(v string) predicate.Eval
- func TimeHasSuffix(v string) predicate.Eval
- func TimeIn(vs ...string) predicate.Eval
- func TimeLT(v string) predicate.Eval
- func TimeLTE(v string) predicate.Eval
- func TimeNEQ(v string) predicate.Eval
- func TimeNotIn(vs ...string) predicate.Eval
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldSnippet, FieldResult, FieldTime, }
Columns holds all SQL columns for eval fields.
Functions ¶
func Snippet ¶
Snippet applies equality check predicate on the "snippet" field. It's identical to SnippetEQ.
func SnippetContains ¶
SnippetContains applies the Contains predicate on the "snippet" field.
func SnippetContainsFold ¶
SnippetContainsFold applies the ContainsFold predicate on the "snippet" field.
func SnippetEqualFold ¶
SnippetEqualFold applies the EqualFold predicate on the "snippet" field.
func SnippetGTE ¶
SnippetGTE applies the GTE predicate on the "snippet" field.
func SnippetHasPrefix ¶
SnippetHasPrefix applies the HasPrefix predicate on the "snippet" field.
func SnippetHasSuffix ¶
SnippetHasSuffix applies the HasSuffix predicate on the "snippet" field.
func SnippetLTE ¶
SnippetLTE applies the LTE predicate on the "snippet" field.
func SnippetNEQ ¶
SnippetNEQ applies the NEQ predicate on the "snippet" field.
func SnippetNotIn ¶
SnippetNotIn applies the NotIn predicate on the "snippet" field.
func TimeContains ¶
TimeContains applies the Contains predicate on the "time" field.
func TimeContainsFold ¶
TimeContainsFold applies the ContainsFold predicate on the "time" field.
func TimeEqualFold ¶
TimeEqualFold applies the EqualFold predicate on the "time" field.
func TimeHasPrefix ¶
TimeHasPrefix applies the HasPrefix predicate on the "time" field.
func TimeHasSuffix ¶
TimeHasSuffix applies the HasSuffix predicate on the "time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.