visit

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: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the visit type in the database.
	Label = "visit"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldPath holds the string denoting the path field in the database.
	FieldPath = "path"
	// FieldReferrer holds the string denoting the referrer field in the database.
	FieldReferrer = "referrer"
	// FieldTimestamp holds the string denoting the timestamp field in the database.
	FieldTimestamp = "timestamp"
	// FieldIP holds the string denoting the ip field in the database.
	FieldIP = "ip"
	// EdgeSite holds the string denoting the site edge name in mutations.
	EdgeSite = "site"
	// Table holds the table name of the visit in the database.
	Table = "visits"
	// SiteTable is the table that holds the site relation/edge.
	SiteTable = "visits"
	// SiteInverseTable is the table name for the Site entity.
	// It exists in this package in order to avoid circular dependency with the "site" package.
	SiteInverseTable = "sites"
	// SiteColumn is the table column denoting the site relation/edge.
	SiteColumn = "site_visits"
)

Variables

Columns holds all SQL columns for visit fields.

View Source
var ForeignKeys = []string{
	"site_visits",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "visits" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Visit) predicate.Visit

And groups predicates with the AND operator between them.

func HasSite

func HasSite() predicate.Visit

HasSite applies the HasEdge predicate on the "site" edge.

func HasSiteWith

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

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

func ID

func ID(id int) predicate.Visit

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Visit

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Visit

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Visit

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Visit

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Visit

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Visit

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IP

func IP(v string) predicate.Visit

IP applies equality check predicate on the "ip" field. It's identical to IPEQ.

func IPContains

func IPContains(v string) predicate.Visit

IPContains applies the Contains predicate on the "ip" field.

func IPContainsFold

func IPContainsFold(v string) predicate.Visit

IPContainsFold applies the ContainsFold predicate on the "ip" field.

func IPEQ

func IPEQ(v string) predicate.Visit

IPEQ applies the EQ predicate on the "ip" field.

func IPEqualFold

func IPEqualFold(v string) predicate.Visit

IPEqualFold applies the EqualFold predicate on the "ip" field.

func IPGT

func IPGT(v string) predicate.Visit

IPGT applies the GT predicate on the "ip" field.

func IPGTE

func IPGTE(v string) predicate.Visit

IPGTE applies the GTE predicate on the "ip" field.

func IPHasPrefix

func IPHasPrefix(v string) predicate.Visit

IPHasPrefix applies the HasPrefix predicate on the "ip" field.

func IPHasSuffix

func IPHasSuffix(v string) predicate.Visit

IPHasSuffix applies the HasSuffix predicate on the "ip" field.

func IPIn

func IPIn(vs ...string) predicate.Visit

IPIn applies the In predicate on the "ip" field.

func IPLT

func IPLT(v string) predicate.Visit

IPLT applies the LT predicate on the "ip" field.

func IPLTE

func IPLTE(v string) predicate.Visit

IPLTE applies the LTE predicate on the "ip" field.

func IPNEQ

func IPNEQ(v string) predicate.Visit

IPNEQ applies the NEQ predicate on the "ip" field.

func IPNotIn

func IPNotIn(vs ...string) predicate.Visit

IPNotIn applies the NotIn predicate on the "ip" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Visit) predicate.Visit

Or groups predicates with the OR operator between them.

func Path

func Path(v string) predicate.Visit

Path applies equality check predicate on the "path" field. It's identical to PathEQ.

func PathContains

func PathContains(v string) predicate.Visit

PathContains applies the Contains predicate on the "path" field.

func PathContainsFold

func PathContainsFold(v string) predicate.Visit

PathContainsFold applies the ContainsFold predicate on the "path" field.

func PathEQ

func PathEQ(v string) predicate.Visit

PathEQ applies the EQ predicate on the "path" field.

func PathEqualFold

func PathEqualFold(v string) predicate.Visit

PathEqualFold applies the EqualFold predicate on the "path" field.

func PathGT

func PathGT(v string) predicate.Visit

PathGT applies the GT predicate on the "path" field.

func PathGTE

func PathGTE(v string) predicate.Visit

PathGTE applies the GTE predicate on the "path" field.

func PathHasPrefix

func PathHasPrefix(v string) predicate.Visit

PathHasPrefix applies the HasPrefix predicate on the "path" field.

