Documentation
¶
Index ¶
- Constants
- Variables
- func Alias(v string) predicate.Model
- func AliasContains(v string) predicate.Model
- func AliasContainsFold(v string) predicate.Model
- func AliasEQ(v string) predicate.Model
- func AliasEqualFold(v string) predicate.Model
- func AliasGT(v string) predicate.Model
- func AliasGTE(v string) predicate.Model
- func AliasHasPrefix(v string) predicate.Model
- func AliasHasSuffix(v string) predicate.Model
- func AliasIn(vs ...string) predicate.Model
- func AliasIsNil() predicate.Model
- func AliasLT(v string) predicate.Model
- func AliasLTE(v string) predicate.Model
- func AliasNEQ(v string) predicate.Model
- func AliasNotIn(vs ...string) predicate.Model
- func AliasNotNil() predicate.Model
- func And(predicates ...predicate.Model) predicate.Model
- func CreatedAt(v time.Time) predicate.Model
- func CreatedAtEQ(v time.Time) predicate.Model
- func CreatedAtGT(v time.Time) predicate.Model
- func CreatedAtGTE(v time.Time) predicate.Model
- func CreatedAtIn(vs ...time.Time) predicate.Model
- func CreatedAtIsNil() predicate.Model
- func CreatedAtLT(v time.Time) predicate.Model
- func CreatedAtLTE(v time.Time) predicate.Model
- func CreatedAtNEQ(v time.Time) predicate.Model
- func CreatedAtNotIn(vs ...time.Time) predicate.Model
- func CreatedAtNotNil() predicate.Model
- func Default(v bool) predicate.Model
- func DefaultEQ(v bool) predicate.Model
- func DefaultNEQ(v bool) predicate.Model
- func HasProvider() predicate.Model
- func HasProviderWith(preds ...predicate.Provider) predicate.Model
- func ID(id int) predicate.Model
- func IDEQ(id int) predicate.Model
- func IDGT(id int) predicate.Model
- func IDGTE(id int) predicate.Model
- func IDIn(ids ...int) predicate.Model
- func IDLT(id int) predicate.Model
- func IDLTE(id int) predicate.Model
- func IDNEQ(id int) predicate.Model
- func IDNotIn(ids ...int) predicate.Model
- func Image(v bool) predicate.Model
- func ImageEQ(v bool) predicate.Model
- func ImageNEQ(v bool) predicate.Model
- func MaxTokens(v int) predicate.Model
- func MaxTokensEQ(v int) predicate.Model
- func MaxTokensGT(v int) predicate.Model
- func MaxTokensGTE(v int) predicate.Model
- func MaxTokensIn(vs ...int) predicate.Model
- func MaxTokensIsNil() predicate.Model
- func MaxTokensLT(v int) predicate.Model
- func MaxTokensLTE(v int) predicate.Model
- func MaxTokensNEQ(v int) predicate.Model
- func MaxTokensNotIn(vs ...int) predicate.Model
- func MaxTokensNotNil() predicate.Model
- func Model(v string) predicate.Model
- func ModelContains(v string) predicate.Model
- func ModelContainsFold(v string) predicate.Model
- func ModelEQ(v string) predicate.Model
- func ModelEqualFold(v string) predicate.Model
- func ModelGT(v string) predicate.Model
- func ModelGTE(v string) predicate.Model
- func ModelHasPrefix(v string) predicate.Model
- func ModelHasSuffix(v string) predicate.Model
- func ModelIn(vs ...string) predicate.Model
- func ModelLT(v string) predicate.Model
- func ModelLTE(v string) predicate.Model
- func ModelNEQ(v string) predicate.Model
- func ModelNotIn(vs ...string) predicate.Model
- func Not(p predicate.Model) predicate.Model
- func Or(predicates ...predicate.Model) predicate.Model
- func Rpm(v int) predicate.Model
- func RpmEQ(v int) predicate.Model
- func RpmGT(v int) predicate.Model
- func RpmGTE(v int) predicate.Model
- func RpmIn(vs ...int) predicate.Model
- func RpmIsNil() predicate.Model
- func RpmLT(v int) predicate.Model
- func RpmLTE(v int) predicate.Model
- func RpmNEQ(v int) predicate.Model
- func RpmNotIn(vs ...int) predicate.Model
- func RpmNotNil() predicate.Model
- func UpdatedAt(v time.Time) predicate.Model
- func UpdatedAtEQ(v time.Time) predicate.Model
- func UpdatedAtGT(v time.Time) predicate.Model
- func UpdatedAtGTE(v time.Time) predicate.Model
- func UpdatedAtIn(vs ...time.Time) predicate.Model
- func UpdatedAtIsNil() predicate.Model
- func UpdatedAtLT(v time.Time) predicate.Model
- func UpdatedAtLTE(v time.Time) predicate.Model
- func UpdatedAtNEQ(v time.Time) predicate.Model
- func UpdatedAtNotIn(vs ...time.Time) predicate.Model
- func UpdatedAtNotNil() predicate.Model
- func ValidColumn(column string) bool
- type OrderOption
- func ByAlias(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDefault(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByImage(opts ...sql.OrderTermOption) OrderOption
- func ByMaxTokens(opts ...sql.OrderTermOption) OrderOption
- func ByModel(opts ...sql.OrderTermOption) OrderOption
- func ByProviderField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByRpm(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the model type in the database. Label = "model" // FieldID holds the string denoting the id field in the database. FieldID = "id" // 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" // FieldModel holds the string denoting the model field in the database. FieldModel = "model" // FieldAlias holds the string denoting the alias field in the database. FieldAlias = "alias" // FieldRpm holds the string denoting the rpm field in the database. FieldRpm = "rpm" // FieldMaxTokens holds the string denoting the max_tokens field in the database. FieldMaxTokens = "max_tokens" // FieldDefault holds the string denoting the default field in the database. FieldDefault = "default" // FieldImage holds the string denoting the image field in the database. FieldImage = "image" // EdgeProvider holds the string denoting the provider edge name in mutations. EdgeProvider = "provider" // Table holds the table name of the model in the database. Table = "models" // ProviderTable is the table that holds the provider relation/edge. ProviderTable = "models" // ProviderInverseTable is the table name for the Provider entity. // It exists in this package in order to avoid circular dependency with the "provider" package. ProviderInverseTable = "providers" // ProviderColumn is the table column denoting the provider relation/edge. ProviderColumn = "provider_models" )
Variables ¶
var ( // 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 // ModelValidator is a validator for the "model" field. It is called by the builders before save. ModelValidator func(string) error // DefaultDefault holds the default value on creation for the "default" field. DefaultDefault bool // DefaultImage holds the default value on creation for the "image" field. DefaultImage bool )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldModel, FieldAlias, FieldRpm, FieldMaxTokens, FieldDefault, FieldImage, }
Columns holds all SQL columns for model fields.
var ForeignKeys = []string{
"provider_models",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "models" table and are not defined as standalone fields in the schema.
Functions ¶
func Alias ¶
Alias applies equality check predicate on the "alias" field. It's identical to AliasEQ.
func AliasContains ¶
AliasContains applies the Contains predicate on the "alias" field.
func AliasContainsFold ¶
AliasContainsFold applies the ContainsFold predicate on the "alias" field.
func AliasEqualFold ¶
AliasEqualFold applies the EqualFold predicate on the "alias" field.
func AliasHasPrefix ¶
AliasHasPrefix applies the HasPrefix predicate on the "alias" field.
func AliasHasSuffix ¶
AliasHasSuffix applies the HasSuffix predicate on the "alias" field.
func AliasIsNil ¶
AliasIsNil applies the IsNil predicate on the "alias" field.
func AliasNotIn ¶
AliasNotIn applies the NotIn predicate on the "alias" field.
func AliasNotNil ¶
AliasNotNil applies the NotNil predicate on the "alias" field.
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 CreatedAtIsNil ¶
CreatedAtIsNil applies the IsNil 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 CreatedAtNotNil ¶
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func Default ¶
Default applies equality check predicate on the "default" field. It's identical to DefaultEQ.
func DefaultNEQ ¶
DefaultNEQ applies the NEQ predicate on the "default" field.
func HasProvider ¶
HasProvider applies the HasEdge predicate on the "provider" edge.
func HasProviderWith ¶
HasProviderWith applies the HasEdge predicate on the "provider" edge with a given conditions (other predicates).
func Image ¶
Image applies equality check predicate on the "image" field. It's identical to ImageEQ.
func MaxTokens ¶
MaxTokens applies equality check predicate on the "max_tokens" field. It's identical to MaxTokensEQ.
func MaxTokensEQ ¶
MaxTokensEQ applies the EQ predicate on the "max_tokens" field.
func MaxTokensGT ¶
MaxTokensGT applies the GT predicate on the "max_tokens" field.
func MaxTokensGTE ¶
MaxTokensGTE applies the GTE predicate on the "max_tokens" field.
func MaxTokensIn ¶
MaxTokensIn applies the In predicate on the "max_tokens" field.
func MaxTokensIsNil ¶
MaxTokensIsNil applies the IsNil predicate on the "max_tokens" field.
func MaxTokensLT ¶
MaxTokensLT applies the LT predicate on the "max_tokens" field.
func MaxTokensLTE ¶
MaxTokensLTE applies the LTE predicate on the "max_tokens" field.
func MaxTokensNEQ ¶
MaxTokensNEQ applies the NEQ predicate on the "max_tokens" field.
func MaxTokensNotIn ¶
MaxTokensNotIn applies the NotIn predicate on the "max_tokens" field.
func MaxTokensNotNil ¶
MaxTokensNotNil applies the NotNil predicate on the "max_tokens" field.
func Model ¶
Model applies equality check predicate on the "model" field. It's identical to ModelEQ.
func ModelContains ¶
ModelContains applies the Contains predicate on the "model" field.
func ModelContainsFold ¶
ModelContainsFold applies the ContainsFold predicate on the "model" field.
func ModelEqualFold ¶
ModelEqualFold applies the EqualFold predicate on the "model" field.
func ModelHasPrefix ¶
ModelHasPrefix applies the HasPrefix predicate on the "model" field.
func ModelHasSuffix ¶
ModelHasSuffix applies the HasSuffix predicate on the "model" field.
func ModelNotIn ¶
ModelNotIn applies the NotIn predicate on the "model" 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 UpdatedAtIsNil ¶
UpdatedAtIsNil applies the IsNil 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 UpdatedAtNotNil ¶
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" 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 Model queries.
func ByAlias ¶
func ByAlias(opts ...sql.OrderTermOption) OrderOption
ByAlias orders the results by the alias field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDefault ¶
func ByDefault(opts ...sql.OrderTermOption) OrderOption
ByDefault orders the results by the default field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByImage ¶
func ByImage(opts ...sql.OrderTermOption) OrderOption
ByImage orders the results by the image field.
func ByMaxTokens ¶
func ByMaxTokens(opts ...sql.OrderTermOption) OrderOption
ByMaxTokens orders the results by the max_tokens field.
func ByModel ¶
func ByModel(opts ...sql.OrderTermOption) OrderOption
ByModel orders the results by the model field.
func ByProviderField ¶
func ByProviderField(field string, opts ...sql.OrderTermOption) OrderOption
ByProviderField orders the results by provider field.
func ByRpm ¶
func ByRpm(opts ...sql.OrderTermOption) OrderOption
ByRpm orders the results by the rpm field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.