Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Read) predicate.Read
- func CreatedAt(v time.Time) predicate.Read
- func CreatedAtEQ(v time.Time) predicate.Read
- func CreatedAtGT(v time.Time) predicate.Read
- func CreatedAtGTE(v time.Time) predicate.Read
- func CreatedAtIn(vs ...time.Time) predicate.Read
- func CreatedAtLT(v time.Time) predicate.Read
- func CreatedAtLTE(v time.Time) predicate.Read
- func CreatedAtNEQ(v time.Time) predicate.Read
- func CreatedAtNotIn(vs ...time.Time) predicate.Read
- func HasItem() predicate.Read
- func HasItemWith(preds ...predicate.Item) predicate.Read
- func HasUser() predicate.Read
- func HasUserWith(preds ...predicate.User) predicate.Read
- func ID(id uuid.UUID) predicate.Read
- func IDEQ(id uuid.UUID) predicate.Read
- func IDGT(id uuid.UUID) predicate.Read
- func IDGTE(id uuid.UUID) predicate.Read
- func IDIn(ids ...uuid.UUID) predicate.Read
- func IDLT(id uuid.UUID) predicate.Read
- func IDLTE(id uuid.UUID) predicate.Read
- func IDNEQ(id uuid.UUID) predicate.Read
- func IDNotIn(ids ...uuid.UUID) predicate.Read
- func ItemID(v uuid.UUID) predicate.Read
- func ItemIDEQ(v uuid.UUID) predicate.Read
- func ItemIDIn(vs ...uuid.UUID) predicate.Read
- func ItemIDNEQ(v uuid.UUID) predicate.Read
- func ItemIDNotIn(vs ...uuid.UUID) predicate.Read
- func Not(p predicate.Read) predicate.Read
- func Or(predicates ...predicate.Read) predicate.Read
- func UserID(v uuid.UUID) predicate.Read
- func UserIDEQ(v uuid.UUID) predicate.Read
- func UserIDIn(vs ...uuid.UUID) predicate.Read
- func UserIDNEQ(v uuid.UUID) predicate.Read
- func UserIDNotIn(vs ...uuid.UUID) predicate.Read
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the read type in the database. Label = "read" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldItemID holds the string denoting the item_id field in the database. FieldItemID = "item_id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeItem holds the string denoting the item edge name in mutations. EdgeItem = "item" // Table holds the table name of the read in the database. Table = "reads" // UserTable is the table that holds the user relation/edge. UserTable = "reads" // 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_id" // ItemTable is the table that holds the item relation/edge. ItemTable = "reads" // ItemInverseTable is the table name for the Item entity. // It exists in this package in order to avoid circular dependency with the "item" package. ItemInverseTable = "items" // ItemColumn is the table column denoting the item relation/edge. ItemColumn = "item_id" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldUserID, FieldItemID, FieldCreatedAt, }
Columns holds all SQL columns for read fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasItemWith ¶
HasItemWith applies the HasEdge predicate on the "item" 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 ItemID ¶
ItemID applies equality check predicate on the "item_id" field. It's identical to ItemIDEQ.
func ItemIDNotIn ¶
ItemIDNotIn applies the NotIn predicate on the "item_id" field.
func UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDNotIn ¶
UserIDNotIn applies the NotIn predicate on the "user_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.