Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Book) predicate.Book
- func Author(v string) predicate.Book
- func AuthorContains(v string) predicate.Book
- func AuthorContainsFold(v string) predicate.Book
- func AuthorEQ(v string) predicate.Book
- func AuthorEqualFold(v string) predicate.Book
- func AuthorGT(v string) predicate.Book
- func AuthorGTE(v string) predicate.Book
- func AuthorHasPrefix(v string) predicate.Book
- func AuthorHasSuffix(v string) predicate.Book
- func AuthorIn(vs ...string) predicate.Book
- func AuthorLT(v string) predicate.Book
- func AuthorLTE(v string) predicate.Book
- func AuthorNEQ(v string) predicate.Book
- func AuthorNotIn(vs ...string) predicate.Book
- func CreatedAt(v time.Time) predicate.Book
- func CreatedAtEQ(v time.Time) predicate.Book
- func CreatedAtGT(v time.Time) predicate.Book
- func CreatedAtGTE(v time.Time) predicate.Book
- func CreatedAtIn(vs ...time.Time) predicate.Book
- func CreatedAtLT(v time.Time) predicate.Book
- func CreatedAtLTE(v time.Time) predicate.Book
- func CreatedAtNEQ(v time.Time) predicate.Book
- func CreatedAtNotIn(vs ...time.Time) predicate.Book
- func Description(v string) predicate.Book
- func DescriptionContains(v string) predicate.Book
- func DescriptionContainsFold(v string) predicate.Book
- func DescriptionEQ(v string) predicate.Book
- func DescriptionEqualFold(v string) predicate.Book
- func DescriptionGT(v string) predicate.Book
- func DescriptionGTE(v string) predicate.Book
- func DescriptionHasPrefix(v string) predicate.Book
- func DescriptionHasSuffix(v string) predicate.Book
- func DescriptionIn(vs ...string) predicate.Book
- func DescriptionLT(v string) predicate.Book
- func DescriptionLTE(v string) predicate.Book
- func DescriptionNEQ(v string) predicate.Book
- func DescriptionNotIn(vs ...string) predicate.Book
- func HasCollection() predicate.Book
- func HasCollectionWith(preds ...predicate.Collection) 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 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
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" // FieldCreatedAt holds the string denoting the createdat field in the database. FieldCreatedAt = "created_at" // FieldUpdatedat holds the string denoting the updatedat field in the database. FieldUpdatedat = "updatedat" // FieldAuthor holds the string denoting the author field in the database. FieldAuthor = "author" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // EdgeCollection holds the string denoting the collection edge name in mutations. EdgeCollection = "collection" // Table holds the table name of the book in the database. Table = "books" // CollectionTable is the table the holds the collection relation/edge. The primary key declared below. CollectionTable = "collection_books" // CollectionInverseTable is the table name for the Collection entity. // It exists in this package in order to avoid circular dependency with the "collection" package. CollectionInverseTable = "collections" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "createdAt" field. DefaultCreatedAt func() time.Time // UpdateDefaultCreatedAt holds the default value on update for the "createdAt" field. UpdateDefaultCreatedAt func() time.Time // DefaultUpdatedat holds the default value on creation for the "updatedat" field. DefaultUpdatedat func() time.Time // UpdateDefaultUpdatedat holds the default value on update for the "updatedat" field. UpdateDefaultUpdatedat func() time.Time )
var ( // CollectionPrimaryKey and CollectionColumn2 are the table columns denoting the // primary key for the collection relation (M2M). CollectionPrimaryKey = []string{"collection_id", "book_id"} )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedat, FieldAuthor, FieldDescription, FieldTitle, }
Columns holds all SQL columns for book fields.
Functions ¶
func Author ¶
Author applies equality check predicate on the "author" field. It's identical to AuthorEQ.
func AuthorContains ¶
AuthorContains applies the Contains predicate on the "author" field.
func AuthorContainsFold ¶
AuthorContainsFold applies the ContainsFold predicate on the "author" field.
func AuthorEqualFold ¶
AuthorEqualFold applies the EqualFold predicate on the "author" field.
func AuthorHasPrefix ¶
AuthorHasPrefix applies the HasPrefix predicate on the "author" field.
func AuthorHasSuffix ¶
AuthorHasSuffix applies the HasSuffix predicate on the "author" field.
func AuthorNotIn ¶
AuthorNotIn applies the NotIn predicate on the "author" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "createdAt" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "createdAt" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "createdAt" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "createdAt" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "createdAt" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "createdAt" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "createdAt" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "createdAt" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func HasCollection ¶
HasCollection applies the HasEdge predicate on the "collection" edge.
func HasCollectionWith ¶
func HasCollectionWith(preds ...predicate.Collection) predicate.Book
HasCollectionWith applies the HasEdge predicate on the "collection" edge with a given conditions (other predicates).
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 "updatedat" field. It's identical to UpdatedatEQ.
func UpdatedatEQ ¶
UpdatedatEQ applies the EQ predicate on the "updatedat" field.
func UpdatedatGT ¶
UpdatedatGT applies the GT predicate on the "updatedat" field.
func UpdatedatGTE ¶
UpdatedatGTE applies the GTE predicate on the "updatedat" field.
func UpdatedatIn ¶
UpdatedatIn applies the In predicate on the "updatedat" field.
func UpdatedatLT ¶
UpdatedatLT applies the LT predicate on the "updatedat" field.
func UpdatedatLTE ¶
UpdatedatLTE applies the LTE predicate on the "updatedat" field.
func UpdatedatNEQ ¶
UpdatedatNEQ applies the NEQ predicate on the "updatedat" field.
func UpdatedatNotIn ¶
UpdatedatNotIn applies the NotIn predicate on the "updatedat" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.