Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ModelProvider) predicate.ModelProvider
- func CreateTime(v time.Time) predicate.ModelProvider
- func CreateTimeEQ(v time.Time) predicate.ModelProvider
- func CreateTimeGT(v time.Time) predicate.ModelProvider
- func CreateTimeGTE(v time.Time) predicate.ModelProvider
- func CreateTimeIn(vs ...time.Time) predicate.ModelProvider
- func CreateTimeLT(v time.Time) predicate.ModelProvider
- func CreateTimeLTE(v time.Time) predicate.ModelProvider
- func CreateTimeNEQ(v time.Time) predicate.ModelProvider
- func CreateTimeNotIn(vs ...time.Time) predicate.ModelProvider
- func Enabled(v bool) predicate.ModelProvider
- func EnabledEQ(v bool) predicate.ModelProvider
- func EnabledNEQ(v bool) predicate.ModelProvider
- func HasModels() predicate.ModelProvider
- func HasModelsWith(preds ...predicate.Model) predicate.ModelProvider
- func ID(id uuid.UUID) predicate.ModelProvider
- func IDEQ(id uuid.UUID) predicate.ModelProvider
- func IDGT(id uuid.UUID) predicate.ModelProvider
- func IDGTE(id uuid.UUID) predicate.ModelProvider
- func IDIn(ids ...uuid.UUID) predicate.ModelProvider
- func IDLT(id uuid.UUID) predicate.ModelProvider
- func IDLTE(id uuid.UUID) predicate.ModelProvider
- func IDNEQ(id uuid.UUID) predicate.ModelProvider
- func IDNotIn(ids ...uuid.UUID) predicate.ModelProvider
- func Name(v string) predicate.ModelProvider
- func NameContains(v string) predicate.ModelProvider
- func NameContainsFold(v string) predicate.ModelProvider
- func NameEQ(v string) predicate.ModelProvider
- func NameEqualFold(v string) predicate.ModelProvider
- func NameGT(v string) predicate.ModelProvider
- func NameGTE(v string) predicate.ModelProvider
- func NameHasPrefix(v string) predicate.ModelProvider
- func NameHasSuffix(v string) predicate.ModelProvider
- func NameIn(vs ...string) predicate.ModelProvider
- func NameLT(v string) predicate.ModelProvider
- func NameLTE(v string) predicate.ModelProvider
- func NameNEQ(v string) predicate.ModelProvider
- func NameNotIn(vs ...string) predicate.ModelProvider
- func Not(p predicate.ModelProvider) predicate.ModelProvider
- func Or(predicates ...predicate.ModelProvider) predicate.ModelProvider
- func ProviderTypeEQ(v types.ModelProviderType) predicate.ModelProvider
- func ProviderTypeIn(vs ...types.ModelProviderType) predicate.ModelProvider
- func ProviderTypeNEQ(v types.ModelProviderType) predicate.ModelProvider
- func ProviderTypeNotIn(vs ...types.ModelProviderType) predicate.ModelProvider
- func ProviderTypeValidator(pt types.ModelProviderType) error
- func Secret(v []byte) predicate.ModelProvider
- func SecretEQ(v []byte) predicate.ModelProvider
- func SecretGT(v []byte) predicate.ModelProvider
- func SecretGTE(v []byte) predicate.ModelProvider
- func SecretIn(vs ...[]byte) predicate.ModelProvider
- func SecretLT(v []byte) predicate.ModelProvider
- func SecretLTE(v []byte) predicate.ModelProvider
- func SecretNEQ(v []byte) predicate.ModelProvider
- func SecretNotIn(vs ...[]byte) predicate.ModelProvider
- func URL(v string) predicate.ModelProvider
- func URLContains(v string) predicate.ModelProvider
- func URLContainsFold(v string) predicate.ModelProvider
- func URLEQ(v string) predicate.ModelProvider
- func URLEqualFold(v string) predicate.ModelProvider
- func URLGT(v string) predicate.ModelProvider
- func URLGTE(v string) predicate.ModelProvider
- func URLHasPrefix(v string) predicate.ModelProvider
- func URLHasSuffix(v string) predicate.ModelProvider
- func URLIn(vs ...string) predicate.ModelProvider
- func URLIsNil() predicate.ModelProvider
- func URLLT(v string) predicate.ModelProvider
- func URLLTE(v string) predicate.ModelProvider
- func URLNEQ(v string) predicate.ModelProvider
- func URLNotIn(vs ...string) predicate.ModelProvider
- func URLNotNil() predicate.ModelProvider
- func UpdateTime(v time.Time) predicate.ModelProvider
- func UpdateTimeEQ(v time.Time) predicate.ModelProvider
- func UpdateTimeGT(v time.Time) predicate.ModelProvider
- func UpdateTimeGTE(v time.Time) predicate.ModelProvider
- func UpdateTimeIn(vs ...time.Time) predicate.ModelProvider
- func UpdateTimeLT(v time.Time) predicate.ModelProvider
- func UpdateTimeLTE(v time.Time) predicate.ModelProvider
- func UpdateTimeNEQ(v time.Time) predicate.ModelProvider
- func UpdateTimeNotIn(vs ...time.Time) predicate.ModelProvider
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByEnabled(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByModels(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByModelsCount(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByProviderType(opts ...sql.OrderTermOption) OrderOption
- func ByURL(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the modelprovider type in the database. Label = "model_provider" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldProviderType holds the string denoting the provider_type field in the database. FieldProviderType = "provider_type" // FieldURL holds the string denoting the url field in the database. FieldURL = "url" // FieldSecret holds the string denoting the secret field in the database. FieldSecret = "secret" // FieldEnabled holds the string denoting the enabled field in the database. FieldEnabled = "enabled" // EdgeModels holds the string denoting the models edge name in mutations. EdgeModels = "models" // Table holds the table name of the modelprovider in the database. Table = "model_providers" // ModelsTable is the table that holds the models relation/edge. ModelsTable = "models" // ModelsInverseTable is the table name for the Model entity. // It exists in this package in order to avoid circular dependency with the "model" package. ModelsInverseTable = "models" // ModelsColumn is the table column denoting the models relation/edge. ModelsColumn = "model_provider_id" )
Variables ¶
var ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // SecretValidator is a validator for the "secret" field. It is called by the builders before save. SecretValidator func([]byte) error // DefaultEnabled holds the default value on creation for the "enabled" field. DefaultEnabled bool // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldName, FieldProviderType, FieldURL, FieldSecret, FieldEnabled, }
Columns holds all SQL columns for modelprovider fields.
Functions ¶
func And ¶
func And(predicates ...predicate.ModelProvider) predicate.ModelProvider
And groups predicates with the AND operator between them.
func CreateTime ¶
func CreateTime(v time.Time) predicate.ModelProvider
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
func CreateTimeEQ(v time.Time) predicate.ModelProvider
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
func CreateTimeGT(v time.Time) predicate.ModelProvider
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
func CreateTimeGTE(v time.Time) predicate.ModelProvider
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
func CreateTimeIn(vs ...time.Time) predicate.ModelProvider
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
func CreateTimeLT(v time.Time) predicate.ModelProvider
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
func CreateTimeLTE(v time.Time) predicate.ModelProvider
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
func CreateTimeNEQ(v time.Time) predicate.ModelProvider
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
func CreateTimeNotIn(vs ...time.Time) predicate.ModelProvider
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func Enabled ¶
func Enabled(v bool) predicate.ModelProvider
Enabled applies equality check predicate on the "enabled" field. It's identical to EnabledEQ.
func EnabledEQ ¶
func EnabledEQ(v bool) predicate.ModelProvider
EnabledEQ applies the EQ predicate on the "enabled" field.
func EnabledNEQ ¶
func EnabledNEQ(v bool) predicate.ModelProvider
EnabledNEQ applies the NEQ predicate on the "enabled" field.
func HasModels ¶
func HasModels() predicate.ModelProvider
HasModels applies the HasEdge predicate on the "models" edge.
func HasModelsWith ¶
func HasModelsWith(preds ...predicate.Model) predicate.ModelProvider
HasModelsWith applies the HasEdge predicate on the "models" edge with a given conditions (other predicates).
func ID ¶
func ID(id uuid.UUID) predicate.ModelProvider
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.ModelProvider
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.ModelProvider
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.ModelProvider
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.ModelProvider
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.ModelProvider
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.ModelProvider
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.ModelProvider
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.ModelProvider
IDNotIn applies the NotIn predicate on the ID field.
func Name ¶
func Name(v string) predicate.ModelProvider
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.ModelProvider
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.ModelProvider
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.ModelProvider
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.ModelProvider
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.ModelProvider
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.ModelProvider
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.ModelProvider
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.ModelProvider
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.ModelProvider
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.ModelProvider
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.ModelProvider
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.ModelProvider
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.ModelProvider
NameNotIn applies the NotIn predicate on the "name" field.
func Not ¶
func Not(p predicate.ModelProvider) predicate.ModelProvider
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.ModelProvider) predicate.ModelProvider
Or groups predicates with the OR operator between them.
func ProviderTypeEQ ¶
func ProviderTypeEQ(v types.ModelProviderType) predicate.ModelProvider
ProviderTypeEQ applies the EQ predicate on the "provider_type" field.
func ProviderTypeIn ¶
func ProviderTypeIn(vs ...types.ModelProviderType) predicate.ModelProvider
ProviderTypeIn applies the In predicate on the "provider_type" field.
func ProviderTypeNEQ ¶
func ProviderTypeNEQ(v types.ModelProviderType) predicate.ModelProvider
ProviderTypeNEQ applies the NEQ predicate on the "provider_type" field.
func ProviderTypeNotIn ¶
func ProviderTypeNotIn(vs ...types.ModelProviderType) predicate.ModelProvider
ProviderTypeNotIn applies the NotIn predicate on the "provider_type" field.
func ProviderTypeValidator ¶
func ProviderTypeValidator(pt types.ModelProviderType) error
ProviderTypeValidator is a validator for the "provider_type" field enum values. It is called by the builders before save.
func Secret ¶
func Secret(v []byte) predicate.ModelProvider
Secret applies equality check predicate on the "secret" field. It's identical to SecretEQ.
func SecretEQ ¶
func SecretEQ(v []byte) predicate.ModelProvider
SecretEQ applies the EQ predicate on the "secret" field.
func SecretGT ¶
func SecretGT(v []byte) predicate.ModelProvider
SecretGT applies the GT predicate on the "secret" field.
func SecretGTE ¶
func SecretGTE(v []byte) predicate.ModelProvider
SecretGTE applies the GTE predicate on the "secret" field.
func SecretIn ¶
func SecretIn(vs ...[]byte) predicate.ModelProvider
SecretIn applies the In predicate on the "secret" field.
func SecretLT ¶
func SecretLT(v []byte) predicate.ModelProvider
SecretLT applies the LT predicate on the "secret" field.
func SecretLTE ¶
func SecretLTE(v []byte) predicate.ModelProvider
SecretLTE applies the LTE predicate on the "secret" field.
func SecretNEQ ¶
func SecretNEQ(v []byte) predicate.ModelProvider
SecretNEQ applies the NEQ predicate on the "secret" field.
func SecretNotIn ¶
func SecretNotIn(vs ...[]byte) predicate.ModelProvider
SecretNotIn applies the NotIn predicate on the "secret" field.
func URL ¶
func URL(v string) predicate.ModelProvider
URL applies equality check predicate on the "url" field. It's identical to URLEQ.
func URLContains ¶
func URLContains(v string) predicate.ModelProvider
URLContains applies the Contains predicate on the "url" field.
func URLContainsFold ¶
func URLContainsFold(v string) predicate.ModelProvider
URLContainsFold applies the ContainsFold predicate on the "url" field.
func URLEQ ¶
func URLEQ(v string) predicate.ModelProvider
URLEQ applies the EQ predicate on the "url" field.
func URLEqualFold ¶
func URLEqualFold(v string) predicate.ModelProvider
URLEqualFold applies the EqualFold predicate on the "url" field.
func URLGT ¶
func URLGT(v string) predicate.ModelProvider
URLGT applies the GT predicate on the "url" field.
func URLGTE ¶
func URLGTE(v string) predicate.ModelProvider
URLGTE applies the GTE predicate on the "url" field.
func URLHasPrefix ¶
func URLHasPrefix(v string) predicate.ModelProvider
URLHasPrefix applies the HasPrefix predicate on the "url" field.
func URLHasSuffix ¶
func URLHasSuffix(v string) predicate.ModelProvider
URLHasSuffix applies the HasSuffix predicate on the "url" field.
func URLIn ¶
func URLIn(vs ...string) predicate.ModelProvider
URLIn applies the In predicate on the "url" field.
func URLIsNil ¶
func URLIsNil() predicate.ModelProvider
URLIsNil applies the IsNil predicate on the "url" field.
func URLLT ¶
func URLLT(v string) predicate.ModelProvider
URLLT applies the LT predicate on the "url" field.
func URLLTE ¶
func URLLTE(v string) predicate.ModelProvider
URLLTE applies the LTE predicate on the "url" field.
func URLNEQ ¶
func URLNEQ(v string) predicate.ModelProvider
URLNEQ applies the NEQ predicate on the "url" field.
func URLNotIn ¶
func URLNotIn(vs ...string) predicate.ModelProvider
URLNotIn applies the NotIn predicate on the "url" field.
func URLNotNil ¶
func URLNotNil() predicate.ModelProvider
URLNotNil applies the NotNil predicate on the "url" field.
func UpdateTime ¶
func UpdateTime(v time.Time) predicate.ModelProvider
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
func UpdateTimeEQ(v time.Time) predicate.ModelProvider
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
func UpdateTimeGT(v time.Time) predicate.ModelProvider
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
func UpdateTimeGTE(v time.Time) predicate.ModelProvider
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
func UpdateTimeIn(vs ...time.Time) predicate.ModelProvider
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
func UpdateTimeLT(v time.Time) predicate.ModelProvider
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
func UpdateTimeLTE(v time.Time) predicate.ModelProvider
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
func UpdateTimeNEQ(v time.Time) predicate.ModelProvider
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
func UpdateTimeNotIn(vs ...time.Time) predicate.ModelProvider
UpdateTimeNotIn applies the NotIn predicate on the "update_time" 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 ModelProvider queries.
func ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByEnabled ¶
func ByEnabled(opts ...sql.OrderTermOption) OrderOption
ByEnabled orders the results by the enabled field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByModels ¶
func ByModels(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByModels orders the results by models terms.
func ByModelsCount ¶
func ByModelsCount(opts ...sql.OrderTermOption) OrderOption
ByModelsCount orders the results by models count.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByProviderType ¶
func ByProviderType(opts ...sql.OrderTermOption) OrderOption
ByProviderType orders the results by the provider_type field.
func ByURL ¶
func ByURL(opts ...sql.OrderTermOption) OrderOption
ByURL orders the results by the url field.
func ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.