Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Costsheet) predicate.Costsheet
- func CreatedAt(v time.Time) predicate.Costsheet
- func CreatedAtEQ(v time.Time) predicate.Costsheet
- func CreatedAtGT(v time.Time) predicate.Costsheet
- func CreatedAtGTE(v time.Time) predicate.Costsheet
- func CreatedAtIn(vs ...time.Time) predicate.Costsheet
- func CreatedAtLT(v time.Time) predicate.Costsheet
- func CreatedAtLTE(v time.Time) predicate.Costsheet
- func CreatedAtNEQ(v time.Time) predicate.Costsheet
- func CreatedAtNotIn(vs ...time.Time) predicate.Costsheet
- func CreatedBy(v string) predicate.Costsheet
- func CreatedByContains(v string) predicate.Costsheet
- func CreatedByContainsFold(v string) predicate.Costsheet
- func CreatedByEQ(v string) predicate.Costsheet
- func CreatedByEqualFold(v string) predicate.Costsheet
- func CreatedByGT(v string) predicate.Costsheet
- func CreatedByGTE(v string) predicate.Costsheet
- func CreatedByHasPrefix(v string) predicate.Costsheet
- func CreatedByHasSuffix(v string) predicate.Costsheet
- func CreatedByIn(vs ...string) predicate.Costsheet
- func CreatedByIsNil() predicate.Costsheet
- func CreatedByLT(v string) predicate.Costsheet
- func CreatedByLTE(v string) predicate.Costsheet
- func CreatedByNEQ(v string) predicate.Costsheet
- func CreatedByNotIn(vs ...string) predicate.Costsheet
- func CreatedByNotNil() predicate.Costsheet
- func EnvironmentID(v string) predicate.Costsheet
- func EnvironmentIDContains(v string) predicate.Costsheet
- func EnvironmentIDContainsFold(v string) predicate.Costsheet
- func EnvironmentIDEQ(v string) predicate.Costsheet
- func EnvironmentIDEqualFold(v string) predicate.Costsheet
- func EnvironmentIDGT(v string) predicate.Costsheet
- func EnvironmentIDGTE(v string) predicate.Costsheet
- func EnvironmentIDHasPrefix(v string) predicate.Costsheet
- func EnvironmentIDHasSuffix(v string) predicate.Costsheet
- func EnvironmentIDIn(vs ...string) predicate.Costsheet
- func EnvironmentIDIsNil() predicate.Costsheet
- func EnvironmentIDLT(v string) predicate.Costsheet
- func EnvironmentIDLTE(v string) predicate.Costsheet
- func EnvironmentIDNEQ(v string) predicate.Costsheet
- func EnvironmentIDNotIn(vs ...string) predicate.Costsheet
- func EnvironmentIDNotNil() predicate.Costsheet
- func HasMeter() predicate.Costsheet
- func HasMeterWith(preds ...predicate.Meter) predicate.Costsheet
- func HasPrice() predicate.Costsheet
- func HasPriceWith(preds ...predicate.Price) predicate.Costsheet
- func ID(id string) predicate.Costsheet
- func IDContainsFold(id string) predicate.Costsheet
- func IDEQ(id string) predicate.Costsheet
- func IDEqualFold(id string) predicate.Costsheet
- func IDGT(id string) predicate.Costsheet
- func IDGTE(id string) predicate.Costsheet
- func IDIn(ids ...string) predicate.Costsheet
- func IDLT(id string) predicate.Costsheet
- func IDLTE(id string) predicate.Costsheet
- func IDNEQ(id string) predicate.Costsheet
- func IDNotIn(ids ...string) predicate.Costsheet
- func MeterID(v string) predicate.Costsheet
- func MeterIDContains(v string) predicate.Costsheet
- func MeterIDContainsFold(v string) predicate.Costsheet
- func MeterIDEQ(v string) predicate.Costsheet
- func MeterIDEqualFold(v string) predicate.Costsheet
- func MeterIDGT(v string) predicate.Costsheet
- func MeterIDGTE(v string) predicate.Costsheet
- func MeterIDHasPrefix(v string) predicate.Costsheet
- func MeterIDHasSuffix(v string) predicate.Costsheet
- func MeterIDIn(vs ...string) predicate.Costsheet
- func MeterIDLT(v string) predicate.Costsheet
- func MeterIDLTE(v string) predicate.Costsheet
- func MeterIDNEQ(v string) predicate.Costsheet
- func MeterIDNotIn(vs ...string) predicate.Costsheet
- func Not(p predicate.Costsheet) predicate.Costsheet
- func Or(predicates ...predicate.Costsheet) predicate.Costsheet
- func PriceID(v string) predicate.Costsheet
- func PriceIDContains(v string) predicate.Costsheet
- func PriceIDContainsFold(v string) predicate.Costsheet
- func PriceIDEQ(v string) predicate.Costsheet
- func PriceIDEqualFold(v string) predicate.Costsheet
- func PriceIDGT(v string) predicate.Costsheet
- func PriceIDGTE(v string) predicate.Costsheet
- func PriceIDHasPrefix(v string) predicate.Costsheet
- func PriceIDHasSuffix(v string) predicate.Costsheet
- func PriceIDIn(vs ...string) predicate.Costsheet
- func PriceIDLT(v string) predicate.Costsheet
- func PriceIDLTE(v string) predicate.Costsheet
- func PriceIDNEQ(v string) predicate.Costsheet
- func PriceIDNotIn(vs ...string) predicate.Costsheet
- func Status(v string) predicate.Costsheet
- func StatusContains(v string) predicate.Costsheet
- func StatusContainsFold(v string) predicate.Costsheet
- func StatusEQ(v string) predicate.Costsheet
- func StatusEqualFold(v string) predicate.Costsheet
- func StatusGT(v string) predicate.Costsheet
- func StatusGTE(v string) predicate.Costsheet
- func StatusHasPrefix(v string) predicate.Costsheet
- func StatusHasSuffix(v string) predicate.Costsheet
- func StatusIn(vs ...string) predicate.Costsheet
- func StatusLT(v string) predicate.Costsheet
- func StatusLTE(v string) predicate.Costsheet
- func StatusNEQ(v string) predicate.Costsheet
- func StatusNotIn(vs ...string) predicate.Costsheet
- func TenantID(v string) predicate.Costsheet
- func TenantIDContains(v string) predicate.Costsheet
- func TenantIDContainsFold(v string) predicate.Costsheet
- func TenantIDEQ(v string) predicate.Costsheet
- func TenantIDEqualFold(v string) predicate.Costsheet
- func TenantIDGT(v string) predicate.Costsheet
- func TenantIDGTE(v string) predicate.Costsheet
- func TenantIDHasPrefix(v string) predicate.Costsheet
- func TenantIDHasSuffix(v string) predicate.Costsheet
- func TenantIDIn(vs ...string) predicate.Costsheet
- func TenantIDLT(v string) predicate.Costsheet
- func TenantIDLTE(v string) predicate.Costsheet
- func TenantIDNEQ(v string) predicate.Costsheet
- func TenantIDNotIn(vs ...string) predicate.Costsheet
- func UpdatedAt(v time.Time) predicate.Costsheet
- func UpdatedAtEQ(v time.Time) predicate.Costsheet
- func UpdatedAtGT(v time.Time) predicate.Costsheet
- func UpdatedAtGTE(v time.Time) predicate.Costsheet
- func UpdatedAtIn(vs ...time.Time) predicate.Costsheet
- func UpdatedAtLT(v time.Time) predicate.Costsheet
- func UpdatedAtLTE(v time.Time) predicate.Costsheet
- func UpdatedAtNEQ(v time.Time) predicate.Costsheet
- func UpdatedAtNotIn(vs ...time.Time) predicate.Costsheet
- func UpdatedBy(v string) predicate.Costsheet
- func UpdatedByContains(v string) predicate.Costsheet
- func UpdatedByContainsFold(v string) predicate.Costsheet
- func UpdatedByEQ(v string) predicate.Costsheet
- func UpdatedByEqualFold(v string) predicate.Costsheet
- func UpdatedByGT(v string) predicate.Costsheet
- func UpdatedByGTE(v string) predicate.Costsheet
- func UpdatedByHasPrefix(v string) predicate.Costsheet
- func UpdatedByHasSuffix(v string) predicate.Costsheet
- func UpdatedByIn(vs ...string) predicate.Costsheet
- func UpdatedByIsNil() predicate.Costsheet
- func UpdatedByLT(v string) predicate.Costsheet
- func UpdatedByLTE(v string) predicate.Costsheet
- func UpdatedByNEQ(v string) predicate.Costsheet
- func UpdatedByNotIn(vs ...string) predicate.Costsheet
- func UpdatedByNotNil() predicate.Costsheet
- func ValidColumn(column string) bool
- type 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 ByMeterField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByMeterID(opts ...sql.OrderTermOption) OrderOption
- func ByPriceField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPriceID(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(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 costsheet type in the database. Label = "costsheet" // 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" // FieldMeterID holds the string denoting the meter_id field in the database. FieldMeterID = "meter_id" // FieldPriceID holds the string denoting the price_id field in the database. FieldPriceID = "price_id" // EdgeMeter holds the string denoting the meter edge name in mutations. EdgeMeter = "meter" // EdgePrice holds the string denoting the price edge name in mutations. EdgePrice = "price" // Table holds the table name of the costsheet in the database. Table = "costsheet" // MeterTable is the table that holds the meter relation/edge. MeterTable = "costsheet" // MeterInverseTable is the table name for the Meter entity. // It exists in this package in order to avoid circular dependency with the "meter" package. MeterInverseTable = "meters" // MeterColumn is the table column denoting the meter relation/edge. MeterColumn = "meter_id" // PriceTable is the table that holds the price relation/edge. PriceTable = "costsheet" // PriceInverseTable is the table name for the Price entity. // It exists in this package in order to avoid circular dependency with the "price" package. PriceInverseTable = "prices" // PriceColumn is the table column denoting the price relation/edge. PriceColumn = "price_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 // MeterIDValidator is a validator for the "meter_id" field. It is called by the builders before save. MeterIDValidator func(string) error // PriceIDValidator is a validator for the "price_id" field. It is called by the builders before save. PriceIDValidator func(string) error )
var Columns = []string{ FieldID, FieldTenantID, FieldStatus, FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, FieldEnvironmentID, FieldMeterID, FieldPriceID, }
Columns holds all SQL columns for costsheet fields.
Functions ¶
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 HasMeterWith ¶
HasMeterWith applies the HasEdge predicate on the "meter" edge with a given conditions (other predicates).
func HasPriceWith ¶
HasPriceWith applies the HasEdge predicate on the "price" 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 MeterID ¶
MeterID applies equality check predicate on the "meter_id" field. It's identical to MeterIDEQ.
func MeterIDContains ¶
MeterIDContains applies the Contains predicate on the "meter_id" field.
func MeterIDContainsFold ¶
MeterIDContainsFold applies the ContainsFold predicate on the "meter_id" field.
func MeterIDEqualFold ¶
MeterIDEqualFold applies the EqualFold predicate on the "meter_id" field.
func MeterIDGTE ¶
MeterIDGTE applies the GTE predicate on the "meter_id" field.
func MeterIDHasPrefix ¶
MeterIDHasPrefix applies the HasPrefix predicate on the "meter_id" field.
func MeterIDHasSuffix ¶
MeterIDHasSuffix applies the HasSuffix predicate on the "meter_id" field.
func MeterIDLTE ¶
MeterIDLTE applies the LTE predicate on the "meter_id" field.
func MeterIDNEQ ¶
MeterIDNEQ applies the NEQ predicate on the "meter_id" field.
func MeterIDNotIn ¶
MeterIDNotIn applies the NotIn predicate on the "meter_id" field.
func PriceID ¶
PriceID applies equality check predicate on the "price_id" field. It's identical to PriceIDEQ.
func PriceIDContains ¶
PriceIDContains applies the Contains predicate on the "price_id" field.
func PriceIDContainsFold ¶
PriceIDContainsFold applies the ContainsFold predicate on the "price_id" field.
func PriceIDEqualFold ¶
PriceIDEqualFold applies the EqualFold predicate on the "price_id" field.
func PriceIDGTE ¶
PriceIDGTE applies the GTE predicate on the "price_id" field.
func PriceIDHasPrefix ¶
PriceIDHasPrefix applies the HasPrefix predicate on the "price_id" field.
func PriceIDHasSuffix ¶
PriceIDHasSuffix applies the HasSuffix predicate on the "price_id" field.
func PriceIDLTE ¶
PriceIDLTE applies the LTE predicate on the "price_id" field.
func PriceIDNEQ ¶
PriceIDNEQ applies the NEQ predicate on the "price_id" field.
func PriceIDNotIn ¶
PriceIDNotIn applies the NotIn predicate on the "price_id" 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 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 Costsheet queries.
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 ByMeterField ¶
func ByMeterField(field string, opts ...sql.OrderTermOption) OrderOption
ByMeterField orders the results by meter field.
func ByMeterID ¶
func ByMeterID(opts ...sql.OrderTermOption) OrderOption
ByMeterID orders the results by the meter_id field.
func ByPriceField ¶
func ByPriceField(field string, opts ...sql.OrderTermOption) OrderOption
ByPriceField orders the results by price field.
func ByPriceID ¶
func ByPriceID(opts ...sql.OrderTermOption) OrderOption
ByPriceID orders the results by the price_id field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status 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.