Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ShipmentItem) predicate.ShipmentItem
- func CreatedAt(v time.Time) predicate.ShipmentItem
- func CreatedAtEQ(v time.Time) predicate.ShipmentItem
- func CreatedAtGT(v time.Time) predicate.ShipmentItem
- func CreatedAtGTE(v time.Time) predicate.ShipmentItem
- func CreatedAtIn(vs ...time.Time) predicate.ShipmentItem
- func CreatedAtLT(v time.Time) predicate.ShipmentItem
- func CreatedAtLTE(v time.Time) predicate.ShipmentItem
- func CreatedAtNEQ(v time.Time) predicate.ShipmentItem
- func CreatedAtNotIn(vs ...time.Time) predicate.ShipmentItem
- func HasOrderItem() predicate.ShipmentItem
- func HasOrderItemWith(preds ...predicate.OrderItem) predicate.ShipmentItem
- func HasShipment() predicate.ShipmentItem
- func HasShipmentWith(preds ...predicate.Shipment) predicate.ShipmentItem
- func ID(id uuid.UUID) predicate.ShipmentItem
- func IDEQ(id uuid.UUID) predicate.ShipmentItem
- func IDGT(id uuid.UUID) predicate.ShipmentItem
- func IDGTE(id uuid.UUID) predicate.ShipmentItem
- func IDIn(ids ...uuid.UUID) predicate.ShipmentItem
- func IDLT(id uuid.UUID) predicate.ShipmentItem
- func IDLTE(id uuid.UUID) predicate.ShipmentItem
- func IDNEQ(id uuid.UUID) predicate.ShipmentItem
- func IDNotIn(ids ...uuid.UUID) predicate.ShipmentItem
- func Not(p predicate.ShipmentItem) predicate.ShipmentItem
- func Or(predicates ...predicate.ShipmentItem) predicate.ShipmentItem
- func OrderItemID(v uuid.UUID) predicate.ShipmentItem
- func OrderItemIDEQ(v uuid.UUID) predicate.ShipmentItem
- func OrderItemIDIn(vs ...uuid.UUID) predicate.ShipmentItem
- func OrderItemIDNEQ(v uuid.UUID) predicate.ShipmentItem
- func OrderItemIDNotIn(vs ...uuid.UUID) predicate.ShipmentItem
- func Qty(v decimal.Decimal) predicate.ShipmentItem
- func QtyEQ(v decimal.Decimal) predicate.ShipmentItem
- func QtyGT(v decimal.Decimal) predicate.ShipmentItem
- func QtyGTE(v decimal.Decimal) predicate.ShipmentItem
- func QtyIn(vs ...decimal.Decimal) predicate.ShipmentItem
- func QtyLT(v decimal.Decimal) predicate.ShipmentItem
- func QtyLTE(v decimal.Decimal) predicate.ShipmentItem
- func QtyNEQ(v decimal.Decimal) predicate.ShipmentItem
- func QtyNotIn(vs ...decimal.Decimal) predicate.ShipmentItem
- func ShipmentID(v string) predicate.ShipmentItem
- func ShipmentIDContains(v string) predicate.ShipmentItem
- func ShipmentIDContainsFold(v string) predicate.ShipmentItem
- func ShipmentIDEQ(v string) predicate.ShipmentItem
- func ShipmentIDEqualFold(v string) predicate.ShipmentItem
- func ShipmentIDGT(v string) predicate.ShipmentItem
- func ShipmentIDGTE(v string) predicate.ShipmentItem
- func ShipmentIDHasPrefix(v string) predicate.ShipmentItem
- func ShipmentIDHasSuffix(v string) predicate.ShipmentItem
- func ShipmentIDIn(vs ...string) predicate.ShipmentItem
- func ShipmentIDLT(v string) predicate.ShipmentItem
- func ShipmentIDLTE(v string) predicate.ShipmentItem
- func ShipmentIDNEQ(v string) predicate.ShipmentItem
- func ShipmentIDNotIn(vs ...string) predicate.ShipmentItem
- func Total(v decimal.Decimal) predicate.ShipmentItem
- func TotalEQ(v decimal.Decimal) predicate.ShipmentItem
- func TotalGT(v decimal.Decimal) predicate.ShipmentItem
- func TotalGTE(v decimal.Decimal) predicate.ShipmentItem
- func TotalIn(vs ...decimal.Decimal) predicate.ShipmentItem
- func TotalLT(v decimal.Decimal) predicate.ShipmentItem
- func TotalLTE(v decimal.Decimal) predicate.ShipmentItem
- func TotalNEQ(v decimal.Decimal) predicate.ShipmentItem
- func TotalNotIn(vs ...decimal.Decimal) predicate.ShipmentItem
- func UpdatedAt(v time.Time) predicate.ShipmentItem
- func UpdatedAtEQ(v time.Time) predicate.ShipmentItem
- func UpdatedAtGT(v time.Time) predicate.ShipmentItem
- func UpdatedAtGTE(v time.Time) predicate.ShipmentItem
- func UpdatedAtIn(vs ...time.Time) predicate.ShipmentItem
- func UpdatedAtLT(v time.Time) predicate.ShipmentItem
- func UpdatedAtLTE(v time.Time) predicate.ShipmentItem
- func UpdatedAtNEQ(v time.Time) predicate.ShipmentItem
- func UpdatedAtNotIn(vs ...time.Time) predicate.ShipmentItem
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByOrderItemField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOrderItemID(opts ...sql.OrderTermOption) OrderOption
- func ByQty(opts ...sql.OrderTermOption) OrderOption
- func ByShipmentField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByShipmentID(opts ...sql.OrderTermOption) OrderOption
- func ByTotal(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the shipmentitem type in the database. Label = "shipment_item" // FieldID holds the string denoting the id field in the database. FieldID = "id" // 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" // FieldShipmentID holds the string denoting the shipment_id field in the database. FieldShipmentID = "shipment_id" // FieldOrderItemID holds the string denoting the order_item_id field in the database. FieldOrderItemID = "order_item_id" // FieldQty holds the string denoting the qty field in the database. FieldQty = "qty" // FieldTotal holds the string denoting the total field in the database. FieldTotal = "total" // EdgeShipment holds the string denoting the shipment edge name in mutations. EdgeShipment = "shipment" // EdgeOrderItem holds the string denoting the order_item edge name in mutations. EdgeOrderItem = "order_item" // Table holds the table name of the shipmentitem in the database. Table = "invoice_line_items" // ShipmentTable is the table that holds the shipment relation/edge. ShipmentTable = "invoice_line_items" // ShipmentInverseTable is the table name for the Shipment entity. // It exists in this package in order to avoid circular dependency with the "shipment" package. ShipmentInverseTable = "shipments" // ShipmentColumn is the table column denoting the shipment relation/edge. ShipmentColumn = "shipment_id" // OrderItemTable is the table that holds the order_item relation/edge. OrderItemTable = "invoice_line_items" // OrderItemInverseTable is the table name for the OrderItem entity. // It exists in this package in order to avoid circular dependency with the "orderitem" package. OrderItemInverseTable = "order_items" // OrderItemColumn is the table column denoting the order_item relation/edge. OrderItemColumn = "order_item_id" )
Variables ¶
var ( // 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 // ShipmentIDValidator is a validator for the "shipment_id" field. It is called by the builders before save. ShipmentIDValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldShipmentID, FieldOrderItemID, FieldQty, FieldTotal, }
Columns holds all SQL columns for shipmentitem fields.
Functions ¶
func And ¶
func And(predicates ...predicate.ShipmentItem) predicate.ShipmentItem
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.ShipmentItem
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.ShipmentItem
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.ShipmentItem
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.ShipmentItem
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.ShipmentItem
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.ShipmentItem
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.ShipmentItem
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.ShipmentItem
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.ShipmentItem
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasOrderItem ¶
func HasOrderItem() predicate.ShipmentItem
HasOrderItem applies the HasEdge predicate on the "order_item" edge.
func HasOrderItemWith ¶
func HasOrderItemWith(preds ...predicate.OrderItem) predicate.ShipmentItem
HasOrderItemWith applies the HasEdge predicate on the "order_item" edge with a given conditions (other predicates).
func HasShipment ¶
func HasShipment() predicate.ShipmentItem
HasShipment applies the HasEdge predicate on the "shipment" edge.
func HasShipmentWith ¶
func HasShipmentWith(preds ...predicate.Shipment) predicate.ShipmentItem
HasShipmentWith applies the HasEdge predicate on the "shipment" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.ShipmentItem
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.ShipmentItem
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.ShipmentItem
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.ShipmentItem
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.ShipmentItem
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.ShipmentItem
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.ShipmentItem
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.ShipmentItem
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.ShipmentItem) predicate.ShipmentItem
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.ShipmentItem) predicate.ShipmentItem
Or groups predicates with the OR operator between them.
func OrderItemID ¶
func OrderItemID(v uuid.UUID) predicate.ShipmentItem
OrderItemID applies equality check predicate on the "order_item_id" field. It's identical to OrderItemIDEQ.
func OrderItemIDEQ ¶
func OrderItemIDEQ(v uuid.UUID) predicate.ShipmentItem
OrderItemIDEQ applies the EQ predicate on the "order_item_id" field.
func OrderItemIDIn ¶
func OrderItemIDIn(vs ...uuid.UUID) predicate.ShipmentItem
OrderItemIDIn applies the In predicate on the "order_item_id" field.
func OrderItemIDNEQ ¶
func OrderItemIDNEQ(v uuid.UUID) predicate.ShipmentItem
OrderItemIDNEQ applies the NEQ predicate on the "order_item_id" field.
func OrderItemIDNotIn ¶
func OrderItemIDNotIn(vs ...uuid.UUID) predicate.ShipmentItem
OrderItemIDNotIn applies the NotIn predicate on the "order_item_id" field.
func Qty ¶
func Qty(v decimal.Decimal) predicate.ShipmentItem
Qty applies equality check predicate on the "qty" field. It's identical to QtyEQ.
func QtyEQ ¶
func QtyEQ(v decimal.Decimal) predicate.ShipmentItem
QtyEQ applies the EQ predicate on the "qty" field.
func QtyGT ¶
func QtyGT(v decimal.Decimal) predicate.ShipmentItem
QtyGT applies the GT predicate on the "qty" field.
func QtyGTE ¶
func QtyGTE(v decimal.Decimal) predicate.ShipmentItem
QtyGTE applies the GTE predicate on the "qty" field.
func QtyIn ¶
func QtyIn(vs ...decimal.Decimal) predicate.ShipmentItem
QtyIn applies the In predicate on the "qty" field.
func QtyLT ¶
func QtyLT(v decimal.Decimal) predicate.ShipmentItem
QtyLT applies the LT predicate on the "qty" field.
func QtyLTE ¶
func QtyLTE(v decimal.Decimal) predicate.ShipmentItem
QtyLTE applies the LTE predicate on the "qty" field.
func QtyNEQ ¶
func QtyNEQ(v decimal.Decimal) predicate.ShipmentItem
QtyNEQ applies the NEQ predicate on the "qty" field.
func QtyNotIn ¶
func QtyNotIn(vs ...decimal.Decimal) predicate.ShipmentItem
QtyNotIn applies the NotIn predicate on the "qty" field.
func ShipmentID ¶
func ShipmentID(v string) predicate.ShipmentItem
ShipmentID applies equality check predicate on the "shipment_id" field. It's identical to ShipmentIDEQ.
func ShipmentIDContains ¶
func ShipmentIDContains(v string) predicate.ShipmentItem
ShipmentIDContains applies the Contains predicate on the "shipment_id" field.
func ShipmentIDContainsFold ¶
func ShipmentIDContainsFold(v string) predicate.ShipmentItem
ShipmentIDContainsFold applies the ContainsFold predicate on the "shipment_id" field.
func ShipmentIDEQ ¶
func ShipmentIDEQ(v string) predicate.ShipmentItem
ShipmentIDEQ applies the EQ predicate on the "shipment_id" field.
func ShipmentIDEqualFold ¶
func ShipmentIDEqualFold(v string) predicate.ShipmentItem
ShipmentIDEqualFold applies the EqualFold predicate on the "shipment_id" field.
func ShipmentIDGT ¶
func ShipmentIDGT(v string) predicate.ShipmentItem
ShipmentIDGT applies the GT predicate on the "shipment_id" field.
func ShipmentIDGTE ¶
func ShipmentIDGTE(v string) predicate.ShipmentItem
ShipmentIDGTE applies the GTE predicate on the "shipment_id" field.
func ShipmentIDHasPrefix ¶
func ShipmentIDHasPrefix(v string) predicate.ShipmentItem
ShipmentIDHasPrefix applies the HasPrefix predicate on the "shipment_id" field.
func ShipmentIDHasSuffix ¶
func ShipmentIDHasSuffix(v string) predicate.ShipmentItem
ShipmentIDHasSuffix applies the HasSuffix predicate on the "shipment_id" field.
func ShipmentIDIn ¶
func ShipmentIDIn(vs ...string) predicate.ShipmentItem
ShipmentIDIn applies the In predicate on the "shipment_id" field.
func ShipmentIDLT ¶
func ShipmentIDLT(v string) predicate.ShipmentItem
ShipmentIDLT applies the LT predicate on the "shipment_id" field.
func ShipmentIDLTE ¶
func ShipmentIDLTE(v string) predicate.ShipmentItem
ShipmentIDLTE applies the LTE predicate on the "shipment_id" field.
func ShipmentIDNEQ ¶
func ShipmentIDNEQ(v string) predicate.ShipmentItem
ShipmentIDNEQ applies the NEQ predicate on the "shipment_id" field.
func ShipmentIDNotIn ¶
func ShipmentIDNotIn(vs ...string) predicate.ShipmentItem
ShipmentIDNotIn applies the NotIn predicate on the "shipment_id" field.
func Total ¶
func Total(v decimal.Decimal) predicate.ShipmentItem
Total applies equality check predicate on the "total" field. It's identical to TotalEQ.
func TotalEQ ¶
func TotalEQ(v decimal.Decimal) predicate.ShipmentItem
TotalEQ applies the EQ predicate on the "total" field.
func TotalGT ¶
func TotalGT(v decimal.Decimal) predicate.ShipmentItem
TotalGT applies the GT predicate on the "total" field.
func TotalGTE ¶
func TotalGTE(v decimal.Decimal) predicate.ShipmentItem
TotalGTE applies the GTE predicate on the "total" field.
func TotalIn ¶
func TotalIn(vs ...decimal.Decimal) predicate.ShipmentItem
TotalIn applies the In predicate on the "total" field.
func TotalLT ¶
func TotalLT(v decimal.Decimal) predicate.ShipmentItem
TotalLT applies the LT predicate on the "total" field.
func TotalLTE ¶
func TotalLTE(v decimal.Decimal) predicate.ShipmentItem
TotalLTE applies the LTE predicate on the "total" field.
func TotalNEQ ¶
func TotalNEQ(v decimal.Decimal) predicate.ShipmentItem
TotalNEQ applies the NEQ predicate on the "total" field.
func TotalNotIn ¶
func TotalNotIn(vs ...decimal.Decimal) predicate.ShipmentItem
TotalNotIn applies the NotIn predicate on the "total" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.ShipmentItem
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.ShipmentItem
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.ShipmentItem
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.ShipmentItem
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.ShipmentItem
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.ShipmentItem
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.ShipmentItem
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.ShipmentItem
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.ShipmentItem
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 ¶
type OrderOption ¶
OrderOption defines the ordering options for the ShipmentItem queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByOrderItemField ¶
func ByOrderItemField(field string, opts ...sql.OrderTermOption) OrderOption
ByOrderItemField orders the results by order_item field.
func ByOrderItemID ¶
func ByOrderItemID(opts ...sql.OrderTermOption) OrderOption
ByOrderItemID orders the results by the order_item_id field.
func ByQty ¶
func ByQty(opts ...sql.OrderTermOption) OrderOption
ByQty orders the results by the qty field.
func ByShipmentField ¶
func ByShipmentField(field string, opts ...sql.OrderTermOption) OrderOption
ByShipmentField orders the results by shipment field.
func ByShipmentID ¶
func ByShipmentID(opts ...sql.OrderTermOption) OrderOption
ByShipmentID orders the results by the shipment_id field.
func ByTotal ¶
func ByTotal(opts ...sql.OrderTermOption) OrderOption
ByTotal orders the results by the total field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.