Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Customer) predicate.Customer
- func HasBooks() predicate.Customer
- func HasBooksWith(preds ...predicate.Book) predicate.Customer
- func ID(id int) predicate.Customer
- func IDEQ(id int) predicate.Customer
- func IDGT(id int) predicate.Customer
- func IDGTE(id int) predicate.Customer
- func IDIn(ids ...int) predicate.Customer
- func IDLT(id int) predicate.Customer
- func IDLTE(id int) predicate.Customer
- func IDNEQ(id int) predicate.Customer
- func IDNotIn(ids ...int) predicate.Customer
- func Name(v string) predicate.Customer
- func NameContains(v string) predicate.Customer
- func NameContainsFold(v string) predicate.Customer
- func NameEQ(v string) predicate.Customer
- func NameEqualFold(v string) predicate.Customer
- func NameGT(v string) predicate.Customer
- func NameGTE(v string) predicate.Customer
- func NameHasPrefix(v string) predicate.Customer
- func NameHasSuffix(v string) predicate.Customer
- func NameIn(vs ...string) predicate.Customer
- func NameLT(v string) predicate.Customer
- func NameLTE(v string) predicate.Customer
- func NameNEQ(v string) predicate.Customer
- func NameNotIn(vs ...string) predicate.Customer
- func Not(p predicate.Customer) predicate.Customer
- func Or(predicates ...predicate.Customer) predicate.Customer
- func ValidColumn(column string) bool
Constants ¶
View Source
const ( // Label holds the string label denoting the customer type in the database. Label = "customer" // 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" // EdgeBooks holds the string denoting the books edge name in mutations. EdgeBooks = "books" // Table holds the table name of the customer in the database. Table = "customers" // BooksTable is the table that holds the books relation/edge. BooksTable = "books" // BooksInverseTable is the table name for the Book entity. // It exists in this package in order to avoid circular dependency with the "book" package. BooksInverseTable = "books" // BooksColumn is the table column denoting the books relation/edge. BooksColumn = "customer_books" )
Variables ¶
View Source
var Columns = []string{ FieldID, FieldName, }
Columns holds all SQL columns for customer fields.
Functions ¶
func HasBooksWith ¶
HasBooksWith applies the HasEdge predicate on the "books" edge with a given conditions (other predicates).
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 ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.