Documentation
¶
Index ¶
- Constants
- Variables
- func AgentName(v string) predicate.TokenUsage
- func AgentNameContains(v string) predicate.TokenUsage
- func AgentNameContainsFold(v string) predicate.TokenUsage
- func AgentNameEQ(v string) predicate.TokenUsage
- func AgentNameEqualFold(v string) predicate.TokenUsage
- func AgentNameGT(v string) predicate.TokenUsage
- func AgentNameGTE(v string) predicate.TokenUsage
- func AgentNameHasPrefix(v string) predicate.TokenUsage
- func AgentNameHasSuffix(v string) predicate.TokenUsage
- func AgentNameIn(vs ...string) predicate.TokenUsage
- func AgentNameIsNil() predicate.TokenUsage
- func AgentNameLT(v string) predicate.TokenUsage
- func AgentNameLTE(v string) predicate.TokenUsage
- func AgentNameNEQ(v string) predicate.TokenUsage
- func AgentNameNotIn(vs ...string) predicate.TokenUsage
- func AgentNameNotNil() predicate.TokenUsage
- func And(predicates ...predicate.TokenUsage) predicate.TokenUsage
- func CacheTokens(v int64) predicate.TokenUsage
- func CacheTokensEQ(v int64) predicate.TokenUsage
- func CacheTokensGT(v int64) predicate.TokenUsage
- func CacheTokensGTE(v int64) predicate.TokenUsage
- func CacheTokensIn(vs ...int64) predicate.TokenUsage
- func CacheTokensLT(v int64) predicate.TokenUsage
- func CacheTokensLTE(v int64) predicate.TokenUsage
- func CacheTokensNEQ(v int64) predicate.TokenUsage
- func CacheTokensNotIn(vs ...int64) predicate.TokenUsage
- func ID(id uuid.UUID) predicate.TokenUsage
- func IDEQ(id uuid.UUID) predicate.TokenUsage
- func IDGT(id uuid.UUID) predicate.TokenUsage
- func IDGTE(id uuid.UUID) predicate.TokenUsage
- func IDIn(ids ...uuid.UUID) predicate.TokenUsage
- func IDLT(id uuid.UUID) predicate.TokenUsage
- func IDLTE(id uuid.UUID) predicate.TokenUsage
- func IDNEQ(id uuid.UUID) predicate.TokenUsage
- func IDNotIn(ids ...uuid.UUID) predicate.TokenUsage
- func InputTokens(v int64) predicate.TokenUsage
- func InputTokensEQ(v int64) predicate.TokenUsage
- func InputTokensGT(v int64) predicate.TokenUsage
- func InputTokensGTE(v int64) predicate.TokenUsage
- func InputTokensIn(vs ...int64) predicate.TokenUsage
- func InputTokensLT(v int64) predicate.TokenUsage
- func InputTokensLTE(v int64) predicate.TokenUsage
- func InputTokensNEQ(v int64) predicate.TokenUsage
- func InputTokensNotIn(vs ...int64) predicate.TokenUsage
- func Model(v string) predicate.TokenUsage
- func ModelContains(v string) predicate.TokenUsage
- func ModelContainsFold(v string) predicate.TokenUsage
- func ModelEQ(v string) predicate.TokenUsage
- func ModelEqualFold(v string) predicate.TokenUsage
- func ModelGT(v string) predicate.TokenUsage
- func ModelGTE(v string) predicate.TokenUsage
- func ModelHasPrefix(v string) predicate.TokenUsage
- func ModelHasSuffix(v string) predicate.TokenUsage
- func ModelIn(vs ...string) predicate.TokenUsage
- func ModelLT(v string) predicate.TokenUsage
- func ModelLTE(v string) predicate.TokenUsage
- func ModelNEQ(v string) predicate.TokenUsage
- func ModelNotIn(vs ...string) predicate.TokenUsage
- func Not(p predicate.TokenUsage) predicate.TokenUsage
- func Or(predicates ...predicate.TokenUsage) predicate.TokenUsage
- func OutputTokens(v int64) predicate.TokenUsage
- func OutputTokensEQ(v int64) predicate.TokenUsage
- func OutputTokensGT(v int64) predicate.TokenUsage
- func OutputTokensGTE(v int64) predicate.TokenUsage
- func OutputTokensIn(vs ...int64) predicate.TokenUsage
- func OutputTokensLT(v int64) predicate.TokenUsage
- func OutputTokensLTE(v int64) predicate.TokenUsage
- func OutputTokensNEQ(v int64) predicate.TokenUsage
- func OutputTokensNotIn(vs ...int64) predicate.TokenUsage
- func Provider(v string) predicate.TokenUsage
- func ProviderContains(v string) predicate.TokenUsage
- func ProviderContainsFold(v string) predicate.TokenUsage
- func ProviderEQ(v string) predicate.TokenUsage
- func ProviderEqualFold(v string) predicate.TokenUsage
- func ProviderGT(v string) predicate.TokenUsage
- func ProviderGTE(v string) predicate.TokenUsage
- func ProviderHasPrefix(v string) predicate.TokenUsage
- func ProviderHasSuffix(v string) predicate.TokenUsage
- func ProviderIn(vs ...string) predicate.TokenUsage
- func ProviderLT(v string) predicate.TokenUsage
- func ProviderLTE(v string) predicate.TokenUsage
- func ProviderNEQ(v string) predicate.TokenUsage
- func ProviderNotIn(vs ...string) predicate.TokenUsage
- func SessionKey(v string) predicate.TokenUsage
- func SessionKeyContains(v string) predicate.TokenUsage
- func SessionKeyContainsFold(v string) predicate.TokenUsage
- func SessionKeyEQ(v string) predicate.TokenUsage
- func SessionKeyEqualFold(v string) predicate.TokenUsage
- func SessionKeyGT(v string) predicate.TokenUsage
- func SessionKeyGTE(v string) predicate.TokenUsage
- func SessionKeyHasPrefix(v string) predicate.TokenUsage
- func SessionKeyHasSuffix(v string) predicate.TokenUsage
- func SessionKeyIn(vs ...string) predicate.TokenUsage
- func SessionKeyIsNil() predicate.TokenUsage
- func SessionKeyLT(v string) predicate.TokenUsage
- func SessionKeyLTE(v string) predicate.TokenUsage
- func SessionKeyNEQ(v string) predicate.TokenUsage
- func SessionKeyNotIn(vs ...string) predicate.TokenUsage
- func SessionKeyNotNil() predicate.TokenUsage
- func Timestamp(v time.Time) predicate.TokenUsage
- func TimestampEQ(v time.Time) predicate.TokenUsage
- func TimestampGT(v time.Time) predicate.TokenUsage
- func TimestampGTE(v time.Time) predicate.TokenUsage
- func TimestampIn(vs ...time.Time) predicate.TokenUsage
- func TimestampLT(v time.Time) predicate.TokenUsage
- func TimestampLTE(v time.Time) predicate.TokenUsage
- func TimestampNEQ(v time.Time) predicate.TokenUsage
- func TimestampNotIn(vs ...time.Time) predicate.TokenUsage
- func TotalTokens(v int64) predicate.TokenUsage
- func TotalTokensEQ(v int64) predicate.TokenUsage
- func TotalTokensGT(v int64) predicate.TokenUsage
- func TotalTokensGTE(v int64) predicate.TokenUsage
- func TotalTokensIn(vs ...int64) predicate.TokenUsage
- func TotalTokensLT(v int64) predicate.TokenUsage
- func TotalTokensLTE(v int64) predicate.TokenUsage
- func TotalTokensNEQ(v int64) predicate.TokenUsage
- func TotalTokensNotIn(vs ...int64) predicate.TokenUsage
- func ValidColumn(column string) bool
- type OrderOption
- func ByAgentName(opts ...sql.OrderTermOption) OrderOption
- func ByCacheTokens(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInputTokens(opts ...sql.OrderTermOption) OrderOption
- func ByModel(opts ...sql.OrderTermOption) OrderOption
- func ByOutputTokens(opts ...sql.OrderTermOption) OrderOption
- func ByProvider(opts ...sql.OrderTermOption) OrderOption
- func BySessionKey(opts ...sql.OrderTermOption) OrderOption
- func ByTimestamp(opts ...sql.OrderTermOption) OrderOption
- func ByTotalTokens(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the tokenusage type in the database. Label = "token_usage" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldSessionKey holds the string denoting the session_key field in the database. FieldSessionKey = "session_key" // FieldProvider holds the string denoting the provider field in the database. FieldProvider = "provider" // FieldModel holds the string denoting the model field in the database. FieldModel = "model" // FieldAgentName holds the string denoting the agent_name field in the database. FieldAgentName = "agent_name" // 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" // FieldTotalTokens holds the string denoting the total_tokens field in the database. FieldTotalTokens = "total_tokens" // FieldCacheTokens holds the string denoting the cache_tokens field in the database. FieldCacheTokens = "cache_tokens" // FieldTimestamp holds the string denoting the timestamp field in the database. FieldTimestamp = "timestamp" // Table holds the table name of the tokenusage in the database. Table = "token_usages" )
Variables ¶
var ( // ProviderValidator is a validator for the "provider" field. It is called by the builders before save. ProviderValidator func(string) error // ModelValidator is a validator for the "model" field. It is called by the builders before save. ModelValidator func(string) error // 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 // DefaultTotalTokens holds the default value on creation for the "total_tokens" field. DefaultTotalTokens int64 // DefaultCacheTokens holds the default value on creation for the "cache_tokens" field. DefaultCacheTokens int64 // DefaultTimestamp holds the default value on creation for the "timestamp" field. DefaultTimestamp func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldSessionKey, FieldProvider, FieldModel, FieldAgentName, FieldInputTokens, FieldOutputTokens, FieldTotalTokens, FieldCacheTokens, FieldTimestamp, }
Columns holds all SQL columns for tokenusage fields.
Functions ¶
func AgentName ¶
func AgentName(v string) predicate.TokenUsage
AgentName applies equality check predicate on the "agent_name" field. It's identical to AgentNameEQ.
func AgentNameContains ¶
func AgentNameContains(v string) predicate.TokenUsage
AgentNameContains applies the Contains predicate on the "agent_name" field.
func AgentNameContainsFold ¶
func AgentNameContainsFold(v string) predicate.TokenUsage
AgentNameContainsFold applies the ContainsFold predicate on the "agent_name" field.
func AgentNameEQ ¶
func AgentNameEQ(v string) predicate.TokenUsage
AgentNameEQ applies the EQ predicate on the "agent_name" field.
func AgentNameEqualFold ¶
func AgentNameEqualFold(v string) predicate.TokenUsage
AgentNameEqualFold applies the EqualFold predicate on the "agent_name" field.
func AgentNameGT ¶
func AgentNameGT(v string) predicate.TokenUsage
AgentNameGT applies the GT predicate on the "agent_name" field.
func AgentNameGTE ¶
func AgentNameGTE(v string) predicate.TokenUsage
AgentNameGTE applies the GTE predicate on the "agent_name" field.
func AgentNameHasPrefix ¶
func AgentNameHasPrefix(v string) predicate.TokenUsage
AgentNameHasPrefix applies the HasPrefix predicate on the "agent_name" field.
func AgentNameHasSuffix ¶
func AgentNameHasSuffix(v string) predicate.TokenUsage
AgentNameHasSuffix applies the HasSuffix predicate on the "agent_name" field.
func AgentNameIn ¶
func AgentNameIn(vs ...string) predicate.TokenUsage
AgentNameIn applies the In predicate on the "agent_name" field.
func AgentNameIsNil ¶
func AgentNameIsNil() predicate.TokenUsage
AgentNameIsNil applies the IsNil predicate on the "agent_name" field.
func AgentNameLT ¶
func AgentNameLT(v string) predicate.TokenUsage
AgentNameLT applies the LT predicate on the "agent_name" field.
func AgentNameLTE ¶
func AgentNameLTE(v string) predicate.TokenUsage
AgentNameLTE applies the LTE predicate on the "agent_name" field.
func AgentNameNEQ ¶
func AgentNameNEQ(v string) predicate.TokenUsage
AgentNameNEQ applies the NEQ predicate on the "agent_name" field.
func AgentNameNotIn ¶
func AgentNameNotIn(vs ...string) predicate.TokenUsage
AgentNameNotIn applies the NotIn predicate on the "agent_name" field.
func AgentNameNotNil ¶
func AgentNameNotNil() predicate.TokenUsage
AgentNameNotNil applies the NotNil predicate on the "agent_name" field.
func And ¶
func And(predicates ...predicate.TokenUsage) predicate.TokenUsage
And groups predicates with the AND operator between them.
func CacheTokens ¶
func CacheTokens(v int64) predicate.TokenUsage
CacheTokens applies equality check predicate on the "cache_tokens" field. It's identical to CacheTokensEQ.
func CacheTokensEQ ¶
func CacheTokensEQ(v int64) predicate.TokenUsage
CacheTokensEQ applies the EQ predicate on the "cache_tokens" field.
func CacheTokensGT ¶
func CacheTokensGT(v int64) predicate.TokenUsage
CacheTokensGT applies the GT predicate on the "cache_tokens" field.
func CacheTokensGTE ¶
func CacheTokensGTE(v int64) predicate.TokenUsage
CacheTokensGTE applies the GTE predicate on the "cache_tokens" field.
func CacheTokensIn ¶
func CacheTokensIn(vs ...int64) predicate.TokenUsage
CacheTokensIn applies the In predicate on the "cache_tokens" field.
func CacheTokensLT ¶
func CacheTokensLT(v int64) predicate.TokenUsage
CacheTokensLT applies the LT predicate on the "cache_tokens" field.
func CacheTokensLTE ¶
func CacheTokensLTE(v int64) predicate.TokenUsage
CacheTokensLTE applies the LTE predicate on the "cache_tokens" field.
func CacheTokensNEQ ¶
func CacheTokensNEQ(v int64) predicate.TokenUsage
CacheTokensNEQ applies the NEQ predicate on the "cache_tokens" field.
func CacheTokensNotIn ¶
func CacheTokensNotIn(vs ...int64) predicate.TokenUsage
CacheTokensNotIn applies the NotIn predicate on the "cache_tokens" field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.TokenUsage
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.TokenUsage
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.TokenUsage
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.TokenUsage
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.TokenUsage
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.TokenUsage
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.TokenUsage
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.TokenUsage
IDNotIn applies the NotIn predicate on the ID field.
func InputTokens ¶
func InputTokens(v int64) predicate.TokenUsage
InputTokens applies equality check predicate on the "input_tokens" field. It's identical to InputTokensEQ.
func InputTokensEQ ¶
func InputTokensEQ(v int64) predicate.TokenUsage
InputTokensEQ applies the EQ predicate on the "input_tokens" field.
func InputTokensGT ¶
func InputTokensGT(v int64) predicate.TokenUsage
InputTokensGT applies the GT predicate on the "input_tokens" field.
func InputTokensGTE ¶
func InputTokensGTE(v int64) predicate.TokenUsage
InputTokensGTE applies the GTE predicate on the "input_tokens" field.
func InputTokensIn ¶
func InputTokensIn(vs ...int64) predicate.TokenUsage
InputTokensIn applies the In predicate on the "input_tokens" field.
func InputTokensLT ¶
func InputTokensLT(v int64) predicate.TokenUsage
InputTokensLT applies the LT predicate on the "input_tokens" field.
func InputTokensLTE ¶
func InputTokensLTE(v int64) predicate.TokenUsage
InputTokensLTE applies the LTE predicate on the "input_tokens" field.
func InputTokensNEQ ¶
func InputTokensNEQ(v int64) predicate.TokenUsage
InputTokensNEQ applies the NEQ predicate on the "input_tokens" field.
func InputTokensNotIn ¶
func InputTokensNotIn(vs ...int64) predicate.TokenUsage
InputTokensNotIn applies the NotIn predicate on the "input_tokens" field.
func Model ¶
func Model(v string) predicate.TokenUsage
Model applies equality check predicate on the "model" field. It's identical to ModelEQ.
func ModelContains ¶
func ModelContains(v string) predicate.TokenUsage
ModelContains applies the Contains predicate on the "model" field.
func ModelContainsFold ¶
func ModelContainsFold(v string) predicate.TokenUsage
ModelContainsFold applies the ContainsFold predicate on the "model" field.
func ModelEQ ¶
func ModelEQ(v string) predicate.TokenUsage
ModelEQ applies the EQ predicate on the "model" field.
func ModelEqualFold ¶
func ModelEqualFold(v string) predicate.TokenUsage
ModelEqualFold applies the EqualFold predicate on the "model" field.
func ModelGT ¶
func ModelGT(v string) predicate.TokenUsage
ModelGT applies the GT predicate on the "model" field.
func ModelGTE ¶
func ModelGTE(v string) predicate.TokenUsage
ModelGTE applies the GTE predicate on the "model" field.
func ModelHasPrefix ¶
func ModelHasPrefix(v string) predicate.TokenUsage
ModelHasPrefix applies the HasPrefix predicate on the "model" field.
func ModelHasSuffix ¶
func ModelHasSuffix(v string) predicate.TokenUsage
ModelHasSuffix applies the HasSuffix predicate on the "model" field.
func ModelIn ¶
func ModelIn(vs ...string) predicate.TokenUsage
ModelIn applies the In predicate on the "model" field.
func ModelLT ¶
func ModelLT(v string) predicate.TokenUsage
ModelLT applies the LT predicate on the "model" field.
func ModelLTE ¶
func ModelLTE(v string) predicate.TokenUsage
ModelLTE applies the LTE predicate on the "model" field.
func ModelNEQ ¶
func ModelNEQ(v string) predicate.TokenUsage
ModelNEQ applies the NEQ predicate on the "model" field.
func ModelNotIn ¶
func ModelNotIn(vs ...string) predicate.TokenUsage
ModelNotIn applies the NotIn predicate on the "model" field.
func Not ¶
func Not(p predicate.TokenUsage) predicate.TokenUsage
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.TokenUsage) predicate.TokenUsage
Or groups predicates with the OR operator between them.
func OutputTokens ¶
func OutputTokens(v int64) predicate.TokenUsage
OutputTokens applies equality check predicate on the "output_tokens" field. It's identical to OutputTokensEQ.
func OutputTokensEQ ¶
func OutputTokensEQ(v int64) predicate.TokenUsage
OutputTokensEQ applies the EQ predicate on the "output_tokens" field.
func OutputTokensGT ¶
func OutputTokensGT(v int64) predicate.TokenUsage
OutputTokensGT applies the GT predicate on the "output_tokens" field.
func OutputTokensGTE ¶
func OutputTokensGTE(v int64) predicate.TokenUsage
OutputTokensGTE applies the GTE predicate on the "output_tokens" field.
func OutputTokensIn ¶
func OutputTokensIn(vs ...int64) predicate.TokenUsage
OutputTokensIn applies the In predicate on the "output_tokens" field.
func OutputTokensLT ¶
func OutputTokensLT(v int64) predicate.TokenUsage
OutputTokensLT applies the LT predicate on the "output_tokens" field.
func OutputTokensLTE ¶
func OutputTokensLTE(v int64) predicate.TokenUsage
OutputTokensLTE applies the LTE predicate on the "output_tokens" field.
func OutputTokensNEQ ¶
func OutputTokensNEQ(v int64) predicate.TokenUsage
OutputTokensNEQ applies the NEQ predicate on the "output_tokens" field.
func OutputTokensNotIn ¶
func OutputTokensNotIn(vs ...int64) predicate.TokenUsage
OutputTokensNotIn applies the NotIn predicate on the "output_tokens" field.
func Provider ¶
func Provider(v string) predicate.TokenUsage
Provider applies equality check predicate on the "provider" field. It's identical to ProviderEQ.
func ProviderContains ¶
func ProviderContains(v string) predicate.TokenUsage
ProviderContains applies the Contains predicate on the "provider" field.
func ProviderContainsFold ¶
func ProviderContainsFold(v string) predicate.TokenUsage
ProviderContainsFold applies the ContainsFold predicate on the "provider" field.
func ProviderEQ ¶
func ProviderEQ(v string) predicate.TokenUsage
ProviderEQ applies the EQ predicate on the "provider" field.
func ProviderEqualFold ¶
func ProviderEqualFold(v string) predicate.TokenUsage
ProviderEqualFold applies the EqualFold predicate on the "provider" field.
func ProviderGT ¶
func ProviderGT(v string) predicate.TokenUsage
ProviderGT applies the GT predicate on the "provider" field.
func ProviderGTE ¶
func ProviderGTE(v string) predicate.TokenUsage
ProviderGTE applies the GTE predicate on the "provider" field.
func ProviderHasPrefix ¶
func ProviderHasPrefix(v string) predicate.TokenUsage
ProviderHasPrefix applies the HasPrefix predicate on the "provider" field.
func ProviderHasSuffix ¶
func ProviderHasSuffix(v string) predicate.TokenUsage
ProviderHasSuffix applies the HasSuffix predicate on the "provider" field.
func ProviderIn ¶
func ProviderIn(vs ...string) predicate.TokenUsage
ProviderIn applies the In predicate on the "provider" field.
func ProviderLT ¶
func ProviderLT(v string) predicate.TokenUsage
ProviderLT applies the LT predicate on the "provider" field.
func ProviderLTE ¶
func ProviderLTE(v string) predicate.TokenUsage
ProviderLTE applies the LTE predicate on the "provider" field.
func ProviderNEQ ¶
func ProviderNEQ(v string) predicate.TokenUsage
ProviderNEQ applies the NEQ predicate on the "provider" field.
func ProviderNotIn ¶
func ProviderNotIn(vs ...string) predicate.TokenUsage
ProviderNotIn applies the NotIn predicate on the "provider" field.
func SessionKey ¶
func SessionKey(v string) predicate.TokenUsage
SessionKey applies equality check predicate on the "session_key" field. It's identical to SessionKeyEQ.
func SessionKeyContains ¶
func SessionKeyContains(v string) predicate.TokenUsage
SessionKeyContains applies the Contains predicate on the "session_key" field.
func SessionKeyContainsFold ¶
func SessionKeyContainsFold(v string) predicate.TokenUsage
SessionKeyContainsFold applies the ContainsFold predicate on the "session_key" field.
func SessionKeyEQ ¶
func SessionKeyEQ(v string) predicate.TokenUsage
SessionKeyEQ applies the EQ predicate on the "session_key" field.
func SessionKeyEqualFold ¶
func SessionKeyEqualFold(v string) predicate.TokenUsage
SessionKeyEqualFold applies the EqualFold predicate on the "session_key" field.
func SessionKeyGT ¶
func SessionKeyGT(v string) predicate.TokenUsage
SessionKeyGT applies the GT predicate on the "session_key" field.
func SessionKeyGTE ¶
func SessionKeyGTE(v string) predicate.TokenUsage
SessionKeyGTE applies the GTE predicate on the "session_key" field.
func SessionKeyHasPrefix ¶
func SessionKeyHasPrefix(v string) predicate.TokenUsage
SessionKeyHasPrefix applies the HasPrefix predicate on the "session_key" field.
func SessionKeyHasSuffix ¶
func SessionKeyHasSuffix(v string) predicate.TokenUsage
SessionKeyHasSuffix applies the HasSuffix predicate on the "session_key" field.
func SessionKeyIn ¶
func SessionKeyIn(vs ...string) predicate.TokenUsage
SessionKeyIn applies the In predicate on the "session_key" field.
func SessionKeyIsNil ¶
func SessionKeyIsNil() predicate.TokenUsage
SessionKeyIsNil applies the IsNil predicate on the "session_key" field.
func SessionKeyLT ¶
func SessionKeyLT(v string) predicate.TokenUsage
SessionKeyLT applies the LT predicate on the "session_key" field.
func SessionKeyLTE ¶
func SessionKeyLTE(v string) predicate.TokenUsage
SessionKeyLTE applies the LTE predicate on the "session_key" field.
func SessionKeyNEQ ¶
func SessionKeyNEQ(v string) predicate.TokenUsage
SessionKeyNEQ applies the NEQ predicate on the "session_key" field.
func SessionKeyNotIn ¶
func SessionKeyNotIn(vs ...string) predicate.TokenUsage
SessionKeyNotIn applies the NotIn predicate on the "session_key" field.
func SessionKeyNotNil ¶
func SessionKeyNotNil() predicate.TokenUsage
SessionKeyNotNil applies the NotNil predicate on the "session_key" field.
func Timestamp ¶
func Timestamp(v time.Time) predicate.TokenUsage
Timestamp applies equality check predicate on the "timestamp" field. It's identical to TimestampEQ.
func TimestampEQ ¶
func TimestampEQ(v time.Time) predicate.TokenUsage
TimestampEQ applies the EQ predicate on the "timestamp" field.
func TimestampGT ¶
func TimestampGT(v time.Time) predicate.TokenUsage
TimestampGT applies the GT predicate on the "timestamp" field.
func TimestampGTE ¶
func TimestampGTE(v time.Time) predicate.TokenUsage
TimestampGTE applies the GTE predicate on the "timestamp" field.
func TimestampIn ¶
func TimestampIn(vs ...time.Time) predicate.TokenUsage
TimestampIn applies the In predicate on the "timestamp" field.
func TimestampLT ¶
func TimestampLT(v time.Time) predicate.TokenUsage
TimestampLT applies the LT predicate on the "timestamp" field.
func TimestampLTE ¶
func TimestampLTE(v time.Time) predicate.TokenUsage
TimestampLTE applies the LTE predicate on the "timestamp" field.
func TimestampNEQ ¶
func TimestampNEQ(v time.Time) predicate.TokenUsage
TimestampNEQ applies the NEQ predicate on the "timestamp" field.
func TimestampNotIn ¶
func TimestampNotIn(vs ...time.Time) predicate.TokenUsage
TimestampNotIn applies the NotIn predicate on the "timestamp" field.
func TotalTokens ¶
func TotalTokens(v int64) predicate.TokenUsage
TotalTokens applies equality check predicate on the "total_tokens" field. It's identical to TotalTokensEQ.
func TotalTokensEQ ¶
func TotalTokensEQ(v int64) predicate.TokenUsage
TotalTokensEQ applies the EQ predicate on the "total_tokens" field.
func TotalTokensGT ¶
func TotalTokensGT(v int64) predicate.TokenUsage
TotalTokensGT applies the GT predicate on the "total_tokens" field.
func TotalTokensGTE ¶
func TotalTokensGTE(v int64) predicate.TokenUsage
TotalTokensGTE applies the GTE predicate on the "total_tokens" field.
func TotalTokensIn ¶
func TotalTokensIn(vs ...int64) predicate.TokenUsage
TotalTokensIn applies the In predicate on the "total_tokens" field.
func TotalTokensLT ¶
func TotalTokensLT(v int64) predicate.TokenUsage
TotalTokensLT applies the LT predicate on the "total_tokens" field.
func TotalTokensLTE ¶
func TotalTokensLTE(v int64) predicate.TokenUsage
TotalTokensLTE applies the LTE predicate on the "total_tokens" field.
func TotalTokensNEQ ¶
func TotalTokensNEQ(v int64) predicate.TokenUsage
TotalTokensNEQ applies the NEQ predicate on the "total_tokens" field.
func TotalTokensNotIn ¶
func TotalTokensNotIn(vs ...int64) predicate.TokenUsage
TotalTokensNotIn applies the NotIn predicate on the "total_tokens" 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 TokenUsage queries.
func ByAgentName ¶
func ByAgentName(opts ...sql.OrderTermOption) OrderOption
ByAgentName orders the results by the agent_name field.
func ByCacheTokens ¶
func ByCacheTokens(opts ...sql.OrderTermOption) OrderOption
ByCacheTokens orders the results by the cache_tokens 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 ByModel ¶
func ByModel(opts ...sql.OrderTermOption) OrderOption
ByModel orders the results by the model field.
func ByOutputTokens ¶
func ByOutputTokens(opts ...sql.OrderTermOption) OrderOption
ByOutputTokens orders the results by the output_tokens field.
func ByProvider ¶
func ByProvider(opts ...sql.OrderTermOption) OrderOption
ByProvider orders the results by the provider field.
func BySessionKey ¶
func BySessionKey(opts ...sql.OrderTermOption) OrderOption
BySessionKey orders the results by the session_key field.
func ByTimestamp ¶
func ByTimestamp(opts ...sql.OrderTermOption) OrderOption
ByTimestamp orders the results by the timestamp field.
func ByTotalTokens ¶
func ByTotalTokens(opts ...sql.OrderTermOption) OrderOption
ByTotalTokens orders the results by the total_tokens field.