site

package
v0.0.0-...-c111925 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

Columns holds all SQL columns for site fields.

View Source
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 And

func And(predicates ...predicate.Site) predicate.Site

And groups predicates with the AND operator between them.

func Domain

func Domain(v string) predicate.Site

Domain applies equality check predicate on the "domain" field. It's identical to DomainEQ.

func DomainContains

func DomainContains(v string) predicate.Site

DomainContains applies the Contains predicate on the "domain" field.

func DomainContainsFold

func DomainContainsFold(v string) predicate.Site

DomainContainsFold applies the ContainsFold predicate on the "domain" field.

func DomainEQ

func DomainEQ(v string) predicate.Site

DomainEQ applies the EQ predicate on the "domain" field.

func DomainEqualFold

func DomainEqualFold(v string) predicate.Site

DomainEqualFold applies the EqualFold predicate on the "domain" field.

func DomainGT

func DomainGT(v string) predicate.Site

DomainGT applies the GT predicate on the "domain" field.

func DomainGTE

func DomainGTE(v string) predicate.Site

DomainGTE applies the GTE predicate on the "domain" field.

func DomainHasPrefix

func DomainHasPrefix(v string) predicate.Site

DomainHasPrefix applies the HasPrefix predicate on the "domain" field.

func DomainHasSuffix

func DomainHasSuffix(v string) predicate.Site

DomainHasSuffix applies the HasSuffix predicate on the "domain" field.

func DomainIn

func DomainIn(vs ...string) predicate.Site

DomainIn applies the In predicate on the "domain" field.

func DomainLT

func DomainLT(v string) predicate.Site

DomainLT applies the LT predicate on the "domain" field.

func DomainLTE

func DomainLTE(v string) predicate.Site

DomainLTE applies the LTE predicate on the "domain" field.

func DomainNEQ

func DomainNEQ(v string) predicate.Site

DomainNEQ applies the NEQ predicate on the "domain" field.

func DomainNotIn

func DomainNotIn(vs ...string) predicate.Site

DomainNotIn applies the NotIn predicate on the "domain" field.

func Favicon

func Favicon(v string) predicate.Site

Favicon applies equality check predicate on the "favicon" field. It's identical to FaviconEQ.

func FaviconContains

func FaviconContains(v string) predicate.Site

FaviconContains applies the Contains predicate on the "favicon" field.

func FaviconContainsFold

func FaviconContainsFold(v string) predicate.Site

FaviconContainsFold applies the ContainsFold predicate on the "favicon" field.

func FaviconEQ

func FaviconEQ(v string) predicate.Site

FaviconEQ applies the EQ predicate on the "favicon" field.

func FaviconEqualFold

func FaviconEqualFold(v string) predicate.Site

FaviconEqualFold applies the EqualFold predicate on the "favicon" field.

func FaviconGT

func FaviconGT(v string) predicate.Site

FaviconGT applies the GT predicate on the "favicon" field.

func FaviconGTE

func FaviconGTE(v string) predicate.Site

FaviconGTE applies the GTE predicate on the "favicon" field.

func FaviconHasPrefix

func FaviconHasPrefix(v string) predicate.Site

FaviconHasPrefix applies the HasPrefix predicate on the "favicon" field.

func FaviconHasSuffix

func FaviconHasSuffix(v string) predicate.Site

FaviconHasSuffix applies the HasSuffix predicate on the "favicon" field.

func FaviconIn

func FaviconIn(vs ...string) predicate.Site

FaviconIn applies the In predicate on the "favicon" field.

func FaviconIsNil

func FaviconIsNil() predicate.Site

FaviconIsNil applies the IsNil predicate on the "favicon" field.

func FaviconLT

func FaviconLT(v string) predicate.Site

FaviconLT applies the LT predicate on the "favicon" field.

func FaviconLTE

func FaviconLTE(v string) predicate.Site

FaviconLTE applies the LTE predicate on the "favicon" field.

func FaviconNEQ

func FaviconNEQ(v string) predicate.Site

FaviconNEQ applies the NEQ predicate on the "favicon" field.

func FaviconNotIn

func FaviconNotIn(vs ...string) predicate.Site

FaviconNotIn applies the NotIn predicate on the "favicon" field.

func FaviconNotNil

func FaviconNotNil() predicate.Site

FaviconNotNil applies the NotNil predicate on the "favicon" field.

func HasUsers

func HasUsers() predicate.Site

HasUsers applies the HasEdge predicate on the "users" edge.

func HasUsersWith

func HasUsersWith(preds ...predicate.User) predicate.Site

HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).

func HasVisits

func HasVisits() predicate.Site

HasVisits applies the HasEdge predicate on the "visits" edge.

func HasVisitsWith

func HasVisitsWith(preds ...predicate.Visit) predicate.Site

HasVisitsWith applies the HasEdge predicate on the "visits" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Site

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Site

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Site

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Site

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Site

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Site

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Site

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Site

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Site

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Site) predicate.Site

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL