Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.OrderHistory) predicate.OrderHistory
- func CreatedAt(v time.Time) predicate.OrderHistory
- func CreatedAtEQ(v time.Time) predicate.OrderHistory
- func CreatedAtGT(v time.Time) predicate.OrderHistory
- func CreatedAtGTE(v time.Time) predicate.OrderHistory
- func CreatedAtIn(vs ...time.Time) predicate.OrderHistory
- func CreatedAtLT(v time.Time) predicate.OrderHistory
- func CreatedAtLTE(v time.Time) predicate.OrderHistory
- func CreatedAtNEQ(v time.Time) predicate.OrderHistory
- func CreatedAtNotIn(vs ...time.Time) predicate.OrderHistory
- func Description(v string) predicate.OrderHistory
- func DescriptionContains(v string) predicate.OrderHistory
- func DescriptionContainsFold(v string) predicate.OrderHistory
- func DescriptionEQ(v string) predicate.OrderHistory
- func DescriptionEqualFold(v string) predicate.OrderHistory
- func DescriptionGT(v string) predicate.OrderHistory
- func DescriptionGTE(v string) predicate.OrderHistory
- func DescriptionHasPrefix(v string) predicate.OrderHistory
- func DescriptionHasSuffix(v string) predicate.OrderHistory
- func DescriptionIn(vs ...string) predicate.OrderHistory
- func DescriptionIsNil() predicate.OrderHistory
- func DescriptionLT(v string) predicate.OrderHistory
- func DescriptionLTE(v string) predicate.OrderHistory
- func DescriptionNEQ(v string) predicate.OrderHistory
- func DescriptionNotIn(vs ...string) predicate.OrderHistory
- func DescriptionNotNil() predicate.OrderHistory
- func HasNewStatus() predicate.OrderHistory
- func HasNewStatusWith(preds ...predicate.OrderStatusCode) predicate.OrderHistory
- func HasOldStatus() predicate.OrderHistory
- func HasOldStatusWith(preds ...predicate.OrderStatusCode) predicate.OrderHistory
- func HasOrder() predicate.OrderHistory
- func HasOrderWith(preds ...predicate.Order) predicate.OrderHistory
- func HasPerson() predicate.OrderHistory
- func HasPersonWith(preds ...predicate.Person) predicate.OrderHistory
- func ID(id uuid.UUID) predicate.OrderHistory
- func IDEQ(id uuid.UUID) predicate.OrderHistory
- func IDGT(id uuid.UUID) predicate.OrderHistory
- func IDGTE(id uuid.UUID) predicate.OrderHistory
- func IDIn(ids ...uuid.UUID) predicate.OrderHistory
- func IDLT(id uuid.UUID) predicate.OrderHistory
- func IDLTE(id uuid.UUID) predicate.OrderHistory
- func IDNEQ(id uuid.UUID) predicate.OrderHistory
- func IDNotIn(ids ...uuid.UUID) predicate.OrderHistory
- func NewStatusCode(v int) predicate.OrderHistory
- func NewStatusCodeEQ(v int) predicate.OrderHistory
- func NewStatusCodeIn(vs ...int) predicate.OrderHistory
- func NewStatusCodeIsNil() predicate.OrderHistory
- func NewStatusCodeNEQ(v int) predicate.OrderHistory
- func NewStatusCodeNotIn(vs ...int) predicate.OrderHistory
- func NewStatusCodeNotNil() predicate.OrderHistory
- func Not(p predicate.OrderHistory) predicate.OrderHistory
- func OldStatusCode(v int) predicate.OrderHistory
- func OldStatusCodeEQ(v int) predicate.OrderHistory
- func OldStatusCodeIn(vs ...int) predicate.OrderHistory
- func OldStatusCodeIsNil() predicate.OrderHistory
- func OldStatusCodeNEQ(v int) predicate.OrderHistory
- func OldStatusCodeNotIn(vs ...int) predicate.OrderHistory
- func OldStatusCodeNotNil() predicate.OrderHistory
- func Or(predicates ...predicate.OrderHistory) predicate.OrderHistory
- func OrderID(v uuid.UUID) predicate.OrderHistory
- func OrderIDEQ(v uuid.UUID) predicate.OrderHistory
- func OrderIDIn(vs ...uuid.UUID) predicate.OrderHistory
- func OrderIDNEQ(v uuid.UUID) predicate.OrderHistory
- func OrderIDNotIn(vs ...uuid.UUID) predicate.OrderHistory
- func PersonID(v uuid.UUID) predicate.OrderHistory
- func PersonIDEQ(v uuid.UUID) predicate.OrderHistory
- func PersonIDIn(vs ...uuid.UUID) predicate.OrderHistory
- func PersonIDNEQ(v uuid.UUID) predicate.OrderHistory
- func PersonIDNotIn(vs ...uuid.UUID) predicate.OrderHistory
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByNewStatusCode(opts ...sql.OrderTermOption) OrderOption
- func ByNewStatusField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOldStatusCode(opts ...sql.OrderTermOption) OrderOption
- func ByOldStatusField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOrderField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOrderID(opts ...sql.OrderTermOption) OrderOption
- func ByPersonField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPersonID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the orderhistory type in the database. Label = "order_history" // 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" // FieldOrderID holds the string denoting the order_id field in the database. FieldOrderID = "order_id" // FieldPersonID holds the string denoting the person_id field in the database. FieldPersonID = "person_id" // FieldOldStatusCode holds the string denoting the old_status_code field in the database. FieldOldStatusCode = "old_status_code" // FieldNewStatusCode holds the string denoting the new_status_code field in the database. FieldNewStatusCode = "new_status_code" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // EdgeOrder holds the string denoting the order edge name in mutations. EdgeOrder = "order" // EdgePerson holds the string denoting the person edge name in mutations. EdgePerson = "person" // EdgeOldStatus holds the string denoting the old_status edge name in mutations. EdgeOldStatus = "old_status" // EdgeNewStatus holds the string denoting the new_status edge name in mutations. EdgeNewStatus = "new_status" // Table holds the table name of the orderhistory in the database. Table = "order_history" // OrderTable is the table that holds the order relation/edge. OrderTable = "order_history" // OrderInverseTable is the table name for the Order entity. // It exists in this package in order to avoid circular dependency with the "order" package. OrderInverseTable = "orders" // OrderColumn is the table column denoting the order relation/edge. OrderColumn = "order_id" // PersonTable is the table that holds the person relation/edge. PersonTable = "order_history" // PersonInverseTable is the table name for the Person entity. // It exists in this package in order to avoid circular dependency with the "person" package. PersonInverseTable = "persons" // PersonColumn is the table column denoting the person relation/edge. PersonColumn = "person_id" // OldStatusTable is the table that holds the old_status relation/edge. OldStatusTable = "order_history" // OldStatusInverseTable is the table name for the OrderStatusCode entity. // It exists in this package in order to avoid circular dependency with the "orderstatuscode" package. OldStatusInverseTable = "order_status_codes" // OldStatusColumn is the table column denoting the old_status relation/edge. OldStatusColumn = "old_status_code" // NewStatusTable is the table that holds the new_status relation/edge. NewStatusTable = "order_history" // NewStatusInverseTable is the table name for the OrderStatusCode entity. // It exists in this package in order to avoid circular dependency with the "orderstatuscode" package. NewStatusInverseTable = "order_status_codes" // NewStatusColumn is the table column denoting the new_status relation/edge. NewStatusColumn = "new_status_code" )
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, FieldCreatedAt, FieldOrderID, FieldPersonID, FieldOldStatusCode, FieldNewStatusCode, FieldDescription, }
Columns holds all SQL columns for orderhistory fields.
Functions ¶
func And ¶
func And(predicates ...predicate.OrderHistory) predicate.OrderHistory
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.OrderHistory
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.OrderHistory
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.OrderHistory
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.OrderHistory
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.OrderHistory
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.OrderHistory
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.OrderHistory
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.OrderHistory
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.OrderHistory
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Description ¶
func Description(v string) predicate.OrderHistory
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
func DescriptionContains(v string) predicate.OrderHistory
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
func DescriptionContainsFold(v string) predicate.OrderHistory
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
func DescriptionEQ(v string) predicate.OrderHistory
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
func DescriptionEqualFold(v string) predicate.OrderHistory
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
func DescriptionGT(v string) predicate.OrderHistory
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
func DescriptionGTE(v string) predicate.OrderHistory
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
func DescriptionHasPrefix(v string) predicate.OrderHistory
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
func DescriptionHasSuffix(v string) predicate.OrderHistory
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
func DescriptionIn(vs ...string) predicate.OrderHistory
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
func DescriptionIsNil() predicate.OrderHistory
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
func DescriptionLT(v string) predicate.OrderHistory
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
func DescriptionLTE(v string) predicate.OrderHistory
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
func DescriptionNEQ(v string) predicate.OrderHistory
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
func DescriptionNotIn(vs ...string) predicate.OrderHistory
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
func DescriptionNotNil() predicate.OrderHistory
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasNewStatus ¶
func HasNewStatus() predicate.OrderHistory
HasNewStatus applies the HasEdge predicate on the "new_status" edge.
func HasNewStatusWith ¶
func HasNewStatusWith(preds ...predicate.OrderStatusCode) predicate.OrderHistory
HasNewStatusWith applies the HasEdge predicate on the "new_status" edge with a given conditions (other predicates).
func HasOldStatus ¶
func HasOldStatus() predicate.OrderHistory
HasOldStatus applies the HasEdge predicate on the "old_status" edge.
func HasOldStatusWith ¶
func HasOldStatusWith(preds ...predicate.OrderStatusCode) predicate.OrderHistory
HasOldStatusWith applies the HasEdge predicate on the "old_status" edge with a given conditions (other predicates).
func HasOrder ¶
func HasOrder() predicate.OrderHistory
HasOrder applies the HasEdge predicate on the "order" edge.
func HasOrderWith ¶
func HasOrderWith(preds ...predicate.Order) predicate.OrderHistory
HasOrderWith applies the HasEdge predicate on the "order" edge with a given conditions (other predicates).
func HasPerson ¶
func HasPerson() predicate.OrderHistory
HasPerson applies the HasEdge predicate on the "person" edge.
func HasPersonWith ¶
func HasPersonWith(preds ...predicate.Person) predicate.OrderHistory
HasPersonWith applies the HasEdge predicate on the "person" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.OrderHistory
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.OrderHistory
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.OrderHistory
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.OrderHistory
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.OrderHistory
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.OrderHistory
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.OrderHistory
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.OrderHistory
IDNotIn applies the NotIn predicate on the ID field.
func NewStatusCode ¶
func NewStatusCode(v int) predicate.OrderHistory
NewStatusCode applies equality check predicate on the "new_status_code" field. It's identical to NewStatusCodeEQ.
func NewStatusCodeEQ ¶
func NewStatusCodeEQ(v int) predicate.OrderHistory
NewStatusCodeEQ applies the EQ predicate on the "new_status_code" field.
func NewStatusCodeIn ¶
func NewStatusCodeIn(vs ...int) predicate.OrderHistory
NewStatusCodeIn applies the In predicate on the "new_status_code" field.
func NewStatusCodeIsNil ¶
func NewStatusCodeIsNil() predicate.OrderHistory
NewStatusCodeIsNil applies the IsNil predicate on the "new_status_code" field.
func NewStatusCodeNEQ ¶
func NewStatusCodeNEQ(v int) predicate.OrderHistory
NewStatusCodeNEQ applies the NEQ predicate on the "new_status_code" field.
func NewStatusCodeNotIn ¶
func NewStatusCodeNotIn(vs ...int) predicate.OrderHistory
NewStatusCodeNotIn applies the NotIn predicate on the "new_status_code" field.
func NewStatusCodeNotNil ¶
func NewStatusCodeNotNil() predicate.OrderHistory
NewStatusCodeNotNil applies the NotNil predicate on the "new_status_code" field.
func Not ¶
func Not(p predicate.OrderHistory) predicate.OrderHistory
Not applies the not operator on the given predicate.
func OldStatusCode ¶
func OldStatusCode(v int) predicate.OrderHistory
OldStatusCode applies equality check predicate on the "old_status_code" field. It's identical to OldStatusCodeEQ.
func OldStatusCodeEQ ¶
func OldStatusCodeEQ(v int) predicate.OrderHistory
OldStatusCodeEQ applies the EQ predicate on the "old_status_code" field.
func OldStatusCodeIn ¶
func OldStatusCodeIn(vs ...int) predicate.OrderHistory
OldStatusCodeIn applies the In predicate on the "old_status_code" field.
func OldStatusCodeIsNil ¶
func OldStatusCodeIsNil() predicate.OrderHistory
OldStatusCodeIsNil applies the IsNil predicate on the "old_status_code" field.
func OldStatusCodeNEQ ¶
func OldStatusCodeNEQ(v int) predicate.OrderHistory
OldStatusCodeNEQ applies the NEQ predicate on the "old_status_code" field.
func OldStatusCodeNotIn ¶
func OldStatusCodeNotIn(vs ...int) predicate.OrderHistory
OldStatusCodeNotIn applies the NotIn predicate on the "old_status_code" field.
func OldStatusCodeNotNil ¶
func OldStatusCodeNotNil() predicate.OrderHistory
OldStatusCodeNotNil applies the NotNil predicate on the "old_status_code" field.
func Or ¶
func Or(predicates ...predicate.OrderHistory) predicate.OrderHistory
Or groups predicates with the OR operator between them.
func OrderID ¶
func OrderID(v uuid.UUID) predicate.OrderHistory
OrderID applies equality check predicate on the "order_id" field. It's identical to OrderIDEQ.
func OrderIDEQ ¶
func OrderIDEQ(v uuid.UUID) predicate.OrderHistory
OrderIDEQ applies the EQ predicate on the "order_id" field.
func OrderIDIn ¶
func OrderIDIn(vs ...uuid.UUID) predicate.OrderHistory
OrderIDIn applies the In predicate on the "order_id" field.
func OrderIDNEQ ¶
func OrderIDNEQ(v uuid.UUID) predicate.OrderHistory
OrderIDNEQ applies the NEQ predicate on the "order_id" field.
func OrderIDNotIn ¶
func OrderIDNotIn(vs ...uuid.UUID) predicate.OrderHistory
OrderIDNotIn applies the NotIn predicate on the "order_id" field.
func PersonID ¶
func PersonID(v uuid.UUID) predicate.OrderHistory
PersonID applies equality check predicate on the "person_id" field. It's identical to PersonIDEQ.
func PersonIDEQ ¶
func PersonIDEQ(v uuid.UUID) predicate.OrderHistory
PersonIDEQ applies the EQ predicate on the "person_id" field.
func PersonIDIn ¶
func PersonIDIn(vs ...uuid.UUID) predicate.OrderHistory
PersonIDIn applies the In predicate on the "person_id" field.
func PersonIDNEQ ¶
func PersonIDNEQ(v uuid.UUID) predicate.OrderHistory
PersonIDNEQ applies the NEQ predicate on the "person_id" field.
func PersonIDNotIn ¶
func PersonIDNotIn(vs ...uuid.UUID) predicate.OrderHistory
PersonIDNotIn applies the NotIn predicate on the "person_id" 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 OrderHistory queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByNewStatusCode ¶
func ByNewStatusCode(opts ...sql.OrderTermOption) OrderOption
ByNewStatusCode orders the results by the new_status_code field.
func ByNewStatusField ¶
func ByNewStatusField(field string, opts ...sql.OrderTermOption) OrderOption
ByNewStatusField orders the results by new_status field.
func ByOldStatusCode ¶
func ByOldStatusCode(opts ...sql.OrderTermOption) OrderOption
ByOldStatusCode orders the results by the old_status_code field.
func ByOldStatusField ¶
func ByOldStatusField(field string, opts ...sql.OrderTermOption) OrderOption
ByOldStatusField orders the results by old_status field.
func ByOrderField ¶
func ByOrderField(field string, opts ...sql.OrderTermOption) OrderOption
ByOrderField orders the results by order field.
func ByOrderID ¶
func ByOrderID(opts ...sql.OrderTermOption) OrderOption
ByOrderID orders the results by the order_id field.
func ByPersonField ¶
func ByPersonField(field string, opts ...sql.OrderTermOption) OrderOption
ByPersonField orders the results by person field.
func ByPersonID ¶
func ByPersonID(opts ...sql.OrderTermOption) OrderOption
ByPersonID orders the results by the person_id field.