Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Human) predicate.Human
- func ID(id uuid.UUID) predicate.Human
- func IDEQ(id uuid.UUID) predicate.Human
- func IDGT(id uuid.UUID) predicate.Human
- func IDGTE(id uuid.UUID) predicate.Human
- func IDIn(ids ...uuid.UUID) predicate.Human
- func IDLT(id uuid.UUID) predicate.Human
- func IDLTE(id uuid.UUID) predicate.Human
- func IDNEQ(id uuid.UUID) predicate.Human
- func IDNotIn(ids ...uuid.UUID) predicate.Human
- func Name(v string) predicate.Human
- func NameContains(v string) predicate.Human
- func NameContainsFold(v string) predicate.Human
- func NameEQ(v string) predicate.Human
- func NameEqualFold(v string) predicate.Human
- func NameGT(v string) predicate.Human
- func NameGTE(v string) predicate.Human
- func NameHasPrefix(v string) predicate.Human
- func NameHasSuffix(v string) predicate.Human
- func NameIn(vs ...string) predicate.Human
- func NameLT(v string) predicate.Human
- func NameLTE(v string) predicate.Human
- func NameNEQ(v string) predicate.Human
- func NameNotIn(vs ...string) predicate.Human
- func Not(p predicate.Human) predicate.Human
- func Or(predicates ...predicate.Human) predicate.Human
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
View Source
const ( // Label holds the string label denoting the human type in the database. Label = "human" // 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" // Table holds the table name of the human in the database. Table = "humen" )
Variables ¶
View Source
var Columns = []string{ FieldID, FieldName, }
Columns holds all SQL columns for human fields.
Functions ¶
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 Human queries.
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.
Click to show internal directories.
Click to hide internal directories.