Documentation
¶
Index ¶
- Constants
- Variables
- func APIBase(v string) predicate.ModelProvider
- func APIBaseContains(v string) predicate.ModelProvider
- func APIBaseContainsFold(v string) predicate.ModelProvider
- func APIBaseEQ(v string) predicate.ModelProvider
- func APIBaseEqualFold(v string) predicate.ModelProvider
- func APIBaseGT(v string) predicate.ModelProvider
- func APIBaseGTE(v string) predicate.ModelProvider
- func APIBaseHasPrefix(v string) predicate.ModelProvider
- func APIBaseHasSuffix(v string) predicate.ModelProvider
- func APIBaseIn(vs ...string) predicate.ModelProvider
- func APIBaseLT(v string) predicate.ModelProvider
- func APIBaseLTE(v string) predicate.ModelProvider
- func APIBaseNEQ(v string) predicate.ModelProvider
- func APIBaseNotIn(vs ...string) predicate.ModelProvider
- func And(predicates ...predicate.ModelProvider) predicate.ModelProvider
- func CreatedAt(v time.Time) predicate.ModelProvider
- func CreatedAtEQ(v time.Time) predicate.ModelProvider
- func CreatedAtGT(v time.Time) predicate.ModelProvider
- func CreatedAtGTE(v time.Time) predicate.ModelProvider
- func CreatedAtIn(vs ...time.Time) predicate.ModelProvider
- func CreatedAtLT(v time.Time) predicate.ModelProvider
- func CreatedAtLTE(v time.Time) predicate.ModelProvider
- func CreatedAtNEQ(v time.Time) predicate.ModelProvider
- func CreatedAtNotIn(vs ...time.Time) predicate.ModelProvider
- func HasModels() predicate.ModelProvider
- func HasModelsWith(preds ...predicate.ModelProviderModel) predicate.ModelProvider
- func ID(id string) predicate.ModelProvider
- func IDContainsFold(id string) predicate.ModelProvider
- func IDEQ(id string) predicate.ModelProvider
- func IDEqualFold(id string) predicate.ModelProvider
- func IDGT(id string) predicate.ModelProvider
- func IDGTE(id string) predicate.ModelProvider
- func IDIn(ids ...string) predicate.ModelProvider
- func IDLT(id string) predicate.ModelProvider
- func IDLTE(id string) predicate.ModelProvider
- func IDNEQ(id string) predicate.ModelProvider
- func IDNotIn(ids ...string) 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 Priority(v int) predicate.ModelProvider
- func PriorityEQ(v int) predicate.ModelProvider
- func PriorityGT(v int) predicate.ModelProvider
- func PriorityGTE(v int) predicate.ModelProvider
- func PriorityIn(vs ...int) predicate.ModelProvider
- func PriorityLT(v int) predicate.ModelProvider
- func PriorityLTE(v int) predicate.ModelProvider
- func PriorityNEQ(v int) predicate.ModelProvider
- func PriorityNotIn(vs ...int) predicate.ModelProvider
- func UpdatedAt(v time.Time) predicate.ModelProvider
- func UpdatedAtEQ(v time.Time) predicate.ModelProvider
- func UpdatedAtGT(v time.Time) predicate.ModelProvider
- func UpdatedAtGTE(v time.Time) predicate.ModelProvider
- func UpdatedAtIn(vs ...time.Time) predicate.ModelProvider
- func UpdatedAtLT(v time.Time) predicate.ModelProvider
- func UpdatedAtLTE(v time.Time) predicate.ModelProvider
- func UpdatedAtNEQ(v time.Time) predicate.ModelProvider
- func UpdatedAtNotIn(vs ...time.Time) predicate.ModelProvider
- func ValidColumn(column string) bool
- type OrderOption
- func ByAPIBase(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(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 ByPriority(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(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" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldAPIBase holds the string denoting the api_base field in the database. FieldAPIBase = "api_base" // FieldPriority holds the string denoting the priority field in the database. FieldPriority = "priority" // 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" // 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 = "model_provider_models" // ModelsInverseTable is the table name for the ModelProviderModel entity. // It exists in this package in order to avoid circular dependency with the "modelprovidermodel" package. ModelsInverseTable = "model_provider_models" // ModelsColumn is the table column denoting the models relation/edge. ModelsColumn = "provider_id" )
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // APIBaseValidator is a validator for the "api_base" field. It is called by the builders before save. APIBaseValidator func(string) error // DefaultPriority holds the default value on creation for the "priority" field. DefaultPriority int // 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 // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )
var Columns = []string{ FieldID, FieldName, FieldAPIBase, FieldPriority, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for modelprovider fields.
Functions ¶
func APIBase ¶
func APIBase(v string) predicate.ModelProvider
APIBase applies equality check predicate on the "api_base" field. It's identical to APIBaseEQ.
func APIBaseContains ¶
func APIBaseContains(v string) predicate.ModelProvider
APIBaseContains applies the Contains predicate on the "api_base" field.
func APIBaseContainsFold ¶
func APIBaseContainsFold(v string) predicate.ModelProvider
APIBaseContainsFold applies the ContainsFold predicate on the "api_base" field.
func APIBaseEQ ¶
func APIBaseEQ(v string) predicate.ModelProvider
APIBaseEQ applies the EQ predicate on the "api_base" field.
func APIBaseEqualFold ¶
func APIBaseEqualFold(v string) predicate.ModelProvider
APIBaseEqualFold applies the EqualFold predicate on the "api_base" field.
func APIBaseGT ¶
func APIBaseGT(v string) predicate.ModelProvider
APIBaseGT applies the GT predicate on the "api_base" field.
func APIBaseGTE ¶
func APIBaseGTE(v string) predicate.ModelProvider
APIBaseGTE applies the GTE predicate on the "api_base" field.
func APIBaseHasPrefix ¶
func APIBaseHasPrefix(v string) predicate.ModelProvider
APIBaseHasPrefix applies the HasPrefix predicate on the "api_base" field.
func APIBaseHasSuffix ¶
func APIBaseHasSuffix(v string) predicate.ModelProvider
APIBaseHasSuffix applies the HasSuffix predicate on the "api_base" field.
func APIBaseIn ¶
func APIBaseIn(vs ...string) predicate.ModelProvider
APIBaseIn applies the In predicate on the "api_base" field.
func APIBaseLT ¶
func APIBaseLT(v string) predicate.ModelProvider
APIBaseLT applies the LT predicate on the "api_base" field.
func APIBaseLTE ¶
func APIBaseLTE(v string) predicate.ModelProvider
APIBaseLTE applies the LTE predicate on the "api_base" field.
func APIBaseNEQ ¶
func APIBaseNEQ(v string) predicate.ModelProvider
APIBaseNEQ applies the NEQ predicate on the "api_base" field.
func APIBaseNotIn ¶
func APIBaseNotIn(vs ...string) predicate.ModelProvider
APIBaseNotIn applies the NotIn predicate on the "api_base" field.
func And ¶
func And(predicates ...predicate.ModelProvider) predicate.ModelProvider
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.ModelProvider
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.ModelProvider
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.ModelProvider
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.ModelProvider
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.ModelProvider
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.ModelProvider
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.ModelProvider
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.ModelProvider
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.ModelProvider
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasModels ¶
func HasModels() predicate.ModelProvider
HasModels applies the HasEdge predicate on the "models" edge.
func HasModelsWith ¶
func HasModelsWith(preds ...predicate.ModelProviderModel) predicate.ModelProvider
HasModelsWith applies the HasEdge predicate on the "models" edge with a given conditions (other predicates).
func IDContainsFold ¶
func IDContainsFold(id string) predicate.ModelProvider
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEQ ¶
func IDEQ(id string) predicate.ModelProvider
IDEQ applies the EQ predicate on the ID field.
func IDEqualFold ¶
func IDEqualFold(id string) predicate.ModelProvider
IDEqualFold applies the EqualFold predicate on the ID field.
func IDGT ¶
func IDGT(id string) predicate.ModelProvider
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id string) predicate.ModelProvider
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...string) predicate.ModelProvider
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id string) predicate.ModelProvider
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id string) predicate.ModelProvider
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id string) predicate.ModelProvider
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...string) 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 Priority ¶
func Priority(v int) predicate.ModelProvider
Priority applies equality check predicate on the "priority" field. It's identical to PriorityEQ.
func PriorityEQ ¶
func PriorityEQ(v int) predicate.ModelProvider
PriorityEQ applies the EQ predicate on the "priority" field.
func PriorityGT ¶
func PriorityGT(v int) predicate.ModelProvider
PriorityGT applies the GT predicate on the "priority" field.
func PriorityGTE ¶
func PriorityGTE(v int) predicate.ModelProvider
PriorityGTE applies the GTE predicate on the "priority" field.
func PriorityIn ¶
func PriorityIn(vs ...int) predicate.ModelProvider
PriorityIn applies the In predicate on the "priority" field.
func PriorityLT ¶
func PriorityLT(v int) predicate.ModelProvider
PriorityLT applies the LT predicate on the "priority" field.
func PriorityLTE ¶
func PriorityLTE(v int) predicate.ModelProvider
PriorityLTE applies the LTE predicate on the "priority" field.
func PriorityNEQ ¶
func PriorityNEQ(v int) predicate.ModelProvider
PriorityNEQ applies the NEQ predicate on the "priority" field.
func PriorityNotIn ¶
func PriorityNotIn(vs ...int) predicate.ModelProvider
PriorityNotIn applies the NotIn predicate on the "priority" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.ModelProvider
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.ModelProvider
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.ModelProvider
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.ModelProvider
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.ModelProvider
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.ModelProvider
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.ModelProvider
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.ModelProvider
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.ModelProvider
UpdatedAtNotIn applies the NotIn 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 ModelProvider queries.
func ByAPIBase ¶
func ByAPIBase(opts ...sql.OrderTermOption) OrderOption
ByAPIBase orders the results by the api_base field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at 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 ByPriority ¶
func ByPriority(opts ...sql.OrderTermOption) OrderOption
ByPriority orders the results by the priority field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.