projectdailytokenusage

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the projectdailytokenusage type in the database.
	Label = "project_daily_token_usage"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldProjectID holds the string denoting the project_id field in the database.
	FieldProjectID = "project_id"
	// FieldUsageDate holds the string denoting the usage_date field in the database.
	FieldUsageDate = "usage_date"
	// FieldInputTokens holds the string denoting the input_tokens field in the database.
	FieldInputTokens = "input_tokens"
	// FieldOutputTokens holds the string denoting the output_tokens field in the database.
	FieldOutputTokens = "output_tokens"
	// FieldCachedInputTokens holds the string denoting the cached_input_tokens field in the database.
	FieldCachedInputTokens = "cached_input_tokens"
	// FieldReasoningTokens holds the string denoting the reasoning_tokens field in the database.
	FieldReasoningTokens = "reasoning_tokens"
	// FieldTotalTokens holds the string denoting the total_tokens field in the database.
	FieldTotalTokens = "total_tokens"
	// FieldFinalizedRunCount holds the string denoting the finalized_run_count field in the database.
	FieldFinalizedRunCount = "finalized_run_count"
	// FieldRecomputedAt holds the string denoting the recomputed_at field in the database.
	FieldRecomputedAt = "recomputed_at"
	// FieldSourceMode holds the string denoting the source_mode field in the database.
	FieldSourceMode = "source_mode"
	// EdgeProject holds the string denoting the project edge name in mutations.
	EdgeProject = "project"
	// Table holds the table name of the projectdailytokenusage in the database.
	Table = "project_daily_token_usages"
	// ProjectTable is the table that holds the project relation/edge.
	ProjectTable = "project_daily_token_usages"
	// ProjectInverseTable is the table name for the Project entity.
	// It exists in this package in order to avoid circular dependency with the "project" package.
	ProjectInverseTable = "projects"
	// ProjectColumn is the table column denoting the project relation/edge.
	ProjectColumn = "project_id"
)
View Source
const DefaultSourceMode = SourceModeMaterialized

SourceModeMaterialized is the default value of the SourceMode enum.

Variables

