priceunit

package
v1.0.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for priceunit fields.

Functions

func And

func And(predicates ...predicate.PriceUnit) predicate.PriceUnit

And groups predicates with the AND operator between them.

func BaseCurrency

func BaseCurrency(v string) predicate.PriceUnit

BaseCurrency applies equality check predicate on the "base_currency" field. It's identical to BaseCurrencyEQ.

func BaseCurrencyContains

func BaseCurrencyContains(v string) predicate.PriceUnit

BaseCurrencyContains applies the Contains predicate on the "base_currency" field.

func BaseCurrencyContainsFold

func BaseCurrencyContainsFold(v string) predicate.PriceUnit

BaseCurrencyContainsFold applies the ContainsFold predicate on the "base_currency" field.

func BaseCurrencyEQ

func BaseCurrencyEQ(v string) predicate.PriceUnit

BaseCurrencyEQ applies the EQ predicate on the "base_currency" field.

func BaseCurrencyEqualFold

func BaseCurrencyEqualFold(v string) predicate.PriceUnit

BaseCurrencyEqualFold applies the EqualFold predicate on the "base_currency" field.

func BaseCurrencyGT

func BaseCurrencyGT(v string) predicate.PriceUnit

BaseCurrencyGT applies the GT predicate on the "base_currency" field.

func BaseCurrencyGTE

func BaseCurrencyGTE(v string) predicate.PriceUnit

BaseCurrencyGTE applies the GTE predicate on the "base_currency" field.

func BaseCurrencyHasPrefix

func BaseCurrencyHasPrefix(v string) predicate.PriceUnit

BaseCurrencyHasPrefix applies the HasPrefix predicate on the "base_currency" field.

func BaseCurrencyHasSuffix

func BaseCurrencyHasSuffix(v string) predicate.PriceUnit

BaseCurrencyHasSuffix applies the HasSuffix predicate on the "base_currency" field.

func BaseCurrencyIn

func BaseCurrencyIn(vs ...string) predicate.PriceUnit

BaseCurrencyIn applies the In predicate on the "base_currency" field.

func BaseCurrencyLT

func BaseCurrencyLT(v string) predicate.PriceUnit

BaseCurrencyLT applies the LT predicate on the "base_currency" field.

func BaseCurrencyLTE

func BaseCurrencyLTE(v string) predicate.PriceUnit

BaseCurrencyLTE applies the LTE predicate on the "base_currency" field.

func BaseCurrencyNEQ

func BaseCurrencyNEQ(v string) predicate.PriceUnit

BaseCurrencyNEQ applies the NEQ predicate on the "base_currency" field.

func BaseCurrencyNotIn

func BaseCurrencyNotIn(vs ...string) predicate.PriceUnit

BaseCurrencyNotIn applies the NotIn predicate on the "base_currency" field.

func Code

func Code(v string) predicate.PriceUnit

Code applies equality check predicate on the "code" field. It's identical to CodeEQ.

func CodeContains

func CodeContains(v string) predicate.PriceUnit

CodeContains applies the Contains predicate on the "code" field.

func CodeContainsFold

func CodeContainsFold(v string) predicate.PriceUnit

CodeContainsFold applies the ContainsFold predicate on the "code" field.

func CodeEQ

func CodeEQ(v string) predicate.PriceUnit

CodeEQ applies the EQ predicate on the "code" field.

func CodeEqualFold

func CodeEqualFold(v string) predicate.PriceUnit

CodeEqualFold applies the EqualFold predicate on the "code" field.

func CodeGT

func CodeGT(v string) predicate.PriceUnit

CodeGT applies the GT predicate on the "code" field.

func CodeGTE

func CodeGTE(v string) predicate.PriceUnit

CodeGTE applies the GTE predicate on the "code" field.

func CodeHasPrefix

func CodeHasPrefix(v string) predicate.PriceUnit

CodeHasPrefix applies the HasPrefix predicate on the "code" field.

func CodeHasSuffix

func CodeHasSuffix(v string) predicate.PriceUnit

CodeHasSuffix applies the HasSuffix predicate on the "code" field.

func CodeIn

func CodeIn(vs ...string) predicate.PriceUnit

CodeIn applies the In predicate on the "code" field.

func CodeLT

func CodeLT(v string) predicate.PriceUnit

