bookloan

package
v0.0.0-...-397b8aa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for bookloan fields.

View Source
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 And

func And(predicates ...predicate.BookLoan) predicate.BookLoan

And groups predicates with the AND operator between them.

func CreateAt

func CreateAt(v time.Time) predicate.BookLoan

CreateAt applies equality check predicate on the "create_at" field. It's identical to CreateAtEQ.

func CreateAtEQ

func CreateAtEQ(v time.Time) predicate.BookLoan

CreateAtEQ applies the EQ predicate on the "create_at" field.

func CreateAtGT

func CreateAtGT(v time.Time) predicate.BookLoan

CreateAtGT applies the GT predicate on the "create_at" field.

func CreateAtGTE

func CreateAtGTE(v time.Time) predicate.BookLoan

CreateAtGTE applies the GTE predicate on the "create_at" field.

func CreateAtIn

func CreateAtIn(vs ...time.Time) predicate.BookLoan

CreateAtIn applies the In predicate on the "create_at" field.

func CreateAtLT

func CreateAtLT(v time.Time) predicate.BookLoan

CreateAtLT applies the LT predicate on the "create_at" field.

func CreateAtLTE

func CreateAtLTE(v time.Time) predicate.BookLoan

CreateAtLTE applies the LTE predicate on the "create_at" field.

func CreateAtNEQ

func CreateAtNEQ(v time.Time) predicate.BookLoan

CreateAtNEQ applies the NEQ predicate on the "create_at" field.

func CreateAtNotIn

func CreateAtNotIn(vs ...time.Time) predicate.BookLoan

CreateAtNotIn applies the NotIn predicate on the "create_at" field.

func DeliveryDate

func DeliveryDate(v time.Time) predicate.BookLoan

DeliveryDate applies equality check predicate on the "delivery_date" field. It's identical to DeliveryDateEQ.

func DeliveryDateEQ

func DeliveryDateEQ(v time.Time) predicate.BookLoan

DeliveryDateEQ applies the EQ predicate on the "delivery_date" field.

func DeliveryDateGT

func DeliveryDateGT(v time.Time) predicate.BookLoan

DeliveryDateGT applies the GT predicate on the "delivery_date" field.

func DeliveryDateGTE

func DeliveryDateGTE(v time.Time) predicate.BookLoan

DeliveryDateGTE applies the GTE predicate on the "delivery_date" field.

func DeliveryDateIn

func DeliveryDateIn(vs ...time.Time) predicate.BookLoan

DeliveryDateIn applies the In predicate on the "delivery_date" field.

func DeliveryDateLT

func DeliveryDateLT(v time.Time) predicate.BookLoan

DeliveryDateLT applies the LT predicate on the "delivery_date" field.

func DeliveryDateLTE

func DeliveryDateLTE(v time.Time) predicate.BookLoan

DeliveryDateLTE applies the LTE predicate on the "delivery_date" field.

func DeliveryDateNEQ

func DeliveryDateNEQ(v time.Time) predicate.BookLoan

DeliveryDateNEQ applies the NEQ predicate on the "delivery_date" field.

func DeliveryDateNotIn

func DeliveryDateNotIn(vs ...time.Time) predicate.BookLoan

DeliveryDateNotIn applies the NotIn predicate on the "delivery_date" field.

func HasBook

func HasBook() predicate.BookLoan

HasBook applies the HasEdge predicate on the "book" edge.

func HasBookWith

func HasBookWith(preds ...predicate.Book) predicate.BookLoan

HasBookWith applies the HasEdge predicate on the "book" edge with a given conditions (other predicates).

func HasUser

func HasUser() predicate.BookLoan

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.BookLoan

HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).

func ID

func ID(id uuid.UUID) predicate.BookLoan

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.BookLoan

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.BookLoan

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.BookLoan

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.BookLoan

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.BookLoan

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.BookLoan

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.BookLoan

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.BookLoan

IDNotIn applies the NotIn predicate on the ID field.

func LoanDate

func LoanDate(v time.Time) predicate.BookLoan

LoanDate applies equality check predicate on the "loan_date" field. It's identical to LoanDateEQ.

func LoanDateEQ

func LoanDateEQ(v time.Time) predicate.BookLoan

LoanDateEQ applies the EQ predicate on the "loan_date" field.

func LoanDateGT

func LoanDateGT(v time.Time) predicate.BookLoan

LoanDateGT applies the GT predicate on the "loan_date" field.

func LoanDateGTE

func LoanDateGTE(v time.Time) predicate.BookLoan

LoanDateGTE applies the GTE predicate on the "loan_date" field.

func LoanDateIn

func LoanDateIn(vs ...time.Time) predicate.BookLoan

LoanDateIn applies the In predicate on the "loan_date" field.

func LoanDateLT

func LoanDateLT(v time.Time) predicate.BookLoan

LoanDateLT applies the LT predicate on the "loan_date" field.

func LoanDateLTE

func LoanDateLTE(v time.Time) predicate.BookLoan

LoanDateLTE applies the LTE predicate on the "loan_date" field.

func LoanDateNEQ

func LoanDateNEQ(v time.Time) predicate.BookLoan

LoanDateNEQ applies the NEQ predicate on the "loan_date" field.

func LoanDateNotIn

func LoanDateNotIn(vs ...time.Time) predicate.BookLoan

LoanDateNotIn applies the NotIn predicate on the "loan_date" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.BookLoan) predicate.BookLoan

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.BookLoan

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.BookLoan

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.BookLoan

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.BookLoan

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.BookLoan

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.BookLoan

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.BookLoan

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.BookLoan

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.BookLoan

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL