Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.SourceNamespace) predicate.SourceNamespace
- func HasNames() predicate.SourceNamespace
- func HasNamesWith(preds ...predicate.SourceName) predicate.SourceNamespace
- func HasSourceType() predicate.SourceNamespace
- func HasSourceTypeWith(preds ...predicate.SourceType) predicate.SourceNamespace
- func ID(id int) predicate.SourceNamespace
- func IDEQ(id int) predicate.SourceNamespace
- func IDGT(id int) predicate.SourceNamespace
- func IDGTE(id int) predicate.SourceNamespace
- func IDIn(ids ...int) predicate.SourceNamespace
- func IDLT(id int) predicate.SourceNamespace
- func IDLTE(id int) predicate.SourceNamespace
- func IDNEQ(id int) predicate.SourceNamespace
- func IDNotIn(ids ...int) predicate.SourceNamespace
- func Namespace(v string) predicate.SourceNamespace
- func NamespaceContains(v string) predicate.SourceNamespace
- func NamespaceContainsFold(v string) predicate.SourceNamespace
- func NamespaceEQ(v string) predicate.SourceNamespace
- func NamespaceEqualFold(v string) predicate.SourceNamespace
- func NamespaceGT(v string) predicate.SourceNamespace
- func NamespaceGTE(v string) predicate.SourceNamespace
- func NamespaceHasPrefix(v string) predicate.SourceNamespace
- func NamespaceHasSuffix(v string) predicate.SourceNamespace
- func NamespaceIn(vs ...string) predicate.SourceNamespace
- func NamespaceLT(v string) predicate.SourceNamespace
- func NamespaceLTE(v string) predicate.SourceNamespace
- func NamespaceNEQ(v string) predicate.SourceNamespace
- func NamespaceNotIn(vs ...string) predicate.SourceNamespace
- func Not(p predicate.SourceNamespace) predicate.SourceNamespace
- func Or(predicates ...predicate.SourceNamespace) predicate.SourceNamespace
- func SourceID(v int) predicate.SourceNamespace
- func SourceIDEQ(v int) predicate.SourceNamespace
- func SourceIDIn(vs ...int) predicate.SourceNamespace
- func SourceIDNEQ(v int) predicate.SourceNamespace
- func SourceIDNotIn(vs ...int) predicate.SourceNamespace
- func ValidColumn(column string) bool
- type OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByNames(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByNamesCount(opts ...sql.OrderTermOption) OrderOption
- func ByNamespace(opts ...sql.OrderTermOption) OrderOption
- func BySourceID(opts ...sql.OrderTermOption) OrderOption
- func BySourceTypeField(field string, opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the sourcenamespace type in the database. Label = "source_namespace" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldNamespace holds the string denoting the namespace field in the database. FieldNamespace = "namespace" // FieldSourceID holds the string denoting the source_id field in the database. FieldSourceID = "source_id" // EdgeSourceType holds the string denoting the source_type edge name in mutations. EdgeSourceType = "source_type" // EdgeNames holds the string denoting the names edge name in mutations. EdgeNames = "names" // Table holds the table name of the sourcenamespace in the database. Table = "source_namespaces" // SourceTypeTable is the table that holds the source_type relation/edge. SourceTypeTable = "source_namespaces" // SourceTypeInverseTable is the table name for the SourceType entity. // It exists in this package in order to avoid circular dependency with the "sourcetype" package. SourceTypeInverseTable = "source_types" // SourceTypeColumn is the table column denoting the source_type relation/edge. SourceTypeColumn = "source_id" // NamesTable is the table that holds the names relation/edge. NamesTable = "source_names" // NamesInverseTable is the table name for the SourceName entity. // It exists in this package in order to avoid circular dependency with the "sourcename" package. NamesInverseTable = "source_names" // NamesColumn is the table column denoting the names relation/edge. NamesColumn = "namespace_id" )
Variables ¶
var Columns = []string{ FieldID, FieldNamespace, FieldSourceID, }
Columns holds all SQL columns for sourcenamespace fields.
Functions ¶
func And ¶
func And(predicates ...predicate.SourceNamespace) predicate.SourceNamespace
And groups predicates with the AND operator between them.
func HasNames ¶
func HasNames() predicate.SourceNamespace
HasNames applies the HasEdge predicate on the "names" edge.
func HasNamesWith ¶
func HasNamesWith(preds ...predicate.SourceName) predicate.SourceNamespace
HasNamesWith applies the HasEdge predicate on the "names" edge with a given conditions (other predicates).
func HasSourceType ¶
func HasSourceType() predicate.SourceNamespace
HasSourceType applies the HasEdge predicate on the "source_type" edge.
func HasSourceTypeWith ¶
func HasSourceTypeWith(preds ...predicate.SourceType) predicate.SourceNamespace
HasSourceTypeWith applies the HasEdge predicate on the "source_type" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.SourceNamespace
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.SourceNamespace
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.SourceNamespace
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.SourceNamespace
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.SourceNamespace
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.SourceNamespace
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.SourceNamespace
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.SourceNamespace
IDNotIn applies the NotIn predicate on the ID field.
func Namespace ¶
func Namespace(v string) predicate.SourceNamespace
Namespace applies equality check predicate on the "namespace" field. It's identical to NamespaceEQ.
func NamespaceContains ¶
func NamespaceContains(v string) predicate.SourceNamespace
NamespaceContains applies the Contains predicate on the "namespace" field.
func NamespaceContainsFold ¶
func NamespaceContainsFold(v string) predicate.SourceNamespace
NamespaceContainsFold applies the ContainsFold predicate on the "namespace" field.
func NamespaceEQ ¶
func NamespaceEQ(v string) predicate.SourceNamespace
NamespaceEQ applies the EQ predicate on the "namespace" field.
func NamespaceEqualFold ¶
func NamespaceEqualFold(v string) predicate.SourceNamespace
NamespaceEqualFold applies the EqualFold predicate on the "namespace" field.
func NamespaceGT ¶
func NamespaceGT(v string) predicate.SourceNamespace
NamespaceGT applies the GT predicate on the "namespace" field.
func NamespaceGTE ¶
func NamespaceGTE(v string) predicate.SourceNamespace
NamespaceGTE applies the GTE predicate on the "namespace" field.
func NamespaceHasPrefix ¶
func NamespaceHasPrefix(v string) predicate.SourceNamespace
NamespaceHasPrefix applies the HasPrefix predicate on the "namespace" field.
func NamespaceHasSuffix ¶
func NamespaceHasSuffix(v string) predicate.SourceNamespace
NamespaceHasSuffix applies the HasSuffix predicate on the "namespace" field.
func NamespaceIn ¶
func NamespaceIn(vs ...string) predicate.SourceNamespace
NamespaceIn applies the In predicate on the "namespace" field.
func NamespaceLT ¶
func NamespaceLT(v string) predicate.SourceNamespace
NamespaceLT applies the LT predicate on the "namespace" field.
func NamespaceLTE ¶
func NamespaceLTE(v string) predicate.SourceNamespace
NamespaceLTE applies the LTE predicate on the "namespace" field.
func NamespaceNEQ ¶
func NamespaceNEQ(v string) predicate.SourceNamespace
NamespaceNEQ applies the NEQ predicate on the "namespace" field.
func NamespaceNotIn ¶
func NamespaceNotIn(vs ...string) predicate.SourceNamespace
NamespaceNotIn applies the NotIn predicate on the "namespace" field.
func Not ¶
func Not(p predicate.SourceNamespace) predicate.SourceNamespace
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.SourceNamespace) predicate.SourceNamespace
Or groups predicates with the OR operator between them.
func SourceID ¶
func SourceID(v int) predicate.SourceNamespace
SourceID applies equality check predicate on the "source_id" field. It's identical to SourceIDEQ.
func SourceIDEQ ¶
func SourceIDEQ(v int) predicate.SourceNamespace
SourceIDEQ applies the EQ predicate on the "source_id" field.
func SourceIDIn ¶
func SourceIDIn(vs ...int) predicate.SourceNamespace
SourceIDIn applies the In predicate on the "source_id" field.
func SourceIDNEQ ¶
func SourceIDNEQ(v int) predicate.SourceNamespace
SourceIDNEQ applies the NEQ predicate on the "source_id" field.
func SourceIDNotIn ¶
func SourceIDNotIn(vs ...int) predicate.SourceNamespace
SourceIDNotIn applies the NotIn predicate on the "source_id" 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 SourceNamespace queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByNames ¶
func ByNames(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByNames orders the results by names terms.
func ByNamesCount ¶
func ByNamesCount(opts ...sql.OrderTermOption) OrderOption
ByNamesCount orders the results by names count.
func ByNamespace ¶
func ByNamespace(opts ...sql.OrderTermOption) OrderOption
ByNamespace orders the results by the namespace field.
func BySourceID ¶
func BySourceID(opts ...sql.OrderTermOption) OrderOption
BySourceID orders the results by the source_id field.
func BySourceTypeField ¶
func BySourceTypeField(field string, opts ...sql.OrderTermOption) OrderOption
BySourceTypeField orders the results by source_type field.