CodeLT applies the LT predicate on the "code" field.

func CodeLTE

func CodeLTE(v string) predicate.PriceUnit

CodeLTE applies the LTE predicate on the "code" field.

func CodeNEQ

func CodeNEQ(v string) predicate.PriceUnit

CodeNEQ applies the NEQ predicate on the "code" field.

func CodeNotIn

func CodeNotIn(vs ...string) predicate.PriceUnit

CodeNotIn applies the NotIn predicate on the "code" field.

func ConversionRate

func ConversionRate(v decimal.Decimal) predicate.PriceUnit

ConversionRate applies equality check predicate on the "conversion_rate" field. It's identical to ConversionRateEQ.

func ConversionRateEQ

func ConversionRateEQ(v decimal.Decimal) predicate.PriceUnit

ConversionRateEQ applies the EQ predicate on the "conversion_rate" field.

func ConversionRateGT

func ConversionRateGT(v decimal.Decimal) predicate.PriceUnit

ConversionRateGT applies the GT predicate on the "conversion_rate" field.

func ConversionRateGTE

func ConversionRateGTE(v decimal.Decimal) predicate.PriceUnit

ConversionRateGTE applies the GTE predicate on the "conversion_rate" field.

func ConversionRateIn

func ConversionRateIn(vs ...decimal.Decimal) predicate.PriceUnit

ConversionRateIn applies the In predicate on the "conversion_rate" field.

func ConversionRateLT

func ConversionRateLT(v decimal.Decimal) predicate.PriceUnit

ConversionRateLT applies the LT predicate on the "conversion_rate" field.

func ConversionRateLTE

func ConversionRateLTE(v decimal.Decimal) predicate.PriceUnit

ConversionRateLTE applies the LTE predicate on the "conversion_rate" field.

func ConversionRateNEQ

func ConversionRateNEQ(v decimal.Decimal) predicate.PriceUnit

ConversionRateNEQ applies the NEQ predicate on the "conversion_rate" field.

func ConversionRateNotIn

func ConversionRateNotIn(vs ...decimal.Decimal) predicate.PriceUnit

ConversionRateNotIn applies the NotIn predicate on the "conversion_rate" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.PriceUnit

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.PriceUnit

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.PriceUnit

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.PriceUnit

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.PriceUnit

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.PriceUnit

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.PriceUnit

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.PriceUnit

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.PriceUnit

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func CreatedBy

func CreatedBy(v string) predicate.PriceUnit

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByContains

func CreatedByContains(v string) predicate.PriceUnit

CreatedByContains applies the Contains predicate on the "created_by" field.

func CreatedByContainsFold

func CreatedByContainsFold(v string) predicate.PriceUnit

CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.

func CreatedByEQ

func CreatedByEQ(v string) predicate.PriceUnit

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByEqualFold

func CreatedByEqualFold(v string) predicate.PriceUnit

CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v string) predicate.PriceUnit

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v string) predicate.PriceUnit

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByHasPrefix

func CreatedByHasPrefix(v string) predicate.PriceUnit

CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.

func CreatedByHasSuffix

func CreatedByHasSuffix(v string) predicate.PriceUnit

CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...string) predicate.PriceUnit

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByIsNil

func CreatedByIsNil() predicate.PriceUnit

CreatedByIsNil applies the IsNil predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v string) predicate.PriceUnit

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v string) predicate.PriceUnit

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v string) predicate.PriceUnit

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...string) predicate.PriceUnit

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func CreatedByNotNil

func CreatedByNotNil() predicate.PriceUnit

CreatedByNotNil applies the NotNil predicate on the "created_by" field.

func EnvironmentID

func EnvironmentID(v string) predicate.PriceUnit

EnvironmentID applies equality check predicate on the "environment_id" field. It's identical to EnvironmentIDEQ.

func EnvironmentIDContains

func EnvironmentIDContains(v string) predicate.PriceUnit

EnvironmentIDContains applies the Contains predicate on the "environment_id" field.

func EnvironmentIDContainsFold

func EnvironmentIDContainsFold(v string) predicate.PriceUnit

EnvironmentIDContainsFold applies the ContainsFold predicate on the "environment_id" field.

func EnvironmentIDEQ

func EnvironmentIDEQ(v string) predicate.PriceUnit

