Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.BookLoan) predicate.BookLoan
- func CreateAt(v time.Time) predicate.BookLoan
- func CreateAtEQ(v time.Time) predicate.BookLoan
- func CreateAtGT(v time.Time) predicate.BookLoan
- func CreateAtGTE(v time.Time) predicate.BookLoan
- func CreateAtIn(vs ...time.Time) predicate.BookLoan
- func CreateAtLT(v time.Time) predicate.BookLoan
- func CreateAtLTE(v time.Time) predicate.BookLoan
- func CreateAtNEQ(v time.Time) predicate.BookLoan
- func CreateAtNotIn(vs ...time.Time) predicate.BookLoan
- func DeliveryDate(v time.Time) predicate.BookLoan
- func DeliveryDateEQ(v time.Time) predicate.BookLoan
- func DeliveryDateGT(v time.Time) predicate.BookLoan
- func DeliveryDateGTE(v time.Time) predicate.BookLoan
- func DeliveryDateIn(vs ...time.Time) predicate.BookLoan
- func DeliveryDateLT(v time.Time) predicate.BookLoan
- func DeliveryDateLTE(v time.Time) predicate.BookLoan
- func DeliveryDateNEQ(v time.Time) predicate.BookLoan
- func DeliveryDateNotIn(vs ...time.Time) predicate.BookLoan
- func HasBook() predicate.BookLoan
- func HasBookWith(preds ...predicate.Book) predicate.BookLoan
- func HasUser() predicate.BookLoan
- func HasUserWith(preds ...predicate.User) predicate.BookLoan
- func ID(id uuid.UUID) predicate.BookLoan
- func IDEQ(id uuid.UUID) predicate.BookLoan
- func IDGT(id uuid.UUID) predicate.BookLoan
- func IDGTE(id uuid.UUID) predicate.BookLoan
- func IDIn(ids ...uuid.UUID) predicate.BookLoan
- func IDLT(id uuid.UUID) predicate.BookLoan
- func IDLTE(id uuid.UUID) predicate.BookLoan
- func IDNEQ(id uuid.UUID) predicate.BookLoan
- func IDNotIn(ids ...uuid.UUID) predicate.BookLoan
- func LoanDate(v time.Time) predicate.BookLoan
- func LoanDateEQ(v time.Time) predicate.BookLoan
- func LoanDateGT(v time.Time) predicate.BookLoan
- func LoanDateGTE(v time.Time) predicate.BookLoan
- func LoanDateIn(vs ...time.Time) predicate.BookLoan
- func LoanDateLT(v time.Time) predicate.BookLoan
- func LoanDateLTE(v time.Time) predicate.BookLoan
- func LoanDateNEQ(v time.Time) predicate.BookLoan
- func LoanDateNotIn(vs ...time.Time) predicate.BookLoan
- func Not(p predicate.BookLoan) predicate.BookLoan
- func Or(predicates ...predicate.BookLoan) predicate.BookLoan
- func UpdatedAt(v time.Time) predicate.BookLoan
- func UpdatedAtEQ(v time.Time) predicate.BookLoan
- func UpdatedAtGT(v time.Time) predicate.BookLoan
- func UpdatedAtGTE(v time.Time) predicate.BookLoan
- func UpdatedAtIn(vs ...time.Time) predicate.BookLoan
- func UpdatedAtLT(v time.Time) predicate.BookLoan
- func UpdatedAtLTE(v time.Time) predicate.BookLoan
- func UpdatedAtNEQ(v time.Time) predicate.BookLoan
- func UpdatedAtNotIn(vs ...time.Time) predicate.BookLoan
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the bookloan type in the database. Label = "book_loan" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateAt holds the string denoting the create_at field in the database. FieldCreateAt = "create_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldLoanDate holds the string denoting the loan_date field in the database. FieldLoanDate = "loan_date" // FieldDeliveryDate holds the string denoting the delivery_date field in the database. FieldDeliveryDate = "delivery_date" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeBook holds the string denoting the book edge name in mutations. EdgeBook = "book" // Table holds the table name of the bookloan in the database. Table = "book_loans" // UserTable is the table that holds the user relation/edge. UserTable = "book_loans" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_loans" // BookTable is the table that holds the book relation/edge. BookTable = "book_loans" // BookInverseTable is the table name for the Book entity. // It exists in this package in order to avoid circular dependency with the "book" package. BookInverseTable = "books" // BookColumn is the table column denoting the book relation/edge. BookColumn = "book_on_loans" )
Variables ¶
var ( // DefaultCreateAt holds the default value on creation for the "create_at" field. DefaultCreateAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultLoanDate holds the default value on creation for the "loan_date" field. DefaultLoanDate func() time.Time // DefaultDeliveryDate holds the default value on creation for the "delivery_date" field. DefaultDeliveryDate func() time.Time // UpdateDefaultDeliveryDate holds the default value on update for the "delivery_date" field. UpdateDefaultDeliveryDate func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreateAt, FieldUpdatedAt, FieldLoanDate, FieldDeliveryDate, }
Columns holds all SQL columns for bookloan fields.
var ForeignKeys = []string{
"book_on_loans",
"user_loans",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "book_loans" table and are not defined as standalone fields in the schema.
Functions ¶
func CreateAt ¶
CreateAt applies equality check predicate on the "create_at" field. It's identical to CreateAtEQ.
func CreateAtEQ ¶
CreateAtEQ applies the EQ predicate on the "create_at" field.
func CreateAtGT ¶
CreateAtGT applies the GT predicate on the "create_at" field.
func CreateAtGTE ¶
CreateAtGTE applies the GTE predicate on the "create_at" field.
func CreateAtIn ¶
CreateAtIn applies the In predicate on the "create_at" field.
func CreateAtLT ¶
CreateAtLT applies the LT predicate on the "create_at" field.
func CreateAtLTE ¶
CreateAtLTE applies the LTE predicate on the "create_at" field.
func CreateAtNEQ ¶
CreateAtNEQ applies the NEQ predicate on the "create_at" field.
func CreateAtNotIn ¶
CreateAtNotIn applies the NotIn predicate on the "create_at" field.
func DeliveryDate ¶
DeliveryDate applies equality check predicate on the "delivery_date" field. It's identical to DeliveryDateEQ.
func DeliveryDateEQ ¶
DeliveryDateEQ applies the EQ predicate on the "delivery_date" field.
func DeliveryDateGT ¶
DeliveryDateGT applies the GT predicate on the "delivery_date" field.
func DeliveryDateGTE ¶
DeliveryDateGTE applies the GTE predicate on the "delivery_date" field.
func DeliveryDateIn ¶
DeliveryDateIn applies the In predicate on the "delivery_date" field.
func DeliveryDateLT ¶
DeliveryDateLT applies the LT predicate on the "delivery_date" field.
func DeliveryDateLTE ¶
DeliveryDateLTE applies the LTE predicate on the "delivery_date" field.
func DeliveryDateNEQ ¶
DeliveryDateNEQ applies the NEQ predicate on the "delivery_date" field.
func DeliveryDateNotIn ¶
DeliveryDateNotIn applies the NotIn predicate on the "delivery_date" field.
func HasBookWith ¶
HasBookWith applies the HasEdge predicate on the "book" edge with a given conditions (other predicates).
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func LoanDate ¶
LoanDate applies equality check predicate on the "loan_date" field. It's identical to LoanDateEQ.
func LoanDateEQ ¶
LoanDateEQ applies the EQ predicate on the "loan_date" field.
func LoanDateGT ¶
LoanDateGT applies the GT predicate on the "loan_date" field.
func LoanDateGTE ¶
LoanDateGTE applies the GTE predicate on the "loan_date" field.
func LoanDateIn ¶
LoanDateIn applies the In predicate on the "loan_date" field.
func LoanDateLT ¶
LoanDateLT applies the LT predicate on the "loan_date" field.
func LoanDateLTE ¶
LoanDateLTE applies the LTE predicate on the "loan_date" field.
func LoanDateNEQ ¶
LoanDateNEQ applies the NEQ predicate on the "loan_date" field.
func LoanDateNotIn ¶
LoanDateNotIn applies the NotIn predicate on the "loan_date" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.