func PathHasSuffix

func PathHasSuffix(v string) predicate.Visit

PathHasSuffix applies the HasSuffix predicate on the "path" field.

func PathIn

func PathIn(vs ...string) predicate.Visit

PathIn applies the In predicate on the "path" field.

func PathLT

func PathLT(v string) predicate.Visit

PathLT applies the LT predicate on the "path" field.

func PathLTE

func PathLTE(v string) predicate.Visit

PathLTE applies the LTE predicate on the "path" field.

func PathNEQ

func PathNEQ(v string) predicate.Visit

PathNEQ applies the NEQ predicate on the "path" field.

func PathNotIn

func PathNotIn(vs ...string) predicate.Visit

PathNotIn applies the NotIn predicate on the "path" field.

func Referrer

func Referrer(v string) predicate.Visit

Referrer applies equality check predicate on the "referrer" field. It's identical to ReferrerEQ.

func ReferrerContains

func ReferrerContains(v string) predicate.Visit

ReferrerContains applies the Contains predicate on the "referrer" field.

func ReferrerContainsFold

func ReferrerContainsFold(v string) predicate.Visit

ReferrerContainsFold applies the ContainsFold predicate on the "referrer" field.

func ReferrerEQ

func ReferrerEQ(v string) predicate.Visit

ReferrerEQ applies the EQ predicate on the "referrer" field.

func ReferrerEqualFold

func ReferrerEqualFold(v string) predicate.Visit

ReferrerEqualFold applies the EqualFold predicate on the "referrer" field.

func ReferrerGT

func ReferrerGT(v string) predicate.Visit

ReferrerGT applies the GT predicate on the "referrer" field.

func ReferrerGTE

func ReferrerGTE(v string) predicate.Visit

ReferrerGTE applies the GTE predicate on the "referrer" field.

func ReferrerHasPrefix

func ReferrerHasPrefix(v string) predicate.Visit

ReferrerHasPrefix applies the HasPrefix predicate on the "referrer" field.

func ReferrerHasSuffix

func ReferrerHasSuffix(v string) predicate.Visit

ReferrerHasSuffix applies the HasSuffix predicate on the "referrer" field.

func ReferrerIn

func ReferrerIn(vs ...string) predicate.Visit

ReferrerIn applies the In predicate on the "referrer" field.

func ReferrerLT

func ReferrerLT(v string) predicate.Visit

ReferrerLT applies the LT predicate on the "referrer" field.

func ReferrerLTE

func ReferrerLTE(v string) predicate.Visit

ReferrerLTE applies the LTE predicate on the "referrer" field.

func ReferrerNEQ

func ReferrerNEQ(v string) predicate.Visit

ReferrerNEQ applies the NEQ predicate on the "referrer" field.

func ReferrerNotIn

func ReferrerNotIn(vs ...string) predicate.Visit

ReferrerNotIn applies the NotIn predicate on the "referrer" field.

func Timestamp

func Timestamp(v time.Time) predicate.Visit

Timestamp applies equality check predicate on the "timestamp" field. It's identical to TimestampEQ.

func TimestampEQ

func TimestampEQ(v time.Time) predicate.Visit

TimestampEQ applies the EQ predicate on the "timestamp" field.

func TimestampGT

func TimestampGT(v time.Time) predicate.Visit

TimestampGT applies the GT predicate on the "timestamp" field.

func TimestampGTE

func TimestampGTE(v time.Time) predicate.Visit

TimestampGTE applies the GTE predicate on the "timestamp" field.

func TimestampIn

func TimestampIn(vs ...time.Time) predicate.Visit

TimestampIn applies the In predicate on the "timestamp" field.

func TimestampLT

func TimestampLT(v time.Time) predicate.Visit

TimestampLT applies the LT predicate on the "timestamp" field.

func TimestampLTE

func TimestampLTE(v time.Time) predicate.Visit

TimestampLTE applies the LTE predicate on the "timestamp" field.

func TimestampNEQ

func TimestampNEQ(v time.Time) predicate.Visit

TimestampNEQ applies the NEQ predicate on the "timestamp" field.

func TimestampNotIn

func TimestampNotIn(vs ...time.Time) predicate.Visit

TimestampNotIn applies the NotIn predicate on the "timestamp" field.

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