Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.PriceUnit) predicate.PriceUnit
- func BaseCurrency(v string) predicate.PriceUnit
- func BaseCurrencyContains(v string) predicate.PriceUnit
- func BaseCurrencyContainsFold(v string) predicate.PriceUnit
- func BaseCurrencyEQ(v string) predicate.PriceUnit
- func BaseCurrencyEqualFold(v string) predicate.PriceUnit
- func BaseCurrencyGT(v string) predicate.PriceUnit
- func BaseCurrencyGTE(v string) predicate.PriceUnit
- func BaseCurrencyHasPrefix(v string) predicate.PriceUnit
- func BaseCurrencyHasSuffix(v string) predicate.PriceUnit
- func BaseCurrencyIn(vs ...string) predicate.PriceUnit
- func BaseCurrencyLT(v string) predicate.PriceUnit
- func BaseCurrencyLTE(v string) predicate.PriceUnit
- func BaseCurrencyNEQ(v string) predicate.PriceUnit
- func BaseCurrencyNotIn(vs ...string) predicate.PriceUnit
- func Code(v string) predicate.PriceUnit
- func CodeContains(v string) predicate.PriceUnit
- func CodeContainsFold(v string) predicate.PriceUnit
- func CodeEQ(v string) predicate.PriceUnit
- func CodeEqualFold(v string) predicate.PriceUnit
- func CodeGT(v string) predicate.PriceUnit
- func CodeGTE(v string) predicate.PriceUnit
- func CodeHasPrefix(v string) predicate.PriceUnit
- func CodeHasSuffix(v string) predicate.PriceUnit
- func CodeIn(vs ...string) predicate.PriceUnit
- func CodeLT(v string) predicate.PriceUnit
- func CodeLTE(v string) predicate.PriceUnit
- func CodeNEQ(v string) predicate.PriceUnit
- func CodeNotIn(vs ...string) predicate.PriceUnit
- func ConversionRate(v decimal.Decimal) predicate.PriceUnit
- func ConversionRateEQ(v decimal.Decimal) predicate.PriceUnit
- func ConversionRateGT(v decimal.Decimal) predicate.PriceUnit
- func ConversionRateGTE(v decimal.Decimal) predicate.PriceUnit
- func ConversionRateIn(vs ...decimal.Decimal) predicate.PriceUnit
- func ConversionRateLT(v decimal.Decimal) predicate.PriceUnit
- func ConversionRateLTE(v decimal.Decimal) predicate.PriceUnit
- func ConversionRateNEQ(v decimal.Decimal) predicate.PriceUnit
- func ConversionRateNotIn(vs ...decimal.Decimal) predicate.PriceUnit
- func CreatedAt(v time.Time) predicate.PriceUnit
- func CreatedAtEQ(v time.Time) predicate.PriceUnit
- func CreatedAtGT(v time.Time) predicate.PriceUnit
- func CreatedAtGTE(v time.Time) predicate.PriceUnit
- func CreatedAtIn(vs ...time.Time) predicate.PriceUnit
- func CreatedAtLT(v time.Time) predicate.PriceUnit
- func CreatedAtLTE(v time.Time) predicate.PriceUnit
- func CreatedAtNEQ(v time.Time) predicate.PriceUnit
- func CreatedAtNotIn(vs ...time.Time) predicate.PriceUnit
- func CreatedBy(v string) predicate.PriceUnit
- func CreatedByContains(v string) predicate.PriceUnit
- func CreatedByContainsFold(v string) predicate.PriceUnit
- func CreatedByEQ(v string) predicate.PriceUnit
- func CreatedByEqualFold(v string) predicate.PriceUnit
- func CreatedByGT(v string) predicate.PriceUnit
- func CreatedByGTE(v string) predicate.PriceUnit
- func CreatedByHasPrefix(v string) predicate.PriceUnit
- func CreatedByHasSuffix(v string) predicate.PriceUnit
- func CreatedByIn(vs ...string) predicate.PriceUnit
- func CreatedByIsNil() predicate.PriceUnit
- func CreatedByLT(v string) predicate.PriceUnit
- func CreatedByLTE(v string) predicate.PriceUnit
- func CreatedByNEQ(v string) predicate.PriceUnit
- func CreatedByNotIn(vs ...string) predicate.PriceUnit
- func CreatedByNotNil() predicate.PriceUnit
- func EnvironmentID(v string) predicate.PriceUnit
- func EnvironmentIDContains(v string) predicate.PriceUnit
- func EnvironmentIDContainsFold(v string) predicate.PriceUnit
- func EnvironmentIDEQ(v string) predicate.PriceUnit
- func EnvironmentIDEqualFold(v string) predicate.PriceUnit
- func EnvironmentIDGT(v string) predicate.PriceUnit
- func EnvironmentIDGTE(v string) predicate.PriceUnit
- func EnvironmentIDHasPrefix(v string) predicate.PriceUnit
- func EnvironmentIDHasSuffix(v string) predicate.PriceUnit
- func EnvironmentIDIn(vs ...string) predicate.PriceUnit
- func EnvironmentIDIsNil() predicate.PriceUnit
- func EnvironmentIDLT(v string) predicate.PriceUnit
- func EnvironmentIDLTE(v string) predicate.PriceUnit
- func EnvironmentIDNEQ(v string) predicate.PriceUnit
- func EnvironmentIDNotIn(vs ...string) predicate.PriceUnit
- func EnvironmentIDNotNil() predicate.PriceUnit
- func HasPrices() predicate.PriceUnit
- func HasPricesWith(preds ...predicate.Price) predicate.PriceUnit
- func ID(id string) predicate.PriceUnit
- func IDContainsFold(id string) predicate.PriceUnit
- func IDEQ(id string) predicate.PriceUnit
- func IDEqualFold(id string) predicate.PriceUnit
- func IDGT(id string) predicate.PriceUnit
- func IDGTE(id string) predicate.PriceUnit
- func IDIn(ids ...string) predicate.PriceUnit
- func IDLT(id string) predicate.PriceUnit
- func IDLTE(id string) predicate.PriceUnit
- func IDNEQ(id string) predicate.PriceUnit
- func IDNotIn(ids ...string) predicate.PriceUnit
- func Name(v string) predicate.PriceUnit
- func NameContains(v string) predicate.PriceUnit
- func NameContainsFold(v string) predicate.PriceUnit
- func NameEQ(v string) predicate.PriceUnit
- func NameEqualFold(v string) predicate.PriceUnit
- func NameGT(v string) predicate.PriceUnit
- func NameGTE(v string) predicate.PriceUnit
- func NameHasPrefix(v string) predicate.PriceUnit
- func NameHasSuffix(v string) predicate.PriceUnit
- func NameIn(vs ...string) predicate.PriceUnit
- func NameLT(v string) predicate.PriceUnit
- func NameLTE(v string) predicate.PriceUnit
- func NameNEQ(v string) predicate.PriceUnit
- func NameNotIn(vs ...string) predicate.PriceUnit
- func Not(p predicate.PriceUnit) predicate.PriceUnit
- func Or(predicates ...predicate.PriceUnit) predicate.PriceUnit
- func Precision(v int) predicate.PriceUnit
- func PrecisionEQ(v int) predicate.PriceUnit
- func PrecisionGT(v int) predicate.PriceUnit
- func PrecisionGTE(v int) predicate.PriceUnit
- func PrecisionIn(vs ...int) predicate.PriceUnit
- func PrecisionLT(v int) predicate.PriceUnit
- func PrecisionLTE(v int) predicate.PriceUnit
- func PrecisionNEQ(v int) predicate.PriceUnit
- func PrecisionNotIn(vs ...int) predicate.PriceUnit
- func Status(v string) predicate.PriceUnit
- func StatusContains(v string) predicate.PriceUnit
- func StatusContainsFold(v string) predicate.PriceUnit
- func StatusEQ(v string) predicate.PriceUnit
- func StatusEqualFold(v string) predicate.PriceUnit
- func StatusGT(v string) predicate.PriceUnit
- func StatusGTE(v string) predicate.PriceUnit
- func StatusHasPrefix(v string) predicate.PriceUnit
- func StatusHasSuffix(v string) predicate.PriceUnit
- func StatusIn(vs ...string) predicate.PriceUnit
- func StatusLT(v string) predicate.PriceUnit
- func StatusLTE(v string) predicate.PriceUnit
- func StatusNEQ(v string) predicate.PriceUnit
- func StatusNotIn(vs ...string) predicate.PriceUnit
- func Symbol(v string) predicate.PriceUnit
- func SymbolContains(v string) predicate.PriceUnit
- func SymbolContainsFold(v string) predicate.PriceUnit
- func SymbolEQ(v string) predicate.PriceUnit
- func SymbolEqualFold(v string) predicate.PriceUnit
- func SymbolGT(v string) predicate.PriceUnit
- func SymbolGTE(v string) predicate.PriceUnit
- func SymbolHasPrefix(v string) predicate.PriceUnit
- func SymbolHasSuffix(v string) predicate.PriceUnit
- func SymbolIn(vs ...string) predicate.PriceUnit
- func SymbolLT(v string) predicate.PriceUnit
- func SymbolLTE(v string) predicate.PriceUnit
- func SymbolNEQ(v string) predicate.PriceUnit
- func SymbolNotIn(vs ...string) predicate.PriceUnit
- func TenantID(v string) predicate.PriceUnit
- func TenantIDContains(v string) predicate.PriceUnit
- func TenantIDContainsFold(v string) predicate.PriceUnit
- func TenantIDEQ(v string) predicate.PriceUnit
- func TenantIDEqualFold(v string) predicate.PriceUnit
- func TenantIDGT(v string) predicate.PriceUnit
- func TenantIDGTE(v string) predicate.PriceUnit
- func TenantIDHasPrefix(v string) predicate.PriceUnit
- func TenantIDHasSuffix(v string) predicate.PriceUnit
- func TenantIDIn(vs ...string) predicate.PriceUnit
- func TenantIDLT(v string) predicate.PriceUnit
- func TenantIDLTE(v string) predicate.PriceUnit
- func TenantIDNEQ(v string) predicate.PriceUnit
- func TenantIDNotIn(vs ...string) predicate.PriceUnit
- func UpdatedAt(v time.Time) predicate.PriceUnit
- func UpdatedAtEQ(v time.Time) predicate.PriceUnit
- func UpdatedAtGT(v time.Time) predicate.PriceUnit
- func UpdatedAtGTE(v time.Time) predicate.PriceUnit
- func UpdatedAtIn(vs ...time.Time) predicate.PriceUnit
- func UpdatedAtLT(v time.Time) predicate.PriceUnit
- func UpdatedAtLTE(v time.Time) predicate.PriceUnit
- func UpdatedAtNEQ(v time.Time) predicate.PriceUnit
- func UpdatedAtNotIn(vs ...time.Time) predicate.PriceUnit
- func UpdatedBy(v string) predicate.PriceUnit
- func UpdatedByContains(v string) predicate.PriceUnit
- func UpdatedByContainsFold(v string) predicate.PriceUnit
- func UpdatedByEQ(v string) predicate.PriceUnit
- func UpdatedByEqualFold(v string) predicate.PriceUnit
- func UpdatedByGT(v string) predicate.PriceUnit
- func UpdatedByGTE(v string) predicate.PriceUnit
- func UpdatedByHasPrefix(v string) predicate.PriceUnit
- func UpdatedByHasSuffix(v string) predicate.PriceUnit
- func UpdatedByIn(vs ...string) predicate.PriceUnit
- func UpdatedByIsNil() predicate.PriceUnit
- func UpdatedByLT(v string) predicate.PriceUnit
- func UpdatedByLTE(v string) predicate.PriceUnit
- func UpdatedByNEQ(v string) predicate.PriceUnit
- func UpdatedByNotIn(vs ...string) predicate.PriceUnit
- func UpdatedByNotNil() predicate.PriceUnit
- func ValidColumn(column string) bool
- type OrderOption
- func ByBaseCurrency(opts ...sql.OrderTermOption) OrderOption
- func ByCode(opts ...sql.OrderTermOption) OrderOption
- func ByConversionRate(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByEnvironmentID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByPrecision(opts ...sql.OrderTermOption) OrderOption
- func ByPrices(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPricesCount(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func BySymbol(opts ...sql.OrderTermOption) OrderOption
- func ByTenantID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the priceunit type in the database. Label = "price_unit" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTenantID holds the string denoting the tenant_id field in the database. FieldTenantID = "tenant_id" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // 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" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldUpdatedBy holds the string denoting the updated_by field in the database. FieldUpdatedBy = "updated_by" // FieldEnvironmentID holds the string denoting the environment_id field in the database. FieldEnvironmentID = "environment_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldCode holds the string denoting the code field in the database. FieldCode = "code" // FieldSymbol holds the string denoting the symbol field in the database. FieldSymbol = "symbol" // FieldBaseCurrency holds the string denoting the base_currency field in the database. FieldBaseCurrency = "base_currency" // FieldConversionRate holds the string denoting the conversion_rate field in the database. FieldConversionRate = "conversion_rate" // FieldPrecision holds the string denoting the precision field in the database. FieldPrecision = "precision" // EdgePrices holds the string denoting the prices edge name in mutations. EdgePrices = "prices" // Table holds the table name of the priceunit in the database. Table = "price_unit" // PricesTable is the table that holds the prices relation/edge. PricesTable = "prices" // PricesInverseTable is the table name for the Price entity. // It exists in this package in order to avoid circular dependency with the "price" package. PricesInverseTable = "prices" // PricesColumn is the table column denoting the prices relation/edge. PricesColumn = "price_unit_id" )
Variables ¶
var ( // TenantIDValidator is a validator for the "tenant_id" field. It is called by the builders before save. TenantIDValidator func(string) error // DefaultStatus holds the default value on creation for the "status" field. DefaultStatus string // 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 // DefaultEnvironmentID holds the default value on creation for the "environment_id" field. DefaultEnvironmentID string // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // CodeValidator is a validator for the "code" field. It is called by the builders before save. CodeValidator func(string) error // SymbolValidator is a validator for the "symbol" field. It is called by the builders before save. SymbolValidator func(string) error // BaseCurrencyValidator is a validator for the "base_currency" field. It is called by the builders before save. BaseCurrencyValidator func(string) error // DefaultConversionRate holds the default value on creation for the "conversion_rate" field. DefaultConversionRate decimal.Decimal // DefaultPrecision holds the default value on creation for the "precision" field. DefaultPrecision int // PrecisionValidator is a validator for the "precision" field. It is called by the builders before save. PrecisionValidator func(int) error )
var Columns = []string{ FieldID, FieldTenantID, FieldStatus, FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, FieldEnvironmentID, FieldName, FieldCode, FieldSymbol, FieldBaseCurrency, FieldConversionRate, FieldPrecision, }
Columns holds all SQL columns for priceunit fields.
Functions ¶
func BaseCurrency ¶
BaseCurrency applies equality check predicate on the "base_currency" field. It's identical to BaseCurrencyEQ.
func BaseCurrencyContains ¶
BaseCurrencyContains applies the Contains predicate on the "base_currency" field.
func BaseCurrencyContainsFold ¶
BaseCurrencyContainsFold applies the ContainsFold predicate on the "base_currency" field.
func BaseCurrencyEQ ¶
BaseCurrencyEQ applies the EQ predicate on the "base_currency" field.
func BaseCurrencyEqualFold ¶
BaseCurrencyEqualFold applies the EqualFold predicate on the "base_currency" field.
func BaseCurrencyGT ¶
BaseCurrencyGT applies the GT predicate on the "base_currency" field.
func BaseCurrencyGTE ¶
BaseCurrencyGTE applies the GTE predicate on the "base_currency" field.
func BaseCurrencyHasPrefix ¶
BaseCurrencyHasPrefix applies the HasPrefix predicate on the "base_currency" field.
func BaseCurrencyHasSuffix ¶
BaseCurrencyHasSuffix applies the HasSuffix predicate on the "base_currency" field.
func BaseCurrencyIn ¶
BaseCurrencyIn applies the In predicate on the "base_currency" field.
func BaseCurrencyLT ¶
BaseCurrencyLT applies the LT predicate on the "base_currency" field.
func BaseCurrencyLTE ¶
BaseCurrencyLTE applies the LTE predicate on the "base_currency" field.
func BaseCurrencyNEQ ¶
BaseCurrencyNEQ applies the NEQ predicate on the "base_currency" field.
func BaseCurrencyNotIn ¶
BaseCurrencyNotIn applies the NotIn predicate on the "base_currency" field.
func CodeContains ¶
CodeContains applies the Contains predicate on the "code" field.
func CodeContainsFold ¶
CodeContainsFold applies the ContainsFold predicate on the "code" field.
func CodeEqualFold ¶
CodeEqualFold applies the EqualFold predicate on the "code" field.
func CodeHasPrefix ¶
CodeHasPrefix applies the HasPrefix predicate on the "code" field.
func CodeHasSuffix ¶
CodeHasSuffix applies the HasSuffix predicate on the "code" field.
func ConversionRate ¶
ConversionRate applies equality check predicate on the "conversion_rate" field. It's identical to ConversionRateEQ.
func ConversionRateEQ ¶
ConversionRateEQ applies the EQ predicate on the "conversion_rate" field.
func ConversionRateGT ¶
ConversionRateGT applies the GT predicate on the "conversion_rate" field.
func ConversionRateGTE ¶
ConversionRateGTE applies the GTE predicate on the "conversion_rate" field.
func ConversionRateIn ¶
ConversionRateIn applies the In predicate on the "conversion_rate" field.
func ConversionRateLT ¶
ConversionRateLT applies the LT predicate on the "conversion_rate" field.
func ConversionRateLTE ¶
ConversionRateLTE applies the LTE predicate on the "conversion_rate" field.
func ConversionRateNEQ ¶
ConversionRateNEQ applies the NEQ predicate on the "conversion_rate" field.
func ConversionRateNotIn ¶
ConversionRateNotIn applies the NotIn predicate on the "conversion_rate" field.
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 CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByContains ¶
CreatedByContains applies the Contains predicate on the "created_by" field.
func CreatedByContainsFold ¶
CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByEqualFold ¶
CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.
func CreatedByGT ¶
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByHasPrefix ¶
CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.
func CreatedByHasSuffix ¶
CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func EnvironmentID ¶
EnvironmentID applies equality check predicate on the "environment_id" field. It's identical to EnvironmentIDEQ.
func EnvironmentIDContains ¶
EnvironmentIDContains applies the Contains predicate on the "environment_id" field.
func EnvironmentIDContainsFold ¶
EnvironmentIDContainsFold applies the ContainsFold predicate on the "environment_id" field.
func EnvironmentIDEQ ¶
EnvironmentIDEQ applies the EQ predicate on the "environment_id" field.
func EnvironmentIDEqualFold ¶
EnvironmentIDEqualFold applies the EqualFold predicate on the "environment_id" field.
func EnvironmentIDGT ¶
EnvironmentIDGT applies the GT predicate on the "environment_id" field.
func EnvironmentIDGTE ¶
EnvironmentIDGTE applies the GTE predicate on the "environment_id" field.
func EnvironmentIDHasPrefix ¶
EnvironmentIDHasPrefix applies the HasPrefix predicate on the "environment_id" field.
func EnvironmentIDHasSuffix ¶
EnvironmentIDHasSuffix applies the HasSuffix predicate on the "environment_id" field.
func EnvironmentIDIn ¶
EnvironmentIDIn applies the In predicate on the "environment_id" field.
func EnvironmentIDIsNil ¶
EnvironmentIDIsNil applies the IsNil predicate on the "environment_id" field.
func EnvironmentIDLT ¶
EnvironmentIDLT applies the LT predicate on the "environment_id" field.
func EnvironmentIDLTE ¶
EnvironmentIDLTE applies the LTE predicate on the "environment_id" field.
func EnvironmentIDNEQ ¶
EnvironmentIDNEQ applies the NEQ predicate on the "environment_id" field.
func EnvironmentIDNotIn ¶
EnvironmentIDNotIn applies the NotIn predicate on the "environment_id" field.
func EnvironmentIDNotNil ¶
EnvironmentIDNotNil applies the NotNil predicate on the "environment_id" field.
func HasPricesWith ¶
HasPricesWith applies the HasEdge predicate on the "prices" edge with a given conditions (other predicates).
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func Precision ¶
Precision applies equality check predicate on the "precision" field. It's identical to PrecisionEQ.
func PrecisionEQ ¶
PrecisionEQ applies the EQ predicate on the "precision" field.
func PrecisionGT ¶
PrecisionGT applies the GT predicate on the "precision" field.
func PrecisionGTE ¶
PrecisionGTE applies the GTE predicate on the "precision" field.
func PrecisionIn ¶
PrecisionIn applies the In predicate on the "precision" field.
func PrecisionLT ¶
PrecisionLT applies the LT predicate on the "precision" field.
func PrecisionLTE ¶
PrecisionLTE applies the LTE predicate on the "precision" field.
func PrecisionNEQ ¶
PrecisionNEQ applies the NEQ predicate on the "precision" field.
func PrecisionNotIn ¶
PrecisionNotIn applies the NotIn predicate on the "precision" field.
func Status ¶
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusContains ¶
StatusContains applies the Contains predicate on the "status" field.
func StatusContainsFold ¶
StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusEqualFold ¶
StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusHasPrefix ¶
StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasSuffix ¶
StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func Symbol ¶
Symbol applies equality check predicate on the "symbol" field. It's identical to SymbolEQ.
func SymbolContains ¶
SymbolContains applies the Contains predicate on the "symbol" field.
func SymbolContainsFold ¶
SymbolContainsFold applies the ContainsFold predicate on the "symbol" field.
func SymbolEqualFold ¶
SymbolEqualFold applies the EqualFold predicate on the "symbol" field.
func SymbolHasPrefix ¶
SymbolHasPrefix applies the HasPrefix predicate on the "symbol" field.
func SymbolHasSuffix ¶
SymbolHasSuffix applies the HasSuffix predicate on the "symbol" field.
func SymbolNotIn ¶
SymbolNotIn applies the NotIn predicate on the "symbol" field.
func TenantID ¶
TenantID applies equality check predicate on the "tenant_id" field. It's identical to TenantIDEQ.
func TenantIDContains ¶
TenantIDContains applies the Contains predicate on the "tenant_id" field.
func TenantIDContainsFold ¶
TenantIDContainsFold applies the ContainsFold predicate on the "tenant_id" field.
func TenantIDEQ ¶
TenantIDEQ applies the EQ predicate on the "tenant_id" field.
func TenantIDEqualFold ¶
TenantIDEqualFold applies the EqualFold predicate on the "tenant_id" field.
func TenantIDGT ¶
TenantIDGT applies the GT predicate on the "tenant_id" field.
func TenantIDGTE ¶
TenantIDGTE applies the GTE predicate on the "tenant_id" field.
func TenantIDHasPrefix ¶
TenantIDHasPrefix applies the HasPrefix predicate on the "tenant_id" field.
func TenantIDHasSuffix ¶
TenantIDHasSuffix applies the HasSuffix predicate on the "tenant_id" field.
func TenantIDIn ¶
TenantIDIn applies the In predicate on the "tenant_id" field.
func TenantIDLT ¶
TenantIDLT applies the LT predicate on the "tenant_id" field.
func TenantIDLTE ¶
TenantIDLTE applies the LTE predicate on the "tenant_id" field.
func TenantIDNEQ ¶
TenantIDNEQ applies the NEQ predicate on the "tenant_id" field.
func TenantIDNotIn ¶
TenantIDNotIn applies the NotIn predicate on the "tenant_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 UpdatedBy ¶
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByContains ¶
UpdatedByContains applies the Contains predicate on the "updated_by" field.
func UpdatedByContainsFold ¶
UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.
func UpdatedByEQ ¶
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByEqualFold ¶
UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.
func UpdatedByGT ¶
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByHasPrefix ¶
UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.
func UpdatedByHasSuffix ¶
UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.
func UpdatedByIn ¶
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
UpdatedByNotNil applies the NotNil predicate on the "updated_by" 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 PriceUnit queries.
func ByBaseCurrency ¶
func ByBaseCurrency(opts ...sql.OrderTermOption) OrderOption
ByBaseCurrency orders the results by the base_currency field.
func ByCode ¶
func ByCode(opts ...sql.OrderTermOption) OrderOption
ByCode orders the results by the code field.
func ByConversionRate ¶
func ByConversionRate(opts ...sql.OrderTermOption) OrderOption
ByConversionRate orders the results by the conversion_rate field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCreatedBy ¶
func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
ByCreatedBy orders the results by the created_by field.
func ByEnvironmentID ¶
func ByEnvironmentID(opts ...sql.OrderTermOption) OrderOption
ByEnvironmentID orders the results by the environment_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByPrecision ¶
func ByPrecision(opts ...sql.OrderTermOption) OrderOption
ByPrecision orders the results by the precision field.
func ByPrices ¶
func ByPrices(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPrices orders the results by prices terms.
func ByPricesCount ¶
func ByPricesCount(opts ...sql.OrderTermOption) OrderOption
ByPricesCount orders the results by prices count.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func BySymbol ¶
func BySymbol(opts ...sql.OrderTermOption) OrderOption
BySymbol orders the results by the symbol field.
func ByTenantID ¶
func ByTenantID(opts ...sql.OrderTermOption) OrderOption
ByTenantID orders the results by the tenant_id field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUpdatedBy ¶
func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
ByUpdatedBy orders the results by the updated_by field.