Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.InvoiceHistory) predicate.InvoiceHistory
- func CreatedAt(v time.Time) predicate.InvoiceHistory
- func CreatedAtEQ(v time.Time) predicate.InvoiceHistory
- func CreatedAtGT(v time.Time) predicate.InvoiceHistory
- func CreatedAtGTE(v time.Time) predicate.InvoiceHistory
- func CreatedAtIn(vs ...time.Time) predicate.InvoiceHistory
- func CreatedAtLT(v time.Time) predicate.InvoiceHistory
- func CreatedAtLTE(v time.Time) predicate.InvoiceHistory
- func CreatedAtNEQ(v time.Time) predicate.InvoiceHistory
- func CreatedAtNotIn(vs ...time.Time) predicate.InvoiceHistory
- func Description(v string) predicate.InvoiceHistory
- func DescriptionContains(v string) predicate.InvoiceHistory
- func DescriptionContainsFold(v string) predicate.InvoiceHistory
- func DescriptionEQ(v string) predicate.InvoiceHistory
- func DescriptionEqualFold(v string) predicate.InvoiceHistory
- func DescriptionGT(v string) predicate.InvoiceHistory
- func DescriptionGTE(v string) predicate.InvoiceHistory
- func DescriptionHasPrefix(v string) predicate.InvoiceHistory
- func DescriptionHasSuffix(v string) predicate.InvoiceHistory
- func DescriptionIn(vs ...string) predicate.InvoiceHistory
- func DescriptionIsNil() predicate.InvoiceHistory
- func DescriptionLT(v string) predicate.InvoiceHistory
- func DescriptionLTE(v string) predicate.InvoiceHistory
- func DescriptionNEQ(v string) predicate.InvoiceHistory
- func DescriptionNotIn(vs ...string) predicate.InvoiceHistory
- func DescriptionNotNil() predicate.InvoiceHistory
- func HasInvoice() predicate.InvoiceHistory
- func HasInvoiceWith(preds ...predicate.Invoice) predicate.InvoiceHistory
- func HasNewStatus() predicate.InvoiceHistory
- func HasNewStatusWith(preds ...predicate.InvoiceStatusCode) predicate.InvoiceHistory
- func HasOldStatus() predicate.InvoiceHistory
- func HasOldStatusWith(preds ...predicate.InvoiceStatusCode) predicate.InvoiceHistory
- func HasPerson() predicate.InvoiceHistory
- func HasPersonWith(preds ...predicate.Person) predicate.InvoiceHistory
- func ID(id uuid.UUID) predicate.InvoiceHistory
- func IDEQ(id uuid.UUID) predicate.InvoiceHistory
- func IDGT(id uuid.UUID) predicate.InvoiceHistory
- func IDGTE(id uuid.UUID) predicate.InvoiceHistory
- func IDIn(ids ...uuid.UUID) predicate.InvoiceHistory
- func IDLT(id uuid.UUID) predicate.InvoiceHistory
- func IDLTE(id uuid.UUID) predicate.InvoiceHistory
- func IDNEQ(id uuid.UUID) predicate.InvoiceHistory
- func IDNotIn(ids ...uuid.UUID) predicate.InvoiceHistory
- func InvoiceID(v uuid.UUID) predicate.InvoiceHistory
- func InvoiceIDEQ(v uuid.UUID) predicate.InvoiceHistory
- func InvoiceIDIn(vs ...uuid.UUID) predicate.InvoiceHistory
- func InvoiceIDNEQ(v uuid.UUID) predicate.InvoiceHistory
- func InvoiceIDNotIn(vs ...uuid.UUID) predicate.InvoiceHistory
- func NewStatusCode(v int) predicate.InvoiceHistory
- func NewStatusCodeEQ(v int) predicate.InvoiceHistory
- func NewStatusCodeIn(vs ...int) predicate.InvoiceHistory
- func NewStatusCodeIsNil() predicate.InvoiceHistory
- func NewStatusCodeNEQ(v int) predicate.InvoiceHistory
- func NewStatusCodeNotIn(vs ...int) predicate.InvoiceHistory
- func NewStatusCodeNotNil() predicate.InvoiceHistory
- func Not(p predicate.InvoiceHistory) predicate.InvoiceHistory
- func OldStatusCode(v int) predicate.InvoiceHistory
- func OldStatusCodeEQ(v int) predicate.InvoiceHistory
- func OldStatusCodeIn(vs ...int) predicate.InvoiceHistory
- func OldStatusCodeIsNil() predicate.InvoiceHistory
- func OldStatusCodeNEQ(v int) predicate.InvoiceHistory
- func OldStatusCodeNotIn(vs ...int) predicate.InvoiceHistory
- func OldStatusCodeNotNil() predicate.InvoiceHistory
- func Or(predicates ...predicate.InvoiceHistory) predicate.InvoiceHistory
- func PersonID(v uuid.UUID) predicate.InvoiceHistory
- func PersonIDEQ(v uuid.UUID) predicate.InvoiceHistory
- func PersonIDIn(vs ...uuid.UUID) predicate.InvoiceHistory
- func PersonIDNEQ(v uuid.UUID) predicate.InvoiceHistory
- func PersonIDNotIn(vs ...uuid.UUID) predicate.InvoiceHistory
- 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 ByInvoiceField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByInvoiceID(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 ByPersonField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPersonID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the invoicehistory type in the database. Label = "invoice_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" // FieldInvoiceID holds the string denoting the invoice_id field in the database. FieldInvoiceID = "invoice_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" // EdgeInvoice holds the string denoting the invoice edge name in mutations. EdgeInvoice = "invoice" // 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 invoicehistory in the database. Table = "invoice_history" // InvoiceTable is the table that holds the invoice relation/edge. InvoiceTable = "invoice_history" // InvoiceInverseTable is the table name for the Invoice entity. // It exists in this package in order to avoid circular dependency with the "invoice" package. InvoiceInverseTable = "invoices" // InvoiceColumn is the table column denoting the invoice relation/edge. InvoiceColumn = "invoice_id" // PersonTable is the table that holds the person relation/edge. PersonTable = "invoice_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 = "invoice_history" // OldStatusInverseTable is the table name for the InvoiceStatusCode entity. // It exists in this package in order to avoid circular dependency with the "invoicestatuscode" package. OldStatusInverseTable = "invoice_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 = "invoice_history" // NewStatusInverseTable is the table name for the InvoiceStatusCode entity. // It exists in this package in order to avoid circular dependency with the "invoicestatuscode" package. NewStatusInverseTable = "invoice_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, FieldInvoiceID, FieldPersonID, FieldOldStatusCode, FieldNewStatusCode, FieldDescription, }
Columns holds all SQL columns for invoicehistory fields.
Functions ¶
func And ¶
func And(predicates ...predicate.InvoiceHistory) predicate.InvoiceHistory
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.InvoiceHistory
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.InvoiceHistory
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.InvoiceHistory
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.InvoiceHistory
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.InvoiceHistory
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.InvoiceHistory
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.InvoiceHistory
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.InvoiceHistory
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.InvoiceHistory
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Description ¶
func Description(v string) predicate.InvoiceHistory
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
func DescriptionContains(v string) predicate.InvoiceHistory
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
func DescriptionContainsFold(v string) predicate.InvoiceHistory
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
func DescriptionEQ(v string) predicate.InvoiceHistory
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
func DescriptionEqualFold(v string) predicate.InvoiceHistory
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
func DescriptionGT(v string) predicate.InvoiceHistory
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
func DescriptionGTE(v string) predicate.InvoiceHistory
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
func DescriptionHasPrefix(v string) predicate.InvoiceHistory
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
func DescriptionHasSuffix(v string) predicate.InvoiceHistory
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
func DescriptionIn(vs ...string) predicate.InvoiceHistory
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
func DescriptionIsNil() predicate.InvoiceHistory
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
func DescriptionLT(v string) predicate.InvoiceHistory
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
func DescriptionLTE(v string) predicate.InvoiceHistory
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
func DescriptionNEQ(v string) predicate.InvoiceHistory
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
func DescriptionNotIn(vs ...string) predicate.InvoiceHistory
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
func DescriptionNotNil() predicate.InvoiceHistory
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasInvoice ¶
func HasInvoice() predicate.InvoiceHistory
HasInvoice applies the HasEdge predicate on the "invoice" edge.
func HasInvoiceWith ¶
func HasInvoiceWith(preds ...predicate.Invoice) predicate.InvoiceHistory
HasInvoiceWith applies the HasEdge predicate on the "invoice" edge with a given conditions (other predicates).
func HasNewStatus ¶
func HasNewStatus() predicate.InvoiceHistory
HasNewStatus applies the HasEdge predicate on the "new_status" edge.
func HasNewStatusWith ¶
func HasNewStatusWith(preds ...predicate.InvoiceStatusCode) predicate.InvoiceHistory
HasNewStatusWith applies the HasEdge predicate on the "new_status" edge with a given conditions (other predicates).
func HasOldStatus ¶
func HasOldStatus() predicate.InvoiceHistory
HasOldStatus applies the HasEdge predicate on the "old_status" edge.
func HasOldStatusWith ¶
func HasOldStatusWith(preds ...predicate.InvoiceStatusCode) predicate.InvoiceHistory
HasOldStatusWith applies the HasEdge predicate on the "old_status" edge with a given conditions (other predicates).
func HasPerson ¶
func HasPerson() predicate.InvoiceHistory
HasPerson applies the HasEdge predicate on the "person" edge.
func HasPersonWith ¶
func HasPersonWith(preds ...predicate.Person) predicate.InvoiceHistory
HasPersonWith applies the HasEdge predicate on the "person" edge with a given conditions (other predicates).
func ID ¶
func ID(id uuid.UUID) predicate.InvoiceHistory
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.InvoiceHistory
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.InvoiceHistory
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.InvoiceHistory
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.InvoiceHistory
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.InvoiceHistory
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.InvoiceHistory
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.InvoiceHistory
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.InvoiceHistory
IDNotIn applies the NotIn predicate on the ID field.
func InvoiceID ¶
func InvoiceID(v uuid.UUID) predicate.InvoiceHistory
InvoiceID applies equality check predicate on the "invoice_id" field. It's identical to InvoiceIDEQ.
func InvoiceIDEQ ¶
func InvoiceIDEQ(v uuid.UUID) predicate.InvoiceHistory
InvoiceIDEQ applies the EQ predicate on the "invoice_id" field.
func InvoiceIDIn ¶
func InvoiceIDIn(vs ...uuid.UUID) predicate.InvoiceHistory
InvoiceIDIn applies the In predicate on the "invoice_id" field.
func InvoiceIDNEQ ¶
func InvoiceIDNEQ(v uuid.UUID) predicate.InvoiceHistory
InvoiceIDNEQ applies the NEQ predicate on the "invoice_id" field.
func InvoiceIDNotIn ¶
func InvoiceIDNotIn(vs ...uuid.UUID) predicate.InvoiceHistory
InvoiceIDNotIn applies the NotIn predicate on the "invoice_id" field.
func NewStatusCode ¶
func NewStatusCode(v int) predicate.InvoiceHistory
NewStatusCode applies equality check predicate on the "new_status_code" field. It's identical to NewStatusCodeEQ.
func NewStatusCodeEQ ¶
func NewStatusCodeEQ(v int) predicate.InvoiceHistory
NewStatusCodeEQ applies the EQ predicate on the "new_status_code" field.
func NewStatusCodeIn ¶
func NewStatusCodeIn(vs ...int) predicate.InvoiceHistory
NewStatusCodeIn applies the In predicate on the "new_status_code" field.
func NewStatusCodeIsNil ¶
func NewStatusCodeIsNil() predicate.InvoiceHistory
NewStatusCodeIsNil applies the IsNil predicate on the "new_status_code" field.
func NewStatusCodeNEQ ¶
func NewStatusCodeNEQ(v int) predicate.InvoiceHistory
NewStatusCodeNEQ applies the NEQ predicate on the "new_status_code" field.
func NewStatusCodeNotIn ¶
func NewStatusCodeNotIn(vs ...int) predicate.InvoiceHistory
NewStatusCodeNotIn applies the NotIn predicate on the "new_status_code" field.
func NewStatusCodeNotNil ¶
func NewStatusCodeNotNil() predicate.InvoiceHistory
NewStatusCodeNotNil applies the NotNil predicate on the "new_status_code" field.
func Not ¶
func Not(p predicate.InvoiceHistory) predicate.InvoiceHistory
Not applies the not operator on the given predicate.
func OldStatusCode ¶
func OldStatusCode(v int) predicate.InvoiceHistory
OldStatusCode applies equality check predicate on the "old_status_code" field. It's identical to OldStatusCodeEQ.
func OldStatusCodeEQ ¶
func OldStatusCodeEQ(v int) predicate.InvoiceHistory
OldStatusCodeEQ applies the EQ predicate on the "old_status_code" field.
func OldStatusCodeIn ¶
func OldStatusCodeIn(vs ...int) predicate.InvoiceHistory
OldStatusCodeIn applies the In predicate on the "old_status_code" field.
func OldStatusCodeIsNil ¶
func OldStatusCodeIsNil() predicate.InvoiceHistory
OldStatusCodeIsNil applies the IsNil predicate on the "old_status_code" field.
func OldStatusCodeNEQ ¶
func OldStatusCodeNEQ(v int) predicate.InvoiceHistory
OldStatusCodeNEQ applies the NEQ predicate on the "old_status_code" field.
func OldStatusCodeNotIn ¶
func OldStatusCodeNotIn(vs ...int) predicate.InvoiceHistory
OldStatusCodeNotIn applies the NotIn predicate on the "old_status_code" field.
func OldStatusCodeNotNil ¶
func OldStatusCodeNotNil() predicate.InvoiceHistory
OldStatusCodeNotNil applies the NotNil predicate on the "old_status_code" field.
func Or ¶
func Or(predicates ...predicate.InvoiceHistory) predicate.InvoiceHistory
Or groups predicates with the OR operator between them.
func PersonID ¶
func PersonID(v uuid.UUID) predicate.InvoiceHistory
PersonID applies equality check predicate on the "person_id" field. It's identical to PersonIDEQ.
func PersonIDEQ ¶
func PersonIDEQ(v uuid.UUID) predicate.InvoiceHistory
PersonIDEQ applies the EQ predicate on the "person_id" field.
func PersonIDIn ¶
func PersonIDIn(vs ...uuid.UUID) predicate.InvoiceHistory
PersonIDIn applies the In predicate on the "person_id" field.
func PersonIDNEQ ¶
func PersonIDNEQ(v uuid.UUID) predicate.InvoiceHistory
PersonIDNEQ applies the NEQ predicate on the "person_id" field.
func PersonIDNotIn ¶
func PersonIDNotIn(vs ...uuid.UUID) predicate.InvoiceHistory
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 InvoiceHistory 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 ByInvoiceField ¶
func ByInvoiceField(field string, opts ...sql.OrderTermOption) OrderOption
ByInvoiceField orders the results by invoice field.
func ByInvoiceID ¶
func ByInvoiceID(opts ...sql.OrderTermOption) OrderOption
ByInvoiceID orders the results by the invoice_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 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.