Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Book) predicate.Book
- func HasOwner() predicate.Book
- func HasOwnerWith(preds ...predicate.Customer) predicate.Book
- func ID(id int) predicate.Book
- func IDEQ(id int) predicate.Book
- func IDGT(id int) predicate.Book
- func IDGTE(id int) predicate.Book
- func IDIn(ids ...int) predicate.Book
- func IDLT(id int) predicate.Book
- func IDLTE(id int) predicate.Book
- func IDNEQ(id int) predicate.Book
- func IDNotIn(ids ...int) predicate.Book
- func Not(p predicate.Book) predicate.Book
- func Or(predicates ...predicate.Book) predicate.Book
- func ValidColumn(column string) bool
Constants ¶
View Source
const ( // Label holds the string label denoting the book type in the database. Label = "book" // FieldID holds the string denoting the id field in the database. FieldID = "id" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // Table holds the table name of the book in the database. Table = "books" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "books" // OwnerInverseTable is the table name for the Customer entity. // It exists in this package in order to avoid circular dependency with the "customer" package. OwnerInverseTable = "customers" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "customer_books" )
Variables ¶
View Source
var Columns = []string{ FieldID, }
Columns holds all SQL columns for book fields.
View Source
var ForeignKeys = []string{
"customer_books",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "books" table and are not defined as standalone fields in the schema.
Functions ¶
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
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.