Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Collection) predicate.Collection
- func CreatedAt(v time.Time) predicate.Collection
- func CreatedAtEQ(v time.Time) predicate.Collection
- func CreatedAtGT(v time.Time) predicate.Collection
- func CreatedAtGTE(v time.Time) predicate.Collection
- func CreatedAtIn(vs ...time.Time) predicate.Collection
- func CreatedAtLT(v time.Time) predicate.Collection
- func CreatedAtLTE(v time.Time) predicate.Collection
- func CreatedAtNEQ(v time.Time) predicate.Collection
- func CreatedAtNotIn(vs ...time.Time) predicate.Collection
- func HasBooks() predicate.Collection
- func HasBooksWith(preds ...predicate.Book) predicate.Collection
- func ID(id int) predicate.Collection
- func IDEQ(id int) predicate.Collection
- func IDGT(id int) predicate.Collection
- func IDGTE(id int) predicate.Collection
- func IDIn(ids ...int) predicate.Collection
- func IDLT(id int) predicate.Collection
- func IDLTE(id int) predicate.Collection
- func IDNEQ(id int) predicate.Collection
- func IDNotIn(ids ...int) predicate.Collection
- func Name(v string) predicate.Collection
- func NameContains(v string) predicate.Collection
- func NameContainsFold(v string) predicate.Collection
- func NameEQ(v string) predicate.Collection
- func NameEqualFold(v string) predicate.Collection
- func NameGT(v string) predicate.Collection
- func NameGTE(v string) predicate.Collection
- func NameHasPrefix(v string) predicate.Collection
- func NameHasSuffix(v string) predicate.Collection
- func NameIn(vs ...string) predicate.Collection
- func NameLT(v string) predicate.Collection
- func NameLTE(v string) predicate.Collection
- func NameNEQ(v string) predicate.Collection
- func NameNotIn(vs ...string) predicate.Collection
- func Not(p predicate.Collection) predicate.Collection
- func Or(predicates ...predicate.Collection) predicate.Collection
- func Updatedat(v time.Time) predicate.Collection
- func UpdatedatEQ(v time.Time) predicate.Collection
- func UpdatedatGT(v time.Time) predicate.Collection
- func UpdatedatGTE(v time.Time) predicate.Collection
- func UpdatedatIn(vs ...time.Time) predicate.Collection
- func UpdatedatLT(v time.Time) predicate.Collection
- func UpdatedatLTE(v time.Time) predicate.Collection
- func UpdatedatNEQ(v time.Time) predicate.Collection
- func UpdatedatNotIn(vs ...time.Time) predicate.Collection
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the collection type in the database. Label = "collection" // 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" // FieldName holds the string denoting the name field in the database. FieldName = "name" // EdgeBooks holds the string denoting the books edge name in mutations. EdgeBooks = "books" // Table holds the table name of the collection in the database. Table = "collections" // BooksTable is the table the holds the books relation/edge. The primary key declared below. BooksTable = "collection_books" // BooksInverseTable is the table name for the Book entity. // It exists in this package in order to avoid circular dependency with the "book" package. BooksInverseTable = "books" )
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 ( // BooksPrimaryKey and BooksColumn2 are the table columns denoting the // primary key for the books relation (M2M). BooksPrimaryKey = []string{"collection_id", "book_id"} )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedat, FieldName, }
Columns holds all SQL columns for collection fields.
Functions ¶
func And ¶
func And(predicates ...predicate.Collection) predicate.Collection
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.Collection
CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.Collection
CreatedAtEQ applies the EQ predicate on the "createdAt" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.Collection
CreatedAtGT applies the GT predicate on the "createdAt" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.Collection
CreatedAtGTE applies the GTE predicate on the "createdAt" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.Collection
CreatedAtIn applies the In predicate on the "createdAt" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.Collection
CreatedAtLT applies the LT predicate on the "createdAt" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.Collection
CreatedAtLTE applies the LTE predicate on the "createdAt" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.Collection
CreatedAtNEQ applies the NEQ predicate on the "createdAt" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.Collection
CreatedAtNotIn applies the NotIn predicate on the "createdAt" field.
func HasBooks ¶
func HasBooks() predicate.Collection
HasBooks applies the HasEdge predicate on the "books" edge.
func HasBooksWith ¶
func HasBooksWith(preds ...predicate.Book) predicate.Collection
HasBooksWith applies the HasEdge predicate on the "books" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.Collection
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.Collection
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.Collection
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.Collection
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.Collection
IDNotIn applies the NotIn predicate on the ID field.
func Name ¶
func Name(v string) predicate.Collection
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.Collection
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.Collection
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.Collection
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.Collection
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.Collection
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.Collection
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.Collection
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.Collection
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.Collection
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.Collection
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.Collection
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.Collection
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.Collection
NameNotIn applies the NotIn predicate on the "name" field.
func Not ¶
func Not(p predicate.Collection) predicate.Collection
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Collection) predicate.Collection
Or groups predicates with the OR operator between them.
func Updatedat ¶
func Updatedat(v time.Time) predicate.Collection
Updatedat applies equality check predicate on the "updatedat" field. It's identical to UpdatedatEQ.
func UpdatedatEQ ¶
func UpdatedatEQ(v time.Time) predicate.Collection
UpdatedatEQ applies the EQ predicate on the "updatedat" field.
func UpdatedatGT ¶
func UpdatedatGT(v time.Time) predicate.Collection
UpdatedatGT applies the GT predicate on the "updatedat" field.
func UpdatedatGTE ¶
func UpdatedatGTE(v time.Time) predicate.Collection
UpdatedatGTE applies the GTE predicate on the "updatedat" field.
func UpdatedatIn ¶
func UpdatedatIn(vs ...time.Time) predicate.Collection
UpdatedatIn applies the In predicate on the "updatedat" field.
func UpdatedatLT ¶
func UpdatedatLT(v time.Time) predicate.Collection
UpdatedatLT applies the LT predicate on the "updatedat" field.
func UpdatedatLTE ¶
func UpdatedatLTE(v time.Time) predicate.Collection
UpdatedatLTE applies the LTE predicate on the "updatedat" field.
func UpdatedatNEQ ¶
func UpdatedatNEQ(v time.Time) predicate.Collection
UpdatedatNEQ applies the NEQ predicate on the "updatedat" field.
func UpdatedatNotIn ¶
func UpdatedatNotIn(vs ...time.Time) predicate.Collection
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.