Documentation ¶
Index ¶
- Constants
- Variables
- func Abstract(v string) predicate.Book
- func AbstractContains(v string) predicate.Book
- func AbstractContainsFold(v string) predicate.Book
- func AbstractEQ(v string) predicate.Book
- func AbstractEqualFold(v string) predicate.Book
- func AbstractGT(v string) predicate.Book
- func AbstractGTE(v string) predicate.Book
- func AbstractHasPrefix(v string) predicate.Book
- func AbstractHasSuffix(v string) predicate.Book
- func AbstractIn(vs ...string) predicate.Book
- func AbstractIsNil() predicate.Book
- func AbstractLT(v string) predicate.Book
- func AbstractLTE(v string) predicate.Book
- func AbstractNEQ(v string) predicate.Book
- func AbstractNotIn(vs ...string) predicate.Book
- func AbstractNotNil() predicate.Book
- func And(predicates ...predicate.Book) predicate.Book
- func CategoryEQ(v Category) predicate.Book
- func CategoryIn(vs ...Category) predicate.Book
- func CategoryNEQ(v Category) predicate.Book
- func CategoryNotIn(vs ...Category) predicate.Book
- func CategoryValidator(c Category) error
- func CoverURL(v string) predicate.Book
- func CoverURLContains(v string) predicate.Book
- func CoverURLContainsFold(v string) predicate.Book
- func CoverURLEQ(v string) predicate.Book
- func CoverURLEqualFold(v string) predicate.Book
- func CoverURLGT(v string) predicate.Book
- func CoverURLGTE(v string) predicate.Book
- func CoverURLHasPrefix(v string) predicate.Book
- func CoverURLHasSuffix(v string) predicate.Book
- func CoverURLIn(vs ...string) predicate.Book
- func CoverURLLT(v string) predicate.Book
- func CoverURLLTE(v string) predicate.Book
- func CoverURLNEQ(v string) predicate.Book
- func CoverURLNotIn(vs ...string) predicate.Book
- func CreateAt(v time.Time) predicate.Book
- func CreateAtEQ(v time.Time) predicate.Book
- func CreateAtGT(v time.Time) predicate.Book
- func CreateAtGTE(v time.Time) predicate.Book
- func CreateAtIn(vs ...time.Time) predicate.Book
- func CreateAtLT(v time.Time) predicate.Book
- func CreateAtLTE(v time.Time) predicate.Book
- func CreateAtNEQ(v time.Time) predicate.Book
- func CreateAtNotIn(vs ...time.Time) predicate.Book
- func HasAuthor() predicate.Book
- func HasAuthorWith(preds ...predicate.User) predicate.Book
- func HasOnLoans() predicate.Book
- func HasOnLoansWith(preds ...predicate.BookLoan) predicate.Book
- func ID(id uuid.UUID) predicate.Book
- func IDEQ(id uuid.UUID) predicate.Book
- func IDGT(id uuid.UUID) predicate.Book
- func IDGTE(id uuid.UUID) predicate.Book
- func IDIn(ids ...uuid.UUID) predicate.Book
- func IDLT(id uuid.UUID) predicate.Book
- func IDLTE(id uuid.UUID) predicate.Book
- func IDNEQ(id uuid.UUID) predicate.Book
- func IDNotIn(ids ...uuid.UUID) predicate.Book
- func Not(p predicate.Book) predicate.Book
- func Or(predicates ...predicate.Book) predicate.Book
- func Pages(v uint16) predicate.Book
- func PagesEQ(v uint16) predicate.Book
- func PagesGT(v uint16) predicate.Book
- func PagesGTE(v uint16) predicate.Book
- func PagesIn(vs ...uint16) predicate.Book
- func PagesLT(v uint16) predicate.Book
- func PagesLTE(v uint16) predicate.Book
- func PagesNEQ(v uint16) predicate.Book
- func PagesNotIn(vs ...uint16) predicate.Book
- func Title(v string) predicate.Book
- func TitleContains(v string) predicate.Book
- func TitleContainsFold(v string) predicate.Book
- func TitleEQ(v string) predicate.Book
- func TitleEqualFold(v string) predicate.Book
- func TitleGT(v string) predicate.Book
- func TitleGTE(v string) predicate.Book
- func TitleHasPrefix(v string) predicate.Book
- func TitleHasSuffix(v string) predicate.Book
- func TitleIn(vs ...string) predicate.Book
- func TitleLT(v string) predicate.Book
- func TitleLTE(v string) predicate.Book
- func TitleNEQ(v string) predicate.Book
- func TitleNotIn(vs ...string) predicate.Book
- func UpdatedAt(v time.Time) predicate.Book
- func UpdatedAtEQ(v time.Time) predicate.Book
- func UpdatedAtGT(v time.Time) predicate.Book
- func UpdatedAtGTE(v time.Time) predicate.Book
- func UpdatedAtIn(vs ...time.Time) predicate.Book
- func UpdatedAtLT(v time.Time) predicate.Book
- func UpdatedAtLTE(v time.Time) predicate.Book
- func UpdatedAtNEQ(v time.Time) predicate.Book
- func UpdatedAtNotIn(vs ...time.Time) predicate.Book
- func ValidColumn(column string) bool
- type Category
Constants ¶
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" // 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" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldPages holds the string denoting the pages field in the database. FieldPages = "pages" // FieldAbstract holds the string denoting the abstract field in the database. FieldAbstract = "abstract" // FieldCategory holds the string denoting the category field in the database. FieldCategory = "category" // FieldCoverURL holds the string denoting the cover_url field in the database. FieldCoverURL = "cover_url" // EdgeOnLoans holds the string denoting the on_loans edge name in mutations. EdgeOnLoans = "on_loans" // EdgeAuthor holds the string denoting the author edge name in mutations. EdgeAuthor = "author" // Table holds the table name of the book in the database. Table = "books" // OnLoansTable is the table that holds the on_loans relation/edge. OnLoansTable = "book_loans" // OnLoansInverseTable is the table name for the BookLoan entity. // It exists in this package in order to avoid circular dependency with the "bookloan" package. OnLoansInverseTable = "book_loans" // OnLoansColumn is the table column denoting the on_loans relation/edge. OnLoansColumn = "book_on_loans" // AuthorTable is the table that holds the author relation/edge. AuthorTable = "books" // AuthorInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. AuthorInverseTable = "users" // AuthorColumn is the table column denoting the author relation/edge. AuthorColumn = "user_books" )
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 // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreateAt, FieldUpdatedAt, FieldTitle, FieldPages, FieldAbstract, FieldCategory, FieldCoverURL, }
Columns holds all SQL columns for book fields.
var ForeignKeys = []string{
"user_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 Abstract ¶
Abstract applies equality check predicate on the "abstract" field. It's identical to AbstractEQ.
func AbstractContains ¶
AbstractContains applies the Contains predicate on the "abstract" field.
func AbstractContainsFold ¶
AbstractContainsFold applies the ContainsFold predicate on the "abstract" field.
func AbstractEQ ¶
AbstractEQ applies the EQ predicate on the "abstract" field.
func AbstractEqualFold ¶
AbstractEqualFold applies the EqualFold predicate on the "abstract" field.
func AbstractGT ¶
AbstractGT applies the GT predicate on the "abstract" field.
func AbstractGTE ¶
AbstractGTE applies the GTE predicate on the "abstract" field.
func AbstractHasPrefix ¶
AbstractHasPrefix applies the HasPrefix predicate on the "abstract" field.
func AbstractHasSuffix ¶
AbstractHasSuffix applies the HasSuffix predicate on the "abstract" field.
func AbstractIn ¶
AbstractIn applies the In predicate on the "abstract" field.
func AbstractIsNil ¶
AbstractIsNil applies the IsNil predicate on the "abstract" field.
func AbstractLT ¶
AbstractLT applies the LT predicate on the "abstract" field.
func AbstractLTE ¶
AbstractLTE applies the LTE predicate on the "abstract" field.
func AbstractNEQ ¶
AbstractNEQ applies the NEQ predicate on the "abstract" field.
func AbstractNotIn ¶
AbstractNotIn applies the NotIn predicate on the "abstract" field.
func AbstractNotNil ¶
AbstractNotNil applies the NotNil predicate on the "abstract" field.
func CategoryEQ ¶
CategoryEQ applies the EQ predicate on the "category" field.
func CategoryIn ¶
CategoryIn applies the In predicate on the "category" field.
func CategoryNEQ ¶
CategoryNEQ applies the NEQ predicate on the "category" field.
func CategoryNotIn ¶
CategoryNotIn applies the NotIn predicate on the "category" field.
func CategoryValidator ¶
CategoryValidator is a validator for the "category" field enum values. It is called by the builders before save.
func CoverURL ¶
CoverURL applies equality check predicate on the "cover_url" field. It's identical to CoverURLEQ.
func CoverURLContains ¶
CoverURLContains applies the Contains predicate on the "cover_url" field.
func CoverURLContainsFold ¶
CoverURLContainsFold applies the ContainsFold predicate on the "cover_url" field.
func CoverURLEQ ¶
CoverURLEQ applies the EQ predicate on the "cover_url" field.
func CoverURLEqualFold ¶
CoverURLEqualFold applies the EqualFold predicate on the "cover_url" field.
func CoverURLGT ¶
CoverURLGT applies the GT predicate on the "cover_url" field.
func CoverURLGTE ¶
CoverURLGTE applies the GTE predicate on the "cover_url" field.
func CoverURLHasPrefix ¶
CoverURLHasPrefix applies the HasPrefix predicate on the "cover_url" field.
func CoverURLHasSuffix ¶
CoverURLHasSuffix applies the HasSuffix predicate on the "cover_url" field.
func CoverURLIn ¶
CoverURLIn applies the In predicate on the "cover_url" field.
func CoverURLLT ¶
CoverURLLT applies the LT predicate on the "cover_url" field.
func CoverURLLTE ¶
CoverURLLTE applies the LTE predicate on the "cover_url" field.
func CoverURLNEQ ¶
CoverURLNEQ applies the NEQ predicate on the "cover_url" field.
func CoverURLNotIn ¶
CoverURLNotIn applies the NotIn predicate on the "cover_url" field.
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 HasAuthorWith ¶
HasAuthorWith applies the HasEdge predicate on the "author" edge with a given conditions (other predicates).
func HasOnLoans ¶
HasOnLoans applies the HasEdge predicate on the "on_loans" edge.
func HasOnLoansWith ¶
HasOnLoansWith applies the HasEdge predicate on the "on_loans" edge with a given conditions (other predicates).
func Pages ¶
Pages applies equality check predicate on the "pages" field. It's identical to PagesEQ.
func PagesNotIn ¶
PagesNotIn applies the NotIn predicate on the "pages" field.
func Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" 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).