EnvironmentIDEQ applies the EQ predicate on the "environment_id" field.

func EnvironmentIDEqualFold

func EnvironmentIDEqualFold(v string) predicate.PriceUnit

EnvironmentIDEqualFold applies the EqualFold predicate on the "environment_id" field.

func EnvironmentIDGT

func EnvironmentIDGT(v string) predicate.PriceUnit

EnvironmentIDGT applies the GT predicate on the "environment_id" field.

func EnvironmentIDGTE

func EnvironmentIDGTE(v string) predicate.PriceUnit

EnvironmentIDGTE applies the GTE predicate on the "environment_id" field.

func EnvironmentIDHasPrefix

func EnvironmentIDHasPrefix(v string) predicate.PriceUnit

EnvironmentIDHasPrefix applies the HasPrefix predicate on the "environment_id" field.

func EnvironmentIDHasSuffix

func EnvironmentIDHasSuffix(v string) predicate.PriceUnit

EnvironmentIDHasSuffix applies the HasSuffix predicate on the "environment_id" field.

func EnvironmentIDIn

func EnvironmentIDIn(vs ...string) predicate.PriceUnit

EnvironmentIDIn applies the In predicate on the "environment_id" field.

func EnvironmentIDIsNil

func EnvironmentIDIsNil() predicate.PriceUnit

EnvironmentIDIsNil applies the IsNil predicate on the "environment_id" field.

func EnvironmentIDLT

func EnvironmentIDLT(v string) predicate.PriceUnit

EnvironmentIDLT applies the LT predicate on the "environment_id" field.

func EnvironmentIDLTE

func EnvironmentIDLTE(v string) predicate.PriceUnit

EnvironmentIDLTE applies the LTE predicate on the "environment_id" field.

func EnvironmentIDNEQ

func EnvironmentIDNEQ(v string) predicate.PriceUnit

EnvironmentIDNEQ applies the NEQ predicate on the "environment_id" field.

func EnvironmentIDNotIn

func EnvironmentIDNotIn(vs ...string) predicate.PriceUnit

EnvironmentIDNotIn applies the NotIn predicate on the "environment_id" field.

func EnvironmentIDNotNil

func EnvironmentIDNotNil() predicate.PriceUnit

EnvironmentIDNotNil applies the NotNil predicate on the "environment_id" field.

func HasPrices

func HasPrices() predicate.PriceUnit

HasPrices applies the HasEdge predicate on the "prices" edge.

func HasPricesWith

func HasPricesWith(preds ...predicate.Price) predicate.PriceUnit

HasPricesWith applies the HasEdge predicate on the "prices" edge with a given conditions (other predicates).

func ID

func ID(id string) predicate.PriceUnit

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.PriceUnit

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.PriceUnit

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.PriceUnit

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.PriceUnit

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.PriceUnit

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.PriceUnit

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.PriceUnit

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.PriceUnit

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.PriceUnit

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.PriceUnit

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.PriceUnit

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.PriceUnit

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.PriceUnit

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.PriceUnit

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.PriceUnit

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.PriceUnit

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.PriceUnit

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.PriceUnit

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.PriceUnit

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.PriceUnit

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.PriceUnit

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.PriceUnit

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.PriceUnit

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.PriceUnit

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.PriceUnit) predicate.PriceUnit

Or groups predicates with the OR operator between them.

func Precision

func Precision(v int) predicate.PriceUnit

Precision applies equality check predicate on the "precision" field. It's identical to PrecisionEQ.

func PrecisionEQ

func PrecisionEQ(v int) predicate.PriceUnit

PrecisionEQ applies the EQ predicate on the "precision" field.

func PrecisionGT

func PrecisionGT(v int) predicate.PriceUnit

PrecisionGT applies the GT predicate on the "precision" field.

func PrecisionGTE

func PrecisionGTE(v int) predicate.PriceUnit

PrecisionGTE applies the GTE predicate on the "precision" field.

func PrecisionIn

func PrecisionIn(vs ...int) predicate.PriceUnit

PrecisionIn applies the In predicate on the "precision" field.

func PrecisionLT

func PrecisionLT(v int) predicate.PriceUnit

PrecisionLT applies the LT predicate on the "precision" field.

func PrecisionLTE

func PrecisionLTE(v int) predicate.PriceUnit

