Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Todo) predicate.Todo
- func Done(v bool) predicate.Todo
- func DoneEQ(v bool) predicate.Todo
- func DoneNEQ(v bool) predicate.Todo
- func ID(id int64) predicate.Todo
- func IDEQ(id int64) predicate.Todo
- func IDGT(id int64) predicate.Todo
- func IDGTE(id int64) predicate.Todo
- func IDIn(ids ...int64) predicate.Todo
- func IDLT(id int64) predicate.Todo
- func IDLTE(id int64) predicate.Todo
- func IDNEQ(id int64) predicate.Todo
- func IDNotIn(ids ...int64) predicate.Todo
- func Not(p predicate.Todo) predicate.Todo
- func Or(predicates ...predicate.Todo) predicate.Todo
- func Text(v string) predicate.Todo
- func TextContains(v string) predicate.Todo
- func TextContainsFold(v string) predicate.Todo
- func TextEQ(v string) predicate.Todo
- func TextEqualFold(v string) predicate.Todo
- func TextGT(v string) predicate.Todo
- func TextGTE(v string) predicate.Todo
- func TextHasPrefix(v string) predicate.Todo
- func TextHasSuffix(v string) predicate.Todo
- func TextIn(vs ...string) predicate.Todo
- func TextLT(v string) predicate.Todo
- func TextLTE(v string) predicate.Todo
- func TextNEQ(v string) predicate.Todo
- func TextNotIn(vs ...string) predicate.Todo
- func ValidColumn(column string) bool
Constants ¶
View Source
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" // FieldText holds the string denoting the text field in the database. FieldText = "text" // 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 ¶
View Source
var ( // TextValidator is a validator for the "text" field. It is called by the builders before save. TextValidator func(string) error // DefaultDone holds the default value on creation for the "done" field. DefaultDone bool )
View Source
var Columns = []string{ FieldID, FieldText, FieldDone, }
Columns holds all SQL columns for todo fields.
Functions ¶
func TextContains ¶
TextContains applies the Contains predicate on the "text" field.
func TextContainsFold ¶
TextContainsFold applies the ContainsFold predicate on the "text" field.
func TextEqualFold ¶
TextEqualFold applies the EqualFold predicate on the "text" field.
func TextHasPrefix ¶
TextHasPrefix applies the HasPrefix predicate on the "text" field.
func TextHasSuffix ¶
TextHasSuffix applies the HasSuffix predicate on the "text" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.