Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Site) predicate.Site
- func Domain(v string) predicate.Site
- func DomainContains(v string) predicate.Site
- func DomainContainsFold(v string) predicate.Site
- func DomainEQ(v string) predicate.Site
- func DomainEqualFold(v string) predicate.Site
- func DomainGT(v string) predicate.Site
- func DomainGTE(v string) predicate.Site
- func DomainHasPrefix(v string) predicate.Site
- func DomainHasSuffix(v string) predicate.Site
- func DomainIn(vs ...string) predicate.Site
- func DomainLT(v string) predicate.Site
- func DomainLTE(v string) predicate.Site
- func DomainNEQ(v string) predicate.Site
- func DomainNotIn(vs ...string) predicate.Site
- func Favicon(v string) predicate.Site
- func FaviconContains(v string) predicate.Site
- func FaviconContainsFold(v string) predicate.Site
- func FaviconEQ(v string) predicate.Site
- func FaviconEqualFold(v string) predicate.Site
- func FaviconGT(v string) predicate.Site
- func FaviconGTE(v string) predicate.Site
- func FaviconHasPrefix(v string) predicate.Site
- func FaviconHasSuffix(v string) predicate.Site
- func FaviconIn(vs ...string) predicate.Site
- func FaviconIsNil() predicate.Site
- func FaviconLT(v string) predicate.Site
- func FaviconLTE(v string) predicate.Site
- func FaviconNEQ(v string) predicate.Site
- func FaviconNotIn(vs ...string) predicate.Site
- func FaviconNotNil() predicate.Site
- func HasUsers() predicate.Site
- func HasUsersWith(preds ...predicate.User) predicate.Site
- func HasVisits() predicate.Site
- func HasVisitsWith(preds ...predicate.Visit) predicate.Site
- func ID(id int) predicate.Site
- func IDEQ(id int) predicate.Site
- func IDGT(id int) predicate.Site
- func IDGTE(id int) predicate.Site
- func IDIn(ids ...int) predicate.Site
- func IDLT(id int) predicate.Site
- func IDLTE(id int) predicate.Site
- func IDNEQ(id int) predicate.Site
- func IDNotIn(ids ...int) predicate.Site
- func Not(p predicate.Site) predicate.Site
- func Or(predicates ...predicate.Site) predicate.Site
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the site type in the database. Label = "site" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldDomain holds the string denoting the domain field in the database. FieldDomain = "domain" // FieldFavicon holds the string denoting the favicon field in the database. FieldFavicon = "favicon" // EdgeUsers holds the string denoting the users edge name in mutations. EdgeUsers = "users" // EdgeVisits holds the string denoting the visits edge name in mutations. EdgeVisits = "visits" // Table holds the table name of the site in the database. Table = "sites" // UsersTable is the table that holds the users relation/edge. The primary key declared below. UsersTable = "user_sites" // UsersInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UsersInverseTable = "users" // VisitsTable is the table that holds the visits relation/edge. VisitsTable = "visits" // VisitsInverseTable is the table name for the Visit entity. // It exists in this package in order to avoid circular dependency with the "visit" package. VisitsInverseTable = "visits" // VisitsColumn is the table column denoting the visits relation/edge. VisitsColumn = "site_visits" )
Variables ¶
var Columns = []string{ FieldID, FieldDomain, FieldFavicon, }
Columns holds all SQL columns for site fields.
var ( // UsersPrimaryKey and UsersColumn2 are the table columns denoting the // primary key for the users relation (M2M). UsersPrimaryKey = []string{"user_id", "site_id"} )
Functions ¶
func Domain ¶
Domain applies equality check predicate on the "domain" field. It's identical to DomainEQ.
func DomainContains ¶
DomainContains applies the Contains predicate on the "domain" field.
func DomainContainsFold ¶
DomainContainsFold applies the ContainsFold predicate on the "domain" field.
func DomainEqualFold ¶
DomainEqualFold applies the EqualFold predicate on the "domain" field.
func DomainHasPrefix ¶
DomainHasPrefix applies the HasPrefix predicate on the "domain" field.
func DomainHasSuffix ¶
DomainHasSuffix applies the HasSuffix predicate on the "domain" field.
func DomainNotIn ¶
DomainNotIn applies the NotIn predicate on the "domain" field.
func Favicon ¶
Favicon applies equality check predicate on the "favicon" field. It's identical to FaviconEQ.
func FaviconContains ¶
FaviconContains applies the Contains predicate on the "favicon" field.
func FaviconContainsFold ¶
FaviconContainsFold applies the ContainsFold predicate on the "favicon" field.
func FaviconEqualFold ¶
FaviconEqualFold applies the EqualFold predicate on the "favicon" field.
func FaviconGTE ¶
FaviconGTE applies the GTE predicate on the "favicon" field.
func FaviconHasPrefix ¶
FaviconHasPrefix applies the HasPrefix predicate on the "favicon" field.
func FaviconHasSuffix ¶
FaviconHasSuffix applies the HasSuffix predicate on the "favicon" field.
func FaviconIsNil ¶
FaviconIsNil applies the IsNil predicate on the "favicon" field.
func FaviconLTE ¶
FaviconLTE applies the LTE predicate on the "favicon" field.
func FaviconNEQ ¶
FaviconNEQ applies the NEQ predicate on the "favicon" field.
func FaviconNotIn ¶
FaviconNotIn applies the NotIn predicate on the "favicon" field.
func FaviconNotNil ¶
FaviconNotNil applies the NotNil predicate on the "favicon" field.
func HasUsersWith ¶
HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).
func HasVisitsWith ¶
HasVisitsWith applies the HasEdge predicate on the "visits" edge with a given conditions (other predicates).
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.