PrecisionLTE applies the LTE predicate on the "precision" field.

func PrecisionNEQ

func PrecisionNEQ(v int) predicate.PriceUnit

PrecisionNEQ applies the NEQ predicate on the "precision" field.

func PrecisionNotIn

func PrecisionNotIn(vs ...int) predicate.PriceUnit

PrecisionNotIn applies the NotIn predicate on the "precision" field.

func Status

func Status(v string) predicate.PriceUnit

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusContains

func StatusContains(v string) predicate.PriceUnit

StatusContains applies the Contains predicate on the "status" field.

func StatusContainsFold

func StatusContainsFold(v string) predicate.PriceUnit

StatusContainsFold applies the ContainsFold predicate on the "status" field.

func StatusEQ

func StatusEQ(v string) predicate.PriceUnit

StatusEQ applies the EQ predicate on the "status" field.

func StatusEqualFold

func StatusEqualFold(v string) predicate.PriceUnit

StatusEqualFold applies the EqualFold predicate on the "status" field.

func StatusGT

func StatusGT(v string) predicate.PriceUnit

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v string) predicate.PriceUnit

StatusGTE applies the GTE predicate on the "status" field.

func StatusHasPrefix

func StatusHasPrefix(v string) predicate.PriceUnit

StatusHasPrefix applies the HasPrefix predicate on the "status" field.

func StatusHasSuffix

func StatusHasSuffix(v string) predicate.PriceUnit

StatusHasSuffix applies the HasSuffix predicate on the "status" field.

func StatusIn

func StatusIn(vs ...string) predicate.PriceUnit

StatusIn applies the In predicate on the "status" field.

func StatusLT

func StatusLT(v string) predicate.PriceUnit

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v string) predicate.PriceUnit

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v string) predicate.PriceUnit

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...string) predicate.PriceUnit

StatusNotIn applies the NotIn predicate on the "status" field.

func Symbol

func Symbol(v string) predicate.PriceUnit

Symbol applies equality check predicate on the "symbol" field. It's identical to SymbolEQ.

func SymbolContains

func SymbolContains(v string) predicate.PriceUnit

SymbolContains applies the Contains predicate on the "symbol" field.

func SymbolContainsFold

func SymbolContainsFold(v string) predicate.PriceUnit

SymbolContainsFold applies the ContainsFold predicate on the "symbol" field.

func SymbolEQ

func SymbolEQ(v string) predicate.PriceUnit

SymbolEQ applies the EQ predicate on the "symbol" field.

func SymbolEqualFold

func SymbolEqualFold(v string) predicate.PriceUnit

SymbolEqualFold applies the EqualFold predicate on the "symbol" field.

func SymbolGT

func SymbolGT(v string) predicate.PriceUnit

SymbolGT applies the GT predicate on the "symbol" field.

func SymbolGTE

func SymbolGTE(v string) predicate.PriceUnit

SymbolGTE applies the GTE predicate on the "symbol" field.

func SymbolHasPrefix

func SymbolHasPrefix(v string) predicate.PriceUnit

SymbolHasPrefix applies the HasPrefix predicate on the "symbol" field.

func SymbolHasSuffix

func SymbolHasSuffix(v string) predicate.PriceUnit

SymbolHasSuffix applies the HasSuffix predicate on the "symbol" field.

func SymbolIn

func SymbolIn(vs ...string) predicate.PriceUnit

SymbolIn applies the In predicate on the "symbol" field.

func SymbolLT

func SymbolLT(v string) predicate.PriceUnit

SymbolLT applies the LT predicate on the "symbol" field.

func SymbolLTE

func SymbolLTE(v string) predicate.PriceUnit

SymbolLTE applies the LTE predicate on the "symbol" field.

func SymbolNEQ

func SymbolNEQ(v string) predicate.PriceUnit

SymbolNEQ applies the NEQ predicate on the "symbol" field.

func SymbolNotIn

func SymbolNotIn(vs ...string) predicate.PriceUnit

SymbolNotIn applies the NotIn predicate on the "symbol" field.

func TenantID

func TenantID(v string) predicate.PriceUnit

TenantID applies equality check predicate on the "tenant_id" field. It's identical to TenantIDEQ.

func TenantIDContains

func TenantIDContains(v string) predicate.PriceUnit

TenantIDContains applies the Contains predicate on the "tenant_id" field.

