Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Todo) predicate.Todo
- func Done(v bool) predicate.Todo
- func DoneEQ(v bool) predicate.Todo
- func DoneIsNil() predicate.Todo
- func DoneNEQ(v bool) predicate.Todo
- func DoneNotNil() predicate.Todo
- func ID(id int) predicate.Todo
- func IDEQ(id int) predicate.Todo
- func IDGT(id int) predicate.Todo
- func IDGTE(id int) predicate.Todo
- func IDIn(ids ...int) predicate.Todo
- func IDLT(id int) predicate.Todo
- func IDLTE(id int) predicate.Todo
- func IDNEQ(id int) predicate.Todo
- func IDNotIn(ids ...int) predicate.Todo
- func Not(p predicate.Todo) predicate.Todo
- func Or(predicates ...predicate.Todo) predicate.Todo
- func Title(v string) predicate.Todo
- func TitleContains(v string) predicate.Todo
- func TitleContainsFold(v string) predicate.Todo
- func TitleEQ(v string) predicate.Todo
- func TitleEqualFold(v string) predicate.Todo
- func TitleGT(v string) predicate.Todo
- func TitleGTE(v string) predicate.Todo
- func TitleHasPrefix(v string) predicate.Todo
- func TitleHasSuffix(v string) predicate.Todo
- func TitleIn(vs ...string) predicate.Todo
- func TitleLT(v string) predicate.Todo
- func TitleLTE(v string) predicate.Todo
- func TitleNEQ(v string) predicate.Todo
- func TitleNotIn(vs ...string) predicate.Todo
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the todo type in the database. Label = "todo" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldDone holds the string denoting the done field in the database. FieldDone = "done" // Table holds the table name of the todo in the database. Table = "todos" )
Variables ¶
var Columns = []string{ FieldID, FieldTitle, FieldDone, }
Columns holds all SQL columns for todo fields.
Functions ¶
func DoneNotNil ¶
DoneNotNil applies the NotNil predicate on the "done" field.
func Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.