Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Provider) predicate.Provider
- func BaseURL(v string) predicate.Provider
- func BaseURLContains(v string) predicate.Provider
- func BaseURLContainsFold(v string) predicate.Provider
- func BaseURLEQ(v string) predicate.Provider
- func BaseURLEqualFold(v string) predicate.Provider
- func BaseURLGT(v string) predicate.Provider
- func BaseURLGTE(v string) predicate.Provider
- func BaseURLHasPrefix(v string) predicate.Provider
- func BaseURLHasSuffix(v string) predicate.Provider
- func BaseURLIn(vs ...string) predicate.Provider
- func BaseURLIsNil() predicate.Provider
- func BaseURLLT(v string) predicate.Provider
- func BaseURLLTE(v string) predicate.Provider
- func BaseURLNEQ(v string) predicate.Provider
- func BaseURLNotIn(vs ...string) predicate.Provider
- func BaseURLNotNil() predicate.Provider
- func CreatedAt(v time.Time) predicate.Provider
- func CreatedAtEQ(v time.Time) predicate.Provider
- func CreatedAtGT(v time.Time) predicate.Provider
- func CreatedAtGTE(v time.Time) predicate.Provider
- func CreatedAtIn(vs ...time.Time) predicate.Provider
- func CreatedAtIsNil() predicate.Provider
- func CreatedAtLT(v time.Time) predicate.Provider
- func CreatedAtLTE(v time.Time) predicate.Provider
- func CreatedAtNEQ(v time.Time) predicate.Provider
- func CreatedAtNotIn(vs ...time.Time) predicate.Provider
- func CreatedAtNotNil() predicate.Provider
- func Enabled(v bool) predicate.Provider
- func EnabledEQ(v bool) predicate.Provider
- func EnabledNEQ(v bool) predicate.Provider
- func HasModels() predicate.Provider
- func HasModelsWith(preds ...predicate.Model) predicate.Provider
- func ID(id int) predicate.Provider
- func IDEQ(id int) predicate.Provider
- func IDGT(id int) predicate.Provider
- func IDGTE(id int) predicate.Provider
- func IDIn(ids ...int) predicate.Provider
- func IDLT(id int) predicate.Provider
- func IDLTE(id int) predicate.Provider
- func IDNEQ(id int) predicate.Provider
- func IDNotIn(ids ...int) predicate.Provider
- func Key(v string) predicate.Provider
- func KeyContains(v string) predicate.Provider
- func KeyContainsFold(v string) predicate.Provider
- func KeyEQ(v string) predicate.Provider
- func KeyEqualFold(v string) predicate.Provider
- func KeyGT(v string) predicate.Provider
- func KeyGTE(v string) predicate.Provider
- func KeyHasPrefix(v string) predicate.Provider
- func KeyHasSuffix(v string) predicate.Provider
- func KeyIn(vs ...string) predicate.Provider
- func KeyIsNil() predicate.Provider
- func KeyLT(v string) predicate.Provider
- func KeyLTE(v string) predicate.Provider
- func KeyNEQ(v string) predicate.Provider
- func KeyNotIn(vs ...string) predicate.Provider
- func KeyNotNil() predicate.Provider
- func Name(v string) predicate.Provider
- func NameContains(v string) predicate.Provider
- func NameContainsFold(v string) predicate.Provider
- func NameEQ(v string) predicate.Provider
- func NameEqualFold(v string) predicate.Provider
- func NameGT(v string) predicate.Provider
- func NameGTE(v string) predicate.Provider
- func NameHasPrefix(v string) predicate.Provider
- func NameHasSuffix(v string) predicate.Provider
- func NameIn(vs ...string) predicate.Provider
- func NameLT(v string) predicate.Provider
- func NameLTE(v string) predicate.Provider
- func NameNEQ(v string) predicate.Provider
- func NameNotIn(vs ...string) predicate.Provider
- func Not(p predicate.Provider) predicate.Provider
- func Or(predicates ...predicate.Provider) predicate.Provider
- func Type(v string) predicate.Provider
- func TypeContains(v string) predicate.Provider
- func TypeContainsFold(v string) predicate.Provider
- func TypeEQ(v string) predicate.Provider
- func TypeEqualFold(v string) predicate.Provider
- func TypeGT(v string) predicate.Provider
- func TypeGTE(v string) predicate.Provider
- func TypeHasPrefix(v string) predicate.Provider
- func TypeHasSuffix(v string) predicate.Provider
- func TypeIn(vs ...string) predicate.Provider
- func TypeLT(v string) predicate.Provider
- func TypeLTE(v string) predicate.Provider
- func TypeNEQ(v string) predicate.Provider
- func TypeNotIn(vs ...string) predicate.Provider
- func UpdatedAt(v time.Time) predicate.Provider
- func UpdatedAtEQ(v time.Time) predicate.Provider
- func UpdatedAtGT(v time.Time) predicate.Provider
- func UpdatedAtGTE(v time.Time) predicate.Provider
- func UpdatedAtIn(vs ...time.Time) predicate.Provider
- func UpdatedAtIsNil() predicate.Provider
- func UpdatedAtLT(v time.Time) predicate.Provider
- func UpdatedAtLTE(v time.Time) predicate.Provider
- func UpdatedAtNEQ(v time.Time) predicate.Provider
- func UpdatedAtNotIn(vs ...time.Time) predicate.Provider
- func UpdatedAtNotNil() predicate.Provider
- func ValidColumn(column string) bool
- type OrderOption
- func ByBaseURL(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEnabled(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByKey(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 ByType(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the provider type in the database. Label = "provider" // 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" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldKey holds the string denoting the key field in the database. FieldKey = "key" // FieldBaseURL holds the string denoting the base_url field in the database. FieldBaseURL = "base_url" // 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 provider in the database. Table = "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 = "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 // DefaultEnabled holds the default value on creation for the "enabled" field. DefaultEnabled bool )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldName, FieldType, FieldKey, FieldBaseURL, FieldEnabled, }
Columns holds all SQL columns for provider fields.
Functions ¶
func BaseURL ¶
BaseURL applies equality check predicate on the "base_url" field. It's identical to BaseURLEQ.
func BaseURLContains ¶
BaseURLContains applies the Contains predicate on the "base_url" field.
func BaseURLContainsFold ¶
BaseURLContainsFold applies the ContainsFold predicate on the "base_url" field.
func BaseURLEqualFold ¶
BaseURLEqualFold applies the EqualFold predicate on the "base_url" field.
func BaseURLGTE ¶
BaseURLGTE applies the GTE predicate on the "base_url" field.
func BaseURLHasPrefix ¶
BaseURLHasPrefix applies the HasPrefix predicate on the "base_url" field.
func BaseURLHasSuffix ¶
BaseURLHasSuffix applies the HasSuffix predicate on the "base_url" field.
func BaseURLIsNil ¶
BaseURLIsNil applies the IsNil predicate on the "base_url" field.
func BaseURLLTE ¶
BaseURLLTE applies the LTE predicate on the "base_url" field.
func BaseURLNEQ ¶
BaseURLNEQ applies the NEQ predicate on the "base_url" field.
func BaseURLNotIn ¶
BaseURLNotIn applies the NotIn predicate on the "base_url" field.
func BaseURLNotNil ¶
BaseURLNotNil applies the NotNil predicate on the "base_url" 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 Enabled ¶ added in v0.4.1
Enabled applies equality check predicate on the "enabled" field. It's identical to EnabledEQ.
func EnabledNEQ ¶ added in v0.4.1
EnabledNEQ applies the NEQ predicate on the "enabled" field.
func HasModelsWith ¶
HasModelsWith applies the HasEdge predicate on the "models" edge with a given conditions (other predicates).
func KeyContains ¶
KeyContains applies the Contains predicate on the "key" field.
func KeyContainsFold ¶
KeyContainsFold applies the ContainsFold predicate on the "key" field.
func KeyEqualFold ¶
KeyEqualFold applies the EqualFold predicate on the "key" field.
func KeyHasPrefix ¶
KeyHasPrefix applies the HasPrefix predicate on the "key" field.
func KeyHasSuffix ¶
KeyHasSuffix applies the HasSuffix predicate on the "key" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func TypeContains ¶ added in v0.4.1
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶ added in v0.4.1
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEqualFold ¶ added in v0.4.1
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeHasPrefix ¶ added in v0.4.1
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶ added in v0.4.1
TypeHasSuffix applies the HasSuffix predicate on the "type" 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 Provider queries.
func ByBaseURL ¶
func ByBaseURL(opts ...sql.OrderTermOption) OrderOption
ByBaseURL orders the results by the base_url field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByEnabled ¶ added in v0.4.1
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 ByKey ¶
func ByKey(opts ...sql.OrderTermOption) OrderOption
ByKey orders the results by the key 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 ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.