func TenantIDContainsFold

func TenantIDContainsFold(v string) predicate.PriceUnit

TenantIDContainsFold applies the ContainsFold predicate on the "tenant_id" field.

func TenantIDEQ

func TenantIDEQ(v string) predicate.PriceUnit

TenantIDEQ applies the EQ predicate on the "tenant_id" field.

func TenantIDEqualFold

func TenantIDEqualFold(v string) predicate.PriceUnit

TenantIDEqualFold applies the EqualFold predicate on the "tenant_id" field.

func TenantIDGT

func TenantIDGT(v string) predicate.PriceUnit

TenantIDGT applies the GT predicate on the "tenant_id" field.

func TenantIDGTE

func TenantIDGTE(v string) predicate.PriceUnit

TenantIDGTE applies the GTE predicate on the "tenant_id" field.

func TenantIDHasPrefix

func TenantIDHasPrefix(v string) predicate.PriceUnit

TenantIDHasPrefix applies the HasPrefix predicate on the "tenant_id" field.

func TenantIDHasSuffix

func TenantIDHasSuffix(v string) predicate.PriceUnit

TenantIDHasSuffix applies the HasSuffix predicate on the "tenant_id" field.

func TenantIDIn

func TenantIDIn(vs ...string) predicate.PriceUnit

TenantIDIn applies the In predicate on the "tenant_id" field.

func TenantIDLT

func TenantIDLT(v string) predicate.PriceUnit

TenantIDLT applies the LT predicate on the "tenant_id" field.

func TenantIDLTE

func TenantIDLTE(v string) predicate.PriceUnit

TenantIDLTE applies the LTE predicate on the "tenant_id" field.

func TenantIDNEQ

func TenantIDNEQ(v string) predicate.PriceUnit

TenantIDNEQ applies the NEQ predicate on the "tenant_id" field.

func TenantIDNotIn

func TenantIDNotIn(vs ...string) predicate.PriceUnit

TenantIDNotIn applies the NotIn predicate on the "tenant_id" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.PriceUnit

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.PriceUnit

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.PriceUnit

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.PriceUnit

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.PriceUnit

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.PriceUnit

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.PriceUnit

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.PriceUnit

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.PriceUnit

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedBy

func UpdatedBy(v string) predicate.PriceUnit

UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.

func UpdatedByContains

func UpdatedByContains(v string) predicate.PriceUnit

UpdatedByContains applies the Contains predicate on the "updated_by" field.

func UpdatedByContainsFold

func UpdatedByContainsFold(v string) predicate.PriceUnit

UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.

func UpdatedByEQ

func UpdatedByEQ(v string) predicate.PriceUnit

UpdatedByEQ applies the EQ predicate on the "updated_by" field.

func UpdatedByEqualFold

func UpdatedByEqualFold(v string) predicate.PriceUnit

UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.

func UpdatedByGT

func UpdatedByGT(v string) predicate.PriceUnit

UpdatedByGT applies the GT predicate on the "updated_by" field.

func UpdatedByGTE

func UpdatedByGTE(v string) predicate.PriceUnit

UpdatedByGTE applies the GTE predicate on the "updated_by" field.

func UpdatedByHasPrefix

func UpdatedByHasPrefix(v string) predicate.PriceUnit

UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.

func UpdatedByHasSuffix

func UpdatedByHasSuffix(v string) predicate.PriceUnit

UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.

func UpdatedByIn

func UpdatedByIn(vs ...string) predicate.PriceUnit

UpdatedByIn applies the In predicate on the "updated_by" field.

func UpdatedByIsNil

func UpdatedByIsNil() predicate.PriceUnit

UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.

func UpdatedByLT

func UpdatedByLT(v string) predicate.PriceUnit

UpdatedByLT applies the LT predicate on the "updated_by" field.

func UpdatedByLTE

func UpdatedByLTE(v string) predicate.PriceUnit

UpdatedByLTE applies the LTE predicate on the "updated_by" field.

func UpdatedByNEQ

func UpdatedByNEQ(v string) predicate.PriceUnit

UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.

func UpdatedByNotIn

func UpdatedByNotIn(vs ...string) predicate.PriceUnit

UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.

func UpdatedByNotNil

func UpdatedByNotNil() predicate.PriceUnit

UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL