costsheet

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: 4 Imported by: 0

Documentation

Index

Constants

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

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
	// 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
)

Columns holds all SQL columns for costsheet fields.

Functions

func And

func And(predicates ...predicate.Costsheet) predicate.Costsheet

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Costsheet

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Costsheet

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Costsheet

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Costsheet

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Costsheet

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Costsheet

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Costsheet

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

func CreatedAtNotIn

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

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

func CreatedBy

func CreatedBy(v string) predicate.Costsheet

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

func CreatedByContains

func CreatedByContains(v string) predicate.Costsheet

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

func CreatedByContainsFold

func CreatedByContainsFold(v string) predicate.Costsheet

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

func CreatedByEQ

func CreatedByEQ(v string) predicate.Costsheet

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

func CreatedByEqualFold

func CreatedByEqualFold(v string) predicate.Costsheet

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

func CreatedByGT

func CreatedByGT(v string) predicate.Costsheet

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

func CreatedByGTE

func CreatedByGTE(v string) predicate.Costsheet

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

func CreatedByHasPrefix

func CreatedByHasPrefix(v string) predicate.Costsheet

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

func CreatedByHasSuffix

func CreatedByHasSuffix(v string) predicate.Costsheet

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

func CreatedByIn

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

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

func CreatedByIsNil

func CreatedByIsNil() predicate.Costsheet

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

func CreatedByLT

func CreatedByLT(v string) predicate.Costsheet

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

func CreatedByLTE

func CreatedByLTE(v string) predicate.Costsheet

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

func CreatedByNEQ

func CreatedByNEQ(v string) predicate.Costsheet

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

func CreatedByNotIn

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

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

func CreatedByNotNil

func CreatedByNotNil() predicate.Costsheet

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

func EnvironmentID

func EnvironmentID(v string) predicate.Costsheet

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

func EnvironmentIDContains

func EnvironmentIDContains(v string) predicate.Costsheet

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

func EnvironmentIDContainsFold

func EnvironmentIDContainsFold(v string) predicate.Costsheet

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

func EnvironmentIDEQ

func EnvironmentIDEQ(v string) predicate.Costsheet

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

func EnvironmentIDEqualFold

func EnvironmentIDEqualFold(v string) predicate.Costsheet

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

func EnvironmentIDGT

func EnvironmentIDGT(v string) predicate.Costsheet

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

func EnvironmentIDGTE

func EnvironmentIDGTE(v string) predicate.Costsheet

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

func EnvironmentIDHasPrefix

func EnvironmentIDHasPrefix(v string) predicate.Costsheet

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

func EnvironmentIDHasSuffix

func EnvironmentIDHasSuffix(v string) predicate.Costsheet

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

func EnvironmentIDIn

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

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

func EnvironmentIDIsNil

func EnvironmentIDIsNil() predicate.Costsheet

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

func EnvironmentIDLT

func EnvironmentIDLT(v string) predicate.Costsheet

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

func EnvironmentIDLTE

func EnvironmentIDLTE(v string) predicate.Costsheet

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

func EnvironmentIDNEQ

func EnvironmentIDNEQ(v string) predicate.Costsheet

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

func EnvironmentIDNotIn

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

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

func EnvironmentIDNotNil

func EnvironmentIDNotNil() predicate.Costsheet

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

func HasMeter

func HasMeter() predicate.Costsheet

HasMeter applies the HasEdge predicate on the "meter" edge.

func HasMeterWith

func HasMeterWith(preds ...predicate.Meter) predicate.Costsheet

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

func HasPrice

func HasPrice() predicate.Costsheet

HasPrice applies the HasEdge predicate on the "price" edge.

func HasPriceWith

func HasPriceWith(preds ...predicate.Price) predicate.Costsheet

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

func ID

func ID(id string) predicate.Costsheet

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Costsheet

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Costsheet

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Costsheet

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Costsheet

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Costsheet

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Costsheet

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Costsheet

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Costsheet

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func MeterID

func MeterID(v string) predicate.Costsheet

MeterID applies equality check predicate on the "meter_id" field. It's identical to MeterIDEQ.

func MeterIDContains

func MeterIDContains(v string) predicate.Costsheet

MeterIDContains applies the Contains predicate on the "meter_id" field.

func MeterIDContainsFold

func MeterIDContainsFold(v string) predicate.Costsheet

MeterIDContainsFold applies the ContainsFold predicate on the "meter_id" field.

func MeterIDEQ

func MeterIDEQ(v string) predicate.Costsheet

MeterIDEQ applies the EQ predicate on the "meter_id" field.

func MeterIDEqualFold

func MeterIDEqualFold(v string) predicate.Costsheet

MeterIDEqualFold applies the EqualFold predicate on the "meter_id" field.

func MeterIDGT

func MeterIDGT(v string) predicate.Costsheet

MeterIDGT applies the GT predicate on the "meter_id" field.

func MeterIDGTE

func MeterIDGTE(v string) predicate.Costsheet

MeterIDGTE applies the GTE predicate on the "meter_id" field.

func MeterIDHasPrefix

func MeterIDHasPrefix(v string) predicate.Costsheet

MeterIDHasPrefix applies the HasPrefix predicate on the "meter_id" field.

func MeterIDHasSuffix

func MeterIDHasSuffix(v string) predicate.Costsheet

MeterIDHasSuffix applies the HasSuffix predicate on the "meter_id" field.

func MeterIDIn

func MeterIDIn(vs ...string) predicate.Costsheet

MeterIDIn applies the In predicate on the "meter_id" field.

func MeterIDLT

func MeterIDLT(v string) predicate.Costsheet

MeterIDLT applies the LT predicate on the "meter_id" field.

func MeterIDLTE

func MeterIDLTE(v string) predicate.Costsheet

MeterIDLTE applies the LTE predicate on the "meter_id" field.

func MeterIDNEQ

func MeterIDNEQ(v string) predicate.Costsheet

MeterIDNEQ applies the NEQ predicate on the "meter_id" field.

func MeterIDNotIn

func MeterIDNotIn(vs ...string) predicate.Costsheet

MeterIDNotIn applies the NotIn predicate on the "meter_id" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Costsheet) predicate.Costsheet

Or groups predicates with the OR operator between them.

func PriceID

func PriceID(v string) predicate.Costsheet

PriceID applies equality check predicate on the "price_id" field. It's identical to PriceIDEQ.

func PriceIDContains

func PriceIDContains(v string) predicate.Costsheet

PriceIDContains applies the Contains predicate on the "price_id" field.

func PriceIDContainsFold

func PriceIDContainsFold(v string) predicate.Costsheet

PriceIDContainsFold applies the ContainsFold predicate on the "price_id" field.

func PriceIDEQ

func PriceIDEQ(v string) predicate.Costsheet

PriceIDEQ applies the EQ predicate on the "price_id" field.

func PriceIDEqualFold

func PriceIDEqualFold(v string) predicate.Costsheet

PriceIDEqualFold applies the EqualFold predicate on the "price_id" field.

func PriceIDGT

func PriceIDGT(v string) predicate.Costsheet

PriceIDGT applies the GT predicate on the "price_id" field.

func PriceIDGTE

func PriceIDGTE(v string) predicate.Costsheet

PriceIDGTE applies the GTE predicate on the "price_id" field.

func PriceIDHasPrefix

func PriceIDHasPrefix(v string) predicate.Costsheet

PriceIDHasPrefix applies the HasPrefix predicate on the "price_id" field.

func PriceIDHasSuffix

func PriceIDHasSuffix(v string) predicate.Costsheet

PriceIDHasSuffix applies the HasSuffix predicate on the "price_id" field.

func PriceIDIn

func PriceIDIn(vs ...string) predicate.Costsheet

PriceIDIn applies the In predicate on the "price_id" field.

func PriceIDLT

func PriceIDLT(v string) predicate.Costsheet

PriceIDLT applies the LT predicate on the "price_id" field.

func PriceIDLTE

func PriceIDLTE(v string) predicate.Costsheet

PriceIDLTE applies the LTE predicate on the "price_id" field.

func PriceIDNEQ

