Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Item) predicate.Item
- func CreatedAt(v time.Time) predicate.Item
- func CreatedAtEQ(v time.Time) predicate.Item
- func CreatedAtGT(v time.Time) predicate.Item
- func CreatedAtGTE(v time.Time) predicate.Item
- func CreatedAtIn(vs ...time.Time) predicate.Item
- func CreatedAtLT(v time.Time) predicate.Item
- func CreatedAtLTE(v time.Time) predicate.Item
- func CreatedAtNEQ(v time.Time) predicate.Item
- func CreatedAtNotIn(vs ...time.Time) predicate.Item
- func HasOrderID() predicate.Item
- func HasOrderIDWith(preds ...predicate.Order) predicate.Item
- func ID(id int) predicate.Item
- func IDEQ(id int) predicate.Item
- func IDGT(id int) predicate.Item
- func IDGTE(id int) predicate.Item
- func IDIn(ids ...int) predicate.Item
- func IDLT(id int) predicate.Item
- func IDLTE(id int) predicate.Item
- func IDNEQ(id int) predicate.Item
- func IDNotIn(ids ...int) predicate.Item
- func Not(p predicate.Item) predicate.Item
- func Or(predicates ...predicate.Item) predicate.Item
- func ProductID(v int) predicate.Item
- func ProductIDEQ(v int) predicate.Item
- func ProductIDGT(v int) predicate.Item
- func ProductIDGTE(v int) predicate.Item
- func ProductIDIn(vs ...int) predicate.Item
- func ProductIDLT(v int) predicate.Item
- func ProductIDLTE(v int) predicate.Item
- func ProductIDNEQ(v int) predicate.Item
- func ProductIDNotIn(vs ...int) predicate.Item
- func Qty(v int) predicate.Item
- func QtyEQ(v int) predicate.Item
- func QtyGT(v int) predicate.Item
- func QtyGTE(v int) predicate.Item
- func QtyIn(vs ...int) predicate.Item
- func QtyLT(v int) predicate.Item
- func QtyLTE(v int) predicate.Item
- func QtyNEQ(v int) predicate.Item
- func QtyNotIn(vs ...int) predicate.Item
- func UpdatedAt(v time.Time) predicate.Item
- func UpdatedAtEQ(v time.Time) predicate.Item
- func UpdatedAtGT(v time.Time) predicate.Item
- func UpdatedAtGTE(v time.Time) predicate.Item
- func UpdatedAtIn(vs ...time.Time) predicate.Item
- func UpdatedAtLT(v time.Time) predicate.Item
- func UpdatedAtLTE(v time.Time) predicate.Item
- func UpdatedAtNEQ(v time.Time) predicate.Item
- func UpdatedAtNotIn(vs ...time.Time) predicate.Item
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the item type in the database. Label = "item" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldProductID holds the string denoting the product_id field in the database. FieldProductID = "product_id" // FieldQty holds the string denoting the qty field in the database. FieldQty = "qty" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // EdgeOrderID holds the string denoting the order_id edge name in mutations. EdgeOrderID = "order_id" // Table holds the table name of the item in the database. Table = "items" // OrderIDTable is the table the holds the order_id relation/edge. The primary key declared below. OrderIDTable = "order_items" // OrderIDInverseTable is the table name for the Order entity. // It exists in this package in order to avoid circular dependency with the "order" package. OrderIDInverseTable = "orders" )
Variables ¶
var ( // DefaultQty holds the default value on creation for the "qty" field. DefaultQty int // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt 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 )
var Columns = []string{ FieldID, FieldProductID, FieldQty, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for item fields.
var ( // OrderIDPrimaryKey and OrderIDColumn2 are the table columns denoting the // primary key for the order_id relation (M2M). OrderIDPrimaryKey = []string{"order_id", "item_id"} )
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 HasOrderID ¶
HasOrderID applies the HasEdge predicate on the "order_id" edge.
func HasOrderIDWith ¶
HasOrderIDWith applies the HasEdge predicate on the "order_id" edge with a given conditions (other predicates).
func ProductID ¶
ProductID applies equality check predicate on the "product_id" field. It's identical to ProductIDEQ.
func ProductIDEQ ¶
ProductIDEQ applies the EQ predicate on the "product_id" field.
func ProductIDGT ¶
ProductIDGT applies the GT predicate on the "product_id" field.
func ProductIDGTE ¶
ProductIDGTE applies the GTE predicate on the "product_id" field.
func ProductIDIn ¶
ProductIDIn applies the In predicate on the "product_id" field.
func ProductIDLT ¶
ProductIDLT applies the LT predicate on the "product_id" field.
func ProductIDLTE ¶
ProductIDLTE applies the LTE predicate on the "product_id" field.
func ProductIDNEQ ¶
ProductIDNEQ applies the NEQ predicate on the "product_id" field.
func ProductIDNotIn ¶
ProductIDNotIn applies the NotIn predicate on the "product_id" 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).
Types ¶
This section is empty.