Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Todo) predicate.Todo
- func Description(v string) predicate.Todo
- func DescriptionContains(v string) predicate.Todo
- func DescriptionContainsFold(v string) predicate.Todo
- func DescriptionEQ(v string) predicate.Todo
- func DescriptionEqualFold(v string) predicate.Todo
- func DescriptionGT(v string) predicate.Todo
- func DescriptionGTE(v string) predicate.Todo
- func DescriptionHasPrefix(v string) predicate.Todo
- func DescriptionHasSuffix(v string) predicate.Todo
- func DescriptionIn(vs ...string) predicate.Todo
- func DescriptionIsNil() predicate.Todo
- func DescriptionLT(v string) predicate.Todo
- func DescriptionLTE(v string) predicate.Todo
- func DescriptionNEQ(v string) predicate.Todo
- func DescriptionNotIn(vs ...string) predicate.Todo
- func DescriptionNotNil() predicate.Todo
- func ID(id string) predicate.Todo
- func IDContainsFold(id string) predicate.Todo
- func IDEQ(id string) predicate.Todo
- func IDEqualFold(id string) predicate.Todo
- func IDGT(id string) predicate.Todo
- func IDGTE(id string) predicate.Todo
- func IDIn(ids ...string) predicate.Todo
- func IDLT(id string) predicate.Todo
- func IDLTE(id string) predicate.Todo
- func IDNEQ(id string) predicate.Todo
- func IDNotIn(ids ...string) predicate.Todo
- func Name(v string) predicate.Todo
- func NameContains(v string) predicate.Todo
- func NameContainsFold(v string) predicate.Todo
- func NameEQ(v string) predicate.Todo
- func NameEqualFold(v string) predicate.Todo
- func NameGT(v string) predicate.Todo
- func NameGTE(v string) predicate.Todo
- func NameHasPrefix(v string) predicate.Todo
- func NameHasSuffix(v string) predicate.Todo
- func NameIn(vs ...string) predicate.Todo
- func NameLT(v string) predicate.Todo
- func NameLTE(v string) predicate.Todo
- func NameNEQ(v string) predicate.Todo
- func NameNotIn(vs ...string) predicate.Todo
- func Not(p predicate.Todo) predicate.Todo
- func Or(predicates ...predicate.Todo) predicate.Todo
- func ValidColumn(column string) bool
- type OrderOption
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" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // Table holds the table name of the todo in the database. Table = "todos" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldDescription, }
Columns holds all SQL columns for todo fields.
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error )
Functions ¶
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" 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 Todo queries.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.