Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Provider) predicate.Provider
- func HasSubscribes() predicate.Provider
- func HasSubscribesWith(preds ...predicate.Subscribe) predicate.Provider
- func HasUser() predicate.Provider
- func HasUserWith(preds ...predicate.User) 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 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 Path(v string) predicate.Provider
- func PathContains(v string) predicate.Provider
- func PathContainsFold(v string) predicate.Provider
- func PathEQ(v string) predicate.Provider
- func PathEqualFold(v string) predicate.Provider
- func PathGT(v string) predicate.Provider
- func PathGTE(v string) predicate.Provider
- func PathHasPrefix(v string) predicate.Provider
- func PathHasSuffix(v string) predicate.Provider
- func PathIn(vs ...string) predicate.Provider
- func PathLT(v string) predicate.Provider
- func PathLTE(v string) predicate.Provider
- func PathNEQ(v string) predicate.Provider
- func PathNotIn(vs ...string) predicate.Provider
- func ValidColumn(column string) bool
- func Version(v string) predicate.Provider
- func VersionContains(v string) predicate.Provider
- func VersionContainsFold(v string) predicate.Provider
- func VersionEQ(v string) predicate.Provider
- func VersionEqualFold(v string) predicate.Provider
- func VersionGT(v string) predicate.Provider
- func VersionGTE(v string) predicate.Provider
- func VersionHasPrefix(v string) predicate.Provider
- func VersionHasSuffix(v string) predicate.Provider
- func VersionIn(vs ...string) predicate.Provider
- func VersionLT(v string) predicate.Provider
- func VersionLTE(v string) predicate.Provider
- func VersionNEQ(v string) predicate.Provider
- func VersionNotIn(vs ...string) predicate.Provider
- type OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByPath(opts ...sql.OrderTermOption) OrderOption
- func BySubscribes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySubscribesCount(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByVersion(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" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldVersion holds the string denoting the version field in the database. FieldVersion = "version" // FieldPath holds the string denoting the path field in the database. FieldPath = "path" // EdgeSubscribes holds the string denoting the subscribes edge name in mutations. EdgeSubscribes = "subscribes" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the provider in the database. Table = "providers" // SubscribesTable is the table that holds the subscribes relation/edge. SubscribesTable = "subscribes" // SubscribesInverseTable is the table name for the Subscribe entity. // It exists in this package in order to avoid circular dependency with the "subscribe" package. SubscribesInverseTable = "subscribes" // SubscribesColumn is the table column denoting the subscribes relation/edge. SubscribesColumn = "provider_subscribes" // UserTable is the table that holds the user relation/edge. UserTable = "users" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "provider_user" )
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // VersionValidator is a validator for the "version" field. It is called by the builders before save. VersionValidator func(string) error // PathValidator is a validator for the "path" field. It is called by the builders before save. PathValidator func(string) error )
var Columns = []string{ FieldID, FieldName, FieldVersion, FieldPath, }
Columns holds all SQL columns for provider fields.
Functions ¶
func HasSubscribes ¶
HasSubscribes applies the HasEdge predicate on the "subscribes" edge.
func HasSubscribesWith ¶
HasSubscribesWith applies the HasEdge predicate on the "subscribes" edge with a given conditions (other predicates).
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
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 PathContains ¶
PathContains applies the Contains predicate on the "path" field.
func PathContainsFold ¶
PathContainsFold applies the ContainsFold predicate on the "path" field.
func PathEqualFold ¶
PathEqualFold applies the EqualFold predicate on the "path" field.
func PathHasPrefix ¶
PathHasPrefix applies the HasPrefix predicate on the "path" field.
func PathHasSuffix ¶
PathHasSuffix applies the HasSuffix predicate on the "path" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Version ¶
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionContains ¶
VersionContains applies the Contains predicate on the "version" field.
func VersionContainsFold ¶
VersionContainsFold applies the ContainsFold predicate on the "version" field.
func VersionEqualFold ¶
VersionEqualFold applies the EqualFold predicate on the "version" field.
func VersionGTE ¶
VersionGTE applies the GTE predicate on the "version" field.
func VersionHasPrefix ¶
VersionHasPrefix applies the HasPrefix predicate on the "version" field.
func VersionHasSuffix ¶
VersionHasSuffix applies the HasSuffix predicate on the "version" field.
func VersionLTE ¶
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶
VersionNotIn applies the NotIn predicate on the "version" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Provider queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByPath ¶
func ByPath(opts ...sql.OrderTermOption) OrderOption
ByPath orders the results by the path field.
func BySubscribes ¶
func BySubscribes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
BySubscribes orders the results by subscribes terms.
func BySubscribesCount ¶
func BySubscribesCount(opts ...sql.OrderTermOption) OrderOption
BySubscribesCount orders the results by subscribes count.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.
func ByVersion ¶
func ByVersion(opts ...sql.OrderTermOption) OrderOption
ByVersion orders the results by the version field.