Documentation
¶
Index ¶
- Constants
- Variables
- func Amount(v float64) predicate.InvoiceItem
- func AmountEQ(v float64) predicate.InvoiceItem
- func AmountGT(v float64) predicate.InvoiceItem
- func AmountGTE(v float64) predicate.InvoiceItem
- func AmountIn(vs ...float64) predicate.InvoiceItem
- func AmountLT(v float64) predicate.InvoiceItem
- func AmountLTE(v float64) predicate.InvoiceItem
- func AmountNEQ(v float64) predicate.InvoiceItem
- func AmountNotIn(vs ...float64) predicate.InvoiceItem
- func And(predicates ...predicate.InvoiceItem) predicate.InvoiceItem
- func Description(v string) predicate.InvoiceItem
- func DescriptionContains(v string) predicate.InvoiceItem
- func DescriptionContainsFold(v string) predicate.InvoiceItem
- func DescriptionEQ(v string) predicate.InvoiceItem
- func DescriptionEqualFold(v string) predicate.InvoiceItem
- func DescriptionGT(v string) predicate.InvoiceItem
- func DescriptionGTE(v string) predicate.InvoiceItem
- func DescriptionHasPrefix(v string) predicate.InvoiceItem
- func DescriptionHasSuffix(v string) predicate.InvoiceItem
- func DescriptionIn(vs ...string) predicate.InvoiceItem
- func DescriptionLT(v string) predicate.InvoiceItem
- func DescriptionLTE(v string) predicate.InvoiceItem
- func DescriptionNEQ(v string) predicate.InvoiceItem
- func DescriptionNotIn(vs ...string) predicate.InvoiceItem
- func HasInvoice() predicate.InvoiceItem
- func HasInvoiceWith(preds ...predicate.Invoice) predicate.InvoiceItem
- func ID(id uuid.UUID) predicate.InvoiceItem
- func IDEQ(id uuid.UUID) predicate.InvoiceItem
- func IDGT(id uuid.UUID) predicate.InvoiceItem
- func IDGTE(id uuid.UUID) predicate.InvoiceItem
- func IDIn(ids ...uuid.UUID) predicate.InvoiceItem
- func IDLT(id uuid.UUID) predicate.InvoiceItem
- func IDLTE(id uuid.UUID) predicate.InvoiceItem
- func IDNEQ(id uuid.UUID) predicate.InvoiceItem
- func IDNotIn(ids ...uuid.UUID) predicate.InvoiceItem
- func Not(p predicate.InvoiceItem) predicate.InvoiceItem
- func Or(predicates ...predicate.InvoiceItem) predicate.InvoiceItem
- func Quantity(v int) predicate.InvoiceItem
- func QuantityEQ(v int) predicate.InvoiceItem
- func QuantityGT(v int) predicate.InvoiceItem
- func QuantityGTE(v int) predicate.InvoiceItem
- func QuantityIn(vs ...int) predicate.InvoiceItem
- func QuantityLT(v int) predicate.InvoiceItem
- func QuantityLTE(v int) predicate.InvoiceItem
- func QuantityNEQ(v int) predicate.InvoiceItem
- func QuantityNotIn(vs ...int) predicate.InvoiceItem
- func UnitPrice(v float64) predicate.InvoiceItem
- func UnitPriceEQ(v float64) predicate.InvoiceItem
- func UnitPriceGT(v float64) predicate.InvoiceItem
- func UnitPriceGTE(v float64) predicate.InvoiceItem
- func UnitPriceIn(vs ...float64) predicate.InvoiceItem
- func UnitPriceLT(v float64) predicate.InvoiceItem
- func UnitPriceLTE(v float64) predicate.InvoiceItem
- func UnitPriceNEQ(v float64) predicate.InvoiceItem
- func UnitPriceNotIn(vs ...float64) predicate.InvoiceItem
- func ValidColumn(column string) bool
- func VatAmount(v float64) predicate.InvoiceItem
- func VatAmountEQ(v float64) predicate.InvoiceItem
- func VatAmountGT(v float64) predicate.InvoiceItem
- func VatAmountGTE(v float64) predicate.InvoiceItem
- func VatAmountIn(vs ...float64) predicate.InvoiceItem
- func VatAmountLT(v float64) predicate.InvoiceItem
- func VatAmountLTE(v float64) predicate.InvoiceItem
- func VatAmountNEQ(v float64) predicate.InvoiceItem
- func VatAmountNotIn(vs ...float64) predicate.InvoiceItem
- func VatRate(v float64) predicate.InvoiceItem
- func VatRateEQ(v float64) predicate.InvoiceItem
- func VatRateGT(v float64) predicate.InvoiceItem
- func VatRateGTE(v float64) predicate.InvoiceItem
- func VatRateIn(vs ...float64) predicate.InvoiceItem
- func VatRateLT(v float64) predicate.InvoiceItem
- func VatRateLTE(v float64) predicate.InvoiceItem
- func VatRateNEQ(v float64) predicate.InvoiceItem
- func VatRateNotIn(vs ...float64) predicate.InvoiceItem
- type OrderOption
- func ByAmount(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 ByQuantity(opts ...sql.OrderTermOption) OrderOption
- func ByUnitPrice(opts ...sql.OrderTermOption) OrderOption
- func ByVatAmount(opts ...sql.OrderTermOption) OrderOption
- func ByVatRate(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the invoiceitem type in the database. Label = "invoice_item" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldQuantity holds the string denoting the quantity field in the database. FieldQuantity = "quantity" // FieldUnitPrice holds the string denoting the unit_price field in the database. FieldUnitPrice = "unit_price" // FieldAmount holds the string denoting the amount field in the database. FieldAmount = "amount" // FieldVatRate holds the string denoting the vat_rate field in the database. FieldVatRate = "vat_rate" // FieldVatAmount holds the string denoting the vat_amount field in the database. FieldVatAmount = "vat_amount" // EdgeInvoice holds the string denoting the invoice edge name in mutations. EdgeInvoice = "invoice" // Table holds the table name of the invoiceitem in the database. Table = "invoice_items" // InvoiceTable is the table that holds the invoice relation/edge. InvoiceTable = "invoice_items" // 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_items" )
Variables ¶
var ( // DefaultVatRate holds the default value on creation for the "vat_rate" field. DefaultVatRate float64 // DefaultVatAmount holds the default value on creation for the "vat_amount" field. DefaultVatAmount float64 // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldDescription, FieldQuantity, FieldUnitPrice, FieldAmount, FieldVatRate, FieldVatAmount, }
Columns holds all SQL columns for invoiceitem fields.
var ForeignKeys = []string{
"invoice_items",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "invoice_items" table and are not defined as standalone fields in the schema.
Functions ¶
func Amount ¶
func Amount(v float64) predicate.InvoiceItem
Amount applies equality check predicate on the "amount" field. It's identical to AmountEQ.
func AmountEQ ¶
func AmountEQ(v float64) predicate.InvoiceItem
AmountEQ applies the EQ predicate on the "amount" field.
func AmountGT ¶
func AmountGT(v float64) predicate.InvoiceItem
AmountGT applies the GT predicate on the "amount" field.
func AmountGTE ¶
func AmountGTE(v float64) predicate.InvoiceItem
AmountGTE applies the GTE predicate on the "amount" field.
func AmountIn ¶
func AmountIn(vs ...float64) predicate.InvoiceItem
AmountIn applies the In predicate on the "amount" field.
func AmountLT ¶
func AmountLT(v float64) predicate.InvoiceItem
AmountLT applies the LT predicate on the "amount" field.
func AmountLTE ¶
func AmountLTE(v float64) predicate.InvoiceItem
AmountLTE applies the LTE predicate on the "amount" field.
func AmountNEQ ¶
func AmountNEQ(v float64) predicate.InvoiceItem
AmountNEQ applies the NEQ predicate on the "amount" field.
func AmountNotIn ¶
func AmountNotIn(vs ...float64) predicate.InvoiceItem
AmountNotIn applies the NotIn predicate on the "amount" field.
func And ¶
func And(predicates ...predicate.InvoiceItem) predicate.InvoiceItem
And groups predicates with the AND operator between them.
func Description ¶
func Description(v string) predicate.InvoiceItem
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
func DescriptionContains(v string) predicate.InvoiceItem
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
func DescriptionContainsFold(v string) predicate.InvoiceItem
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
func DescriptionEQ(v string) predicate.InvoiceItem
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
func DescriptionEqualFold(v string) predicate.InvoiceItem
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
func DescriptionGT(v string) predicate.InvoiceItem
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
func DescriptionGTE(v string) predicate.InvoiceItem
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
func DescriptionHasPrefix(v string) predicate.InvoiceItem
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
func DescriptionHasSuffix(v string) predicate.InvoiceItem
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
func DescriptionIn(vs ...string) predicate.InvoiceItem
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶
func DescriptionLT(v string) predicate.InvoiceItem
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
func DescriptionLTE(v string) predicate.InvoiceItem
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
func DescriptionNEQ(v string) predicate.InvoiceItem
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
func DescriptionNotIn(vs ...string) predicate.InvoiceItem
DescriptionNotIn applies the NotIn predicate on the "description" field.
func HasInvoice ¶
func HasInvoice() predicate.InvoiceItem
HasInvoice applies the HasEdge predicate on the "invoice" edge.
func HasInvoiceWith ¶
func HasInvoiceWith(preds ...predicate.Invoice) predicate.InvoiceItem
HasInvoiceWith applies the HasEdge predicate on the "invoice" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.InvoiceItem
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.InvoiceItem
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.InvoiceItem
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.InvoiceItem
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.InvoiceItem
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.InvoiceItem
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.InvoiceItem
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.InvoiceItem
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.InvoiceItem) predicate.InvoiceItem
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.InvoiceItem) predicate.InvoiceItem
Or groups predicates with the OR operator between them.
func Quantity ¶
func Quantity(v int) predicate.InvoiceItem
Quantity applies equality check predicate on the "quantity" field. It's identical to QuantityEQ.
func QuantityEQ ¶
func QuantityEQ(v int) predicate.InvoiceItem
QuantityEQ applies the EQ predicate on the "quantity" field.
func QuantityGT ¶
func QuantityGT(v int) predicate.InvoiceItem
QuantityGT applies the GT predicate on the "quantity" field.
func QuantityGTE ¶
func QuantityGTE(v int) predicate.InvoiceItem
QuantityGTE applies the GTE predicate on the "quantity" field.
func QuantityIn ¶
func QuantityIn(vs ...int) predicate.InvoiceItem
QuantityIn applies the In predicate on the "quantity" field.
func QuantityLT ¶
func QuantityLT(v int) predicate.InvoiceItem
QuantityLT applies the LT predicate on the "quantity" field.
func QuantityLTE ¶
func QuantityLTE(v int) predicate.InvoiceItem
QuantityLTE applies the LTE predicate on the "quantity" field.
func QuantityNEQ ¶
func QuantityNEQ(v int) predicate.InvoiceItem
QuantityNEQ applies the NEQ predicate on the "quantity" field.
func QuantityNotIn ¶
func QuantityNotIn(vs ...int) predicate.InvoiceItem
QuantityNotIn applies the NotIn predicate on the "quantity" field.
func UnitPrice ¶
func UnitPrice(v float64) predicate.InvoiceItem
UnitPrice applies equality check predicate on the "unit_price" field. It's identical to UnitPriceEQ.
func UnitPriceEQ ¶
func UnitPriceEQ(v float64) predicate.InvoiceItem
UnitPriceEQ applies the EQ predicate on the "unit_price" field.
func UnitPriceGT ¶
func UnitPriceGT(v float64) predicate.InvoiceItem
UnitPriceGT applies the GT predicate on the "unit_price" field.
func UnitPriceGTE ¶
func UnitPriceGTE(v float64) predicate.InvoiceItem
UnitPriceGTE applies the GTE predicate on the "unit_price" field.
func UnitPriceIn ¶
func UnitPriceIn(vs ...float64) predicate.InvoiceItem
UnitPriceIn applies the In predicate on the "unit_price" field.
func UnitPriceLT ¶
func UnitPriceLT(v float64) predicate.InvoiceItem
UnitPriceLT applies the LT predicate on the "unit_price" field.
func UnitPriceLTE ¶
func UnitPriceLTE(v float64) predicate.InvoiceItem
UnitPriceLTE applies the LTE predicate on the "unit_price" field.
func UnitPriceNEQ ¶
func UnitPriceNEQ(v float64) predicate.InvoiceItem
UnitPriceNEQ applies the NEQ predicate on the "unit_price" field.
func UnitPriceNotIn ¶
func UnitPriceNotIn(vs ...float64) predicate.InvoiceItem
UnitPriceNotIn applies the NotIn predicate on the "unit_price" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func VatAmount ¶
func VatAmount(v float64) predicate.InvoiceItem
VatAmount applies equality check predicate on the "vat_amount" field. It's identical to VatAmountEQ.
func VatAmountEQ ¶
func VatAmountEQ(v float64) predicate.InvoiceItem
VatAmountEQ applies the EQ predicate on the "vat_amount" field.
func VatAmountGT ¶
func VatAmountGT(v float64) predicate.InvoiceItem
VatAmountGT applies the GT predicate on the "vat_amount" field.
func VatAmountGTE ¶
func VatAmountGTE(v float64) predicate.InvoiceItem
VatAmountGTE applies the GTE predicate on the "vat_amount" field.
func VatAmountIn ¶
func VatAmountIn(vs ...float64) predicate.InvoiceItem
VatAmountIn applies the In predicate on the "vat_amount" field.
func VatAmountLT ¶
func VatAmountLT(v float64) predicate.InvoiceItem
VatAmountLT applies the LT predicate on the "vat_amount" field.
func VatAmountLTE ¶
func VatAmountLTE(v float64) predicate.InvoiceItem
VatAmountLTE applies the LTE predicate on the "vat_amount" field.
func VatAmountNEQ ¶
func VatAmountNEQ(v float64) predicate.InvoiceItem
VatAmountNEQ applies the NEQ predicate on the "vat_amount" field.
func VatAmountNotIn ¶
func VatAmountNotIn(vs ...float64) predicate.InvoiceItem
VatAmountNotIn applies the NotIn predicate on the "vat_amount" field.
func VatRate ¶
func VatRate(v float64) predicate.InvoiceItem
VatRate applies equality check predicate on the "vat_rate" field. It's identical to VatRateEQ.
func VatRateEQ ¶
func VatRateEQ(v float64) predicate.InvoiceItem
VatRateEQ applies the EQ predicate on the "vat_rate" field.
func VatRateGT ¶
func VatRateGT(v float64) predicate.InvoiceItem
VatRateGT applies the GT predicate on the "vat_rate" field.
func VatRateGTE ¶
func VatRateGTE(v float64) predicate.InvoiceItem
VatRateGTE applies the GTE predicate on the "vat_rate" field.
func VatRateIn ¶
func VatRateIn(vs ...float64) predicate.InvoiceItem
VatRateIn applies the In predicate on the "vat_rate" field.
func VatRateLT ¶
func VatRateLT(v float64) predicate.InvoiceItem
VatRateLT applies the LT predicate on the "vat_rate" field.
func VatRateLTE ¶
func VatRateLTE(v float64) predicate.InvoiceItem
VatRateLTE applies the LTE predicate on the "vat_rate" field.
func VatRateNEQ ¶
func VatRateNEQ(v float64) predicate.InvoiceItem
VatRateNEQ applies the NEQ predicate on the "vat_rate" field.
func VatRateNotIn ¶
func VatRateNotIn(vs ...float64) predicate.InvoiceItem
VatRateNotIn applies the NotIn predicate on the "vat_rate" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the InvoiceItem queries.
func ByAmount ¶
func ByAmount(opts ...sql.OrderTermOption) OrderOption
ByAmount orders the results by the amount 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 ByQuantity ¶
func ByQuantity(opts ...sql.OrderTermOption) OrderOption
ByQuantity orders the results by the quantity field.
func ByUnitPrice ¶
func ByUnitPrice(opts ...sql.OrderTermOption) OrderOption
ByUnitPrice orders the results by the unit_price field.
func ByVatAmount ¶
func ByVatAmount(opts ...sql.OrderTermOption) OrderOption
ByVatAmount orders the results by the vat_amount field.
func ByVatRate ¶
func ByVatRate(opts ...sql.OrderTermOption) OrderOption
ByVatRate orders the results by the vat_rate field.