View Source
var (
	// DefaultInputTokens holds the default value on creation for the "input_tokens" field.
	DefaultInputTokens int64
	// DefaultOutputTokens holds the default value on creation for the "output_tokens" field.
	DefaultOutputTokens int64
	// DefaultCachedInputTokens holds the default value on creation for the "cached_input_tokens" field.
	DefaultCachedInputTokens int64
	// DefaultReasoningTokens holds the default value on creation for the "reasoning_tokens" field.
	DefaultReasoningTokens int64
	// DefaultTotalTokens holds the default value on creation for the "total_tokens" field.
	DefaultTotalTokens int64
	// DefaultFinalizedRunCount holds the default value on creation for the "finalized_run_count" field.
	DefaultFinalizedRunCount int
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for projectdailytokenusage fields.

Functions

func And

And groups predicates with the AND operator between them.

func CachedInputTokens

func CachedInputTokens(v int64) predicate.ProjectDailyTokenUsage

CachedInputTokens applies equality check predicate on the "cached_input_tokens" field. It's identical to CachedInputTokensEQ.

func CachedInputTokensEQ

func CachedInputTokensEQ(v int64) predicate.ProjectDailyTokenUsage

CachedInputTokensEQ applies the EQ predicate on the "cached_input_tokens" field.

func CachedInputTokensGT

func CachedInputTokensGT(v int64) predicate.ProjectDailyTokenUsage

CachedInputTokensGT applies the GT predicate on the "cached_input_tokens" field.

func CachedInputTokensGTE

func CachedInputTokensGTE(v int64) predicate.ProjectDailyTokenUsage

CachedInputTokensGTE applies the GTE predicate on the "cached_input_tokens" field.

func CachedInputTokensIn

func CachedInputTokensIn(vs ...int64) predicate.ProjectDailyTokenUsage

CachedInputTokensIn applies the In predicate on the "cached_input_tokens" field.

func CachedInputTokensLT

func CachedInputTokensLT(v int64) predicate.ProjectDailyTokenUsage

CachedInputTokensLT applies the LT predicate on the "cached_input_tokens" field.

func CachedInputTokensLTE

func CachedInputTokensLTE(v int64) predicate.ProjectDailyTokenUsage

CachedInputTokensLTE applies the LTE predicate on the "cached_input_tokens" field.

func CachedInputTokensNEQ

func CachedInputTokensNEQ(v int64) predicate.ProjectDailyTokenUsage

CachedInputTokensNEQ applies the NEQ predicate on the "cached_input_tokens" field.

func CachedInputTokensNotIn

func CachedInputTokensNotIn(vs ...int64) predicate.ProjectDailyTokenUsage

CachedInputTokensNotIn applies the NotIn predicate on the "cached_input_tokens" field.

func FinalizedRunCount

func FinalizedRunCount(v int) predicate.ProjectDailyTokenUsage

FinalizedRunCount applies equality check predicate on the "finalized_run_count" field. It's identical to FinalizedRunCountEQ.

func FinalizedRunCountEQ

func FinalizedRunCountEQ(v int) predicate.ProjectDailyTokenUsage

FinalizedRunCountEQ applies the EQ predicate on the "finalized_run_count" field.

func FinalizedRunCountGT

func FinalizedRunCountGT(v int) predicate.ProjectDailyTokenUsage

FinalizedRunCountGT applies the GT predicate on the "finalized_run_count" field.

func FinalizedRunCountGTE

func FinalizedRunCountGTE(v int) predicate.ProjectDailyTokenUsage

FinalizedRunCountGTE applies the GTE predicate on the "finalized_run_count" field.

func FinalizedRunCountIn

func FinalizedRunCountIn(vs ...int) predicate.ProjectDailyTokenUsage

FinalizedRunCountIn applies the In predicate on the "finalized_run_count" field.

func FinalizedRunCountLT

func FinalizedRunCountLT(v int) predicate.ProjectDailyTokenUsage

FinalizedRunCountLT applies the LT predicate on the "finalized_run_count" field.

func FinalizedRunCountLTE

func FinalizedRunCountLTE(v int) predicate.ProjectDailyTokenUsage

FinalizedRunCountLTE applies the LTE predicate on the "finalized_run_count" field.

func FinalizedRunCountNEQ

func FinalizedRunCountNEQ(v int) predicate.ProjectDailyTokenUsage

FinalizedRunCountNEQ applies the NEQ predicate on the "finalized_run_count" field.

func FinalizedRunCountNotIn

func FinalizedRunCountNotIn(vs ...int) predicate.ProjectDailyTokenUsage

FinalizedRunCountNotIn applies the NotIn predicate on the "finalized_run_count" field.

func HasProject

func HasProject() predicate.ProjectDailyTokenUsage

HasProject applies the HasEdge predicate on the "project" edge.

func HasProjectWith

func HasProjectWith(preds ...predicate.Project) predicate.ProjectDailyTokenUsage

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.ProjectDailyTokenUsage

IDNotIn applies the NotIn predicate on the ID field.

func InputTokens

func InputTokens(v int64) predicate.ProjectDailyTokenUsage

InputTokens applies equality check predicate on the "input_tokens" field. It's identical to InputTokensEQ.

func InputTokensEQ

func InputTokensEQ(v int64) predicate.ProjectDailyTokenUsage

InputTokensEQ applies the EQ predicate on the "input_tokens" field.

func InputTokensGT

func InputTokensGT(v int64) predicate.ProjectDailyTokenUsage

InputTokensGT applies the GT predicate on the "input_tokens" field.

func InputTokensGTE

func InputTokensGTE(v int64) predicate.ProjectDailyTokenUsage

InputTokensGTE applies the GTE predicate on the "input_tokens" field.

func InputTokensIn

func InputTokensIn(vs ...int64) predicate.ProjectDailyTokenUsage

InputTokensIn applies the In predicate on the "input_tokens" field.

func InputTokensLT

func InputTokensLT(v int64) predicate.ProjectDailyTokenUsage

InputTokensLT applies the LT predicate on the "input_tokens" field.

func InputTokensLTE

func InputTokensLTE(v int64) predicate.ProjectDailyTokenUsage

InputTokensLTE applies the LTE predicate on the "input_tokens" field.

func InputTokensNEQ

func InputTokensNEQ(v int64) predicate.ProjectDailyTokenUsage

InputTokensNEQ applies the NEQ predicate on the "input_tokens" field.

func InputTokensNotIn

func InputTokensNotIn(vs ...int64) predicate.ProjectDailyTokenUsage

InputTokensNotIn applies the NotIn predicate on the "input_tokens" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func OutputTokens

func OutputTokens(v int64) predicate.ProjectDailyTokenUsage

OutputTokens applies equality check predicate on the "output_tokens" field. It's identical to OutputTokensEQ.

func OutputTokensEQ

func OutputTokensEQ(v int64) predicate.ProjectDailyTokenUsage

OutputTokensEQ applies the EQ predicate on the "output_tokens" field.

func OutputTokensGT

func OutputTokensGT(v int64) predicate.ProjectDailyTokenUsage

OutputTokensGT applies the GT predicate on the "output_tokens" field.

func OutputTokensGTE

func OutputTokensGTE(v int64) predicate.ProjectDailyTokenUsage

OutputTokensGTE applies the GTE predicate on the "output_tokens" field.

func OutputTokensIn

func OutputTokensIn(vs ...int64) predicate.ProjectDailyTokenUsage

OutputTokensIn applies the In predicate on the "output_tokens" field.

func OutputTokensLT

func OutputTokensLT(v int64) predicate.ProjectDailyTokenUsage

OutputTokensLT applies the LT predicate on the "output_tokens" field.

func OutputTokensLTE

func OutputTokensLTE(v int64) predicate.ProjectDailyTokenUsage

OutputTokensLTE applies the LTE predicate on the "output_tokens" field.

func OutputTokensNEQ

func OutputTokensNEQ(v int64) predicate.ProjectDailyTokenUsage

OutputTokensNEQ applies the NEQ predicate on the "output_tokens" field.

func OutputTokensNotIn

func OutputTokensNotIn(vs ...int64) predicate.ProjectDailyTokenUsage

OutputTokensNotIn applies the NotIn predicate on the "output_tokens" field.

func ProjectID

ProjectID applies equality check predicate on the "project_id" field. It's identical to ProjectIDEQ.

func ProjectIDEQ

ProjectIDEQ applies the EQ predicate on the "project_id" field.

func ProjectIDIn

func ProjectIDIn(vs ...uuid.UUID) predicate.ProjectDailyTokenUsage

ProjectIDIn applies the In predicate on the "project_id" field.

func ProjectIDNEQ

func ProjectIDNEQ(v uuid.UUID) predicate.ProjectDailyTokenUsage

ProjectIDNEQ applies the NEQ predicate on the "project_id" field.

func ProjectIDNotIn

func ProjectIDNotIn(vs ...uuid.UUID) predicate.ProjectDailyTokenUsage

ProjectIDNotIn applies the NotIn predicate on the "project_id" field.

func ReasoningTokens

func ReasoningTokens(v int64) predicate.ProjectDailyTokenUsage

ReasoningTokens applies equality check predicate on the "reasoning_tokens" field. It's identical to ReasoningTokensEQ.

func ReasoningTokensEQ

func ReasoningTokensEQ(v int64) predicate.ProjectDailyTokenUsage

ReasoningTokensEQ applies the EQ predicate on the "reasoning_tokens" field.

func ReasoningTokensGT

func ReasoningTokensGT(v int64) predicate.ProjectDailyTokenUsage

ReasoningTokensGT applies the GT predicate on the "reasoning_tokens" field.

func ReasoningTokensGTE

func ReasoningTokensGTE(v int64) predicate.ProjectDailyTokenUsage

ReasoningTokensGTE applies the GTE predicate on the "reasoning_tokens" field.

func ReasoningTokensIn

func ReasoningTokensIn(vs ...int64) predicate.ProjectDailyTokenUsage

ReasoningTokensIn applies the In predicate on the "reasoning_tokens" field.

func ReasoningTokensLT

func ReasoningTokensLT(v int64) predicate.ProjectDailyTokenUsage

ReasoningTokensLT applies the LT predicate on the "reasoning_tokens" field.

func ReasoningTokensLTE

func ReasoningTokensLTE(v int64) predicate.ProjectDailyTokenUsage

ReasoningTokensLTE applies the LTE predicate on the "reasoning_tokens" field.

func ReasoningTokensNEQ

func ReasoningTokensNEQ(v int64) predicate.ProjectDailyTokenUsage

ReasoningTokensNEQ applies the NEQ predicate on the "reasoning_tokens" field.

func ReasoningTokensNotIn

func ReasoningTokensNotIn(vs ...int64) predicate.ProjectDailyTokenUsage

ReasoningTokensNotIn applies the NotIn predicate on the "reasoning_tokens" field.

func RecomputedAt

func RecomputedAt(v time.Time) predicate.ProjectDailyTokenUsage

RecomputedAt applies equality check predicate on the "recomputed_at" field. It's identical to RecomputedAtEQ.

func RecomputedAtEQ

func RecomputedAtEQ(v time.Time) predicate.ProjectDailyTokenUsage

RecomputedAtEQ applies the EQ predicate on the "recomputed_at" field.

func RecomputedAtGT

func RecomputedAtGT(v time.Time) predicate.ProjectDailyTokenUsage

RecomputedAtGT applies the GT predicate on the "recomputed_at" field.

func RecomputedAtGTE

func RecomputedAtGTE(v time.Time) predicate.ProjectDailyTokenUsage

RecomputedAtGTE applies the GTE predicate on the "recomputed_at" field.

func RecomputedAtIn

func RecomputedAtIn(vs ...time.Time) predicate.ProjectDailyTokenUsage

RecomputedAtIn applies the In predicate on the "recomputed_at" field.

func RecomputedAtLT

func RecomputedAtLT(v time.Time) predicate.ProjectDailyTokenUsage

RecomputedAtLT applies the LT predicate on the "recomputed_at" field.

func RecomputedAtLTE

func RecomputedAtLTE(v time.Time) predicate.ProjectDailyTokenUsage

RecomputedAtLTE applies the LTE predicate on the "recomputed_at" field.

func RecomputedAtNEQ

func RecomputedAtNEQ(v time.Time) predicate.ProjectDailyTokenUsage

RecomputedAtNEQ applies the NEQ predicate on the "recomputed_at" field.

func RecomputedAtNotIn

func RecomputedAtNotIn(vs ...time.Time) predicate.ProjectDailyTokenUsage

RecomputedAtNotIn applies the NotIn predicate on the "recomputed_at" field.

func SourceModeEQ

SourceModeEQ applies the EQ predicate on the "source_mode" field.

func SourceModeIn

func SourceModeIn(vs ...SourceMode) predicate.ProjectDailyTokenUsage

SourceModeIn applies the In predicate on the "source_mode" field.

func SourceModeNEQ

SourceModeNEQ applies the NEQ predicate on the "source_mode" field.

func SourceModeNotIn

func SourceModeNotIn(vs ...SourceMode) predicate.ProjectDailyTokenUsage

SourceModeNotIn applies the NotIn predicate on the "source_mode" field.

func SourceModeValidator

func SourceModeValidator(sm SourceMode) error

SourceModeValidator is a validator for the "source_mode" field enum values. It is called by the builders before save.

func TotalTokens

func TotalTokens(v int64) predicate.ProjectDailyTokenUsage

TotalTokens applies equality check predicate on the "total_tokens" field. It's identical to TotalTokensEQ.

func TotalTokensEQ

func TotalTokensEQ(v int64) predicate.ProjectDailyTokenUsage

TotalTokensEQ applies the EQ predicate on the "total_tokens" field.

func TotalTokensGT

func TotalTokensGT(v int64) predicate.ProjectDailyTokenUsage

TotalTokensGT applies the GT predicate on the "total_tokens" field.

func TotalTokensGTE

func TotalTokensGTE(v int64) predicate.ProjectDailyTokenUsage

TotalTokensGTE applies the GTE predicate on the "total_tokens" field.

func TotalTokensIn

func TotalTokensIn(vs ...int64) predicate.ProjectDailyTokenUsage

TotalTokensIn applies the In predicate on the "total_tokens" field.

func TotalTokensLT

func TotalTokensLT(v int64) predicate.ProjectDailyTokenUsage

TotalTokensLT applies the LT predicate on the "total_tokens" field.

func TotalTokensLTE

func TotalTokensLTE(v int64) predicate.ProjectDailyTokenUsage

TotalTokensLTE applies the LTE predicate on the "total_tokens" field.

func TotalTokensNEQ

func TotalTokensNEQ(v int64) predicate.ProjectDailyTokenUsage

TotalTokensNEQ applies the NEQ predicate on the "total_tokens" field.

func TotalTokensNotIn

func TotalTokensNotIn(vs ...int64) predicate.ProjectDailyTokenUsage

TotalTokensNotIn applies the NotIn predicate on the "total_tokens" field.

func UsageDate

UsageDate applies equality check predicate on the "usage_date" field. It's identical to UsageDateEQ.

func UsageDateEQ

UsageDateEQ applies the EQ predicate on the "usage_date" field.

func UsageDateGT

UsageDateGT applies the GT predicate on the "usage_date" field.

func UsageDateGTE

func UsageDateGTE(v time.Time) predicate.ProjectDailyTokenUsage

UsageDateGTE applies the GTE predicate on the "usage_date" field.

func UsageDateIn

func UsageDateIn(vs ...time.Time) predicate.ProjectDailyTokenUsage

UsageDateIn applies the In predicate on the "usage_date" field.

func UsageDateLT

UsageDateLT applies the LT predicate on the "usage_date" field.

func UsageDateLTE

func UsageDateLTE(v time.Time) predicate.ProjectDailyTokenUsage

UsageDateLTE applies the LTE predicate on the "usage_date" field.

func UsageDateNEQ

func UsageDateNEQ(v time.Time) predicate.ProjectDailyTokenUsage

UsageDateNEQ applies the NEQ predicate on the "usage_date" field.

func UsageDateNotIn

func UsageDateNotIn(vs ...time.Time) predicate.ProjectDailyTokenUsage

UsageDateNotIn applies the NotIn predicate on the "usage_date" 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 ProjectDailyTokenUsage queries.

func ByCachedInputTokens

func ByCachedInputTokens(opts ...sql.OrderTermOption) OrderOption

ByCachedInputTokens orders the results by the cached_input_tokens field.

func ByFinalizedRunCount

func ByFinalizedRunCount(opts ...sql.OrderTermOption) OrderOption

ByFinalizedRunCount orders the results by the finalized_run_count field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByInputTokens

func ByInputTokens(opts ...sql.OrderTermOption) OrderOption

ByInputTokens orders the results by the input_tokens field.

func ByOutputTokens

func ByOutputTokens(opts ...sql.OrderTermOption) OrderOption

ByOutputTokens orders the results by the output_tokens field.

func ByProjectField

func ByProjectField(field string, opts ...sql.OrderTermOption) OrderOption

ByProjectField orders the results by project field.

func ByProjectID

func ByProjectID(opts ...sql.OrderTermOption) OrderOption

ByProjectID orders the results by the project_id field.

func ByReasoningTokens

func ByReasoningTokens(opts ...sql.OrderTermOption) OrderOption

ByReasoningTokens orders the results by the reasoning_tokens field.

func ByRecomputedAt

func ByRecomputedAt(opts ...sql.OrderTermOption) OrderOption

ByRecomputedAt orders the results by the recomputed_at field.

func BySourceMode

func BySourceMode(opts ...sql.OrderTermOption) OrderOption

BySourceMode orders the results by the source_mode field.

func ByTotalTokens

func ByTotalTokens(opts ...sql.OrderTermOption) OrderOption

ByTotalTokens orders the results by the total_tokens field.

func ByUsageDate

func ByUsageDate(opts ...sql.OrderTermOption) OrderOption

ByUsageDate orders the results by the usage_date field.

type SourceMode

type SourceMode string

SourceMode defines the type for the "source_mode" enum field.

const (
	SourceModeMaterialized SourceMode = "materialized"
	SourceModeLazyBackfill SourceMode = "lazy_backfill"
)

SourceMode values.

func (SourceMode) String

func (sm SourceMode) String() string

Jump to

Keyboard shortcuts

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