func PriceIDNEQ(v string) predicate.Costsheet

PriceIDNEQ applies the NEQ predicate on the "price_id" field.

func PriceIDNotIn

func PriceIDNotIn(vs ...string) predicate.Costsheet

PriceIDNotIn applies the NotIn predicate on the "price_id" field.

func Status

func Status(v string) predicate.Costsheet

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

func StatusContains

func StatusContains(v string) predicate.Costsheet

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

func StatusContainsFold

func StatusContainsFold(v string) predicate.Costsheet

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

func StatusEQ

func StatusEQ(v string) predicate.Costsheet

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

func StatusEqualFold

func StatusEqualFold(v string) predicate.Costsheet

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

func StatusGT

func StatusGT(v string) predicate.Costsheet

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

func StatusGTE

func StatusGTE(v string) predicate.Costsheet

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

func StatusHasPrefix

func StatusHasPrefix(v string) predicate.Costsheet

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

func StatusHasSuffix

func StatusHasSuffix(v string) predicate.Costsheet

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

func StatusIn

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

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

func StatusLT

func StatusLT(v string) predicate.Costsheet

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

func StatusLTE

func StatusLTE(v string) predicate.Costsheet

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

func StatusNEQ

func StatusNEQ(v string) predicate.Costsheet

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

func StatusNotIn

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

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

func TenantID

func TenantID(v string) predicate.Costsheet

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

func TenantIDContains

func TenantIDContains(v string) predicate.Costsheet

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

func TenantIDContainsFold

func TenantIDContainsFold(v string) predicate.Costsheet

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

func TenantIDEQ

func TenantIDEQ(v string) predicate.Costsheet

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

func TenantIDEqualFold

func TenantIDEqualFold(v string) predicate.Costsheet

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

func TenantIDGT

func TenantIDGT(v string) predicate.Costsheet

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

func TenantIDGTE

func TenantIDGTE(v string) predicate.Costsheet

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

func TenantIDHasPrefix

func TenantIDHasPrefix(v string) predicate.Costsheet

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

func TenantIDHasSuffix

func TenantIDHasSuffix(v string) predicate.Costsheet

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

func TenantIDIn

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

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

func TenantIDLT

func TenantIDLT(v string) predicate.Costsheet

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

func TenantIDLTE

func TenantIDLTE(v string) predicate.Costsheet

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

func TenantIDNEQ

func TenantIDNEQ(v string) predicate.Costsheet

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

func TenantIDNotIn

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

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Costsheet

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Costsheet

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Costsheet

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Costsheet

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Costsheet

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Costsheet

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Costsheet

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

func UpdatedAtNotIn

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

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

func UpdatedBy

func UpdatedBy(v string) predicate.Costsheet

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

func UpdatedByContains

func UpdatedByContains(v string) predicate.Costsheet

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

func UpdatedByContainsFold

func UpdatedByContainsFold(v string) predicate.Costsheet

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

func UpdatedByEQ

func UpdatedByEQ(v string) predicate.Costsheet

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

func UpdatedByEqualFold

func UpdatedByEqualFold(v string) predicate.Costsheet

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

func UpdatedByGT

func UpdatedByGT(v string) predicate.Costsheet

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

func UpdatedByGTE

func UpdatedByGTE(v string) predicate.Costsheet

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

func UpdatedByHasPrefix

func UpdatedByHasPrefix(v string) predicate.Costsheet

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

func UpdatedByHasSuffix

func UpdatedByHasSuffix(v string) predicate.Costsheet

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

func UpdatedByIn

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

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

func UpdatedByIsNil

func UpdatedByIsNil() predicate.Costsheet

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

func UpdatedByLT

func UpdatedByLT(v string) predicate.Costsheet

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

func UpdatedByLTE

func UpdatedByLTE(v string) predicate.Costsheet

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

func UpdatedByNEQ

func UpdatedByNEQ(v string) predicate.Costsheet

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

func UpdatedByNotIn

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

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

func UpdatedByNotNil

func UpdatedByNotNil() predicate.Costsheet

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 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.

Jump to

Keyboard shortcuts

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