trackedbreaches

package
v0.0.0-...-4d10510 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the trackedbreaches type in the database.
	Label = "tracked_breaches"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldBreach holds the string denoting the breach field in the database.
	FieldBreach = "breach"
	// FieldOnline holds the string denoting the online field in the database.
	FieldOnline = "online"
	// FieldOwner holds the string denoting the owner field in the database.
	FieldOwner = "owner"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// EdgeLocalbreach holds the string denoting the localbreach edge name in mutations.
	EdgeLocalbreach = "localbreach"
	// EdgeHibp holds the string denoting the hibp edge name in mutations.
	EdgeHibp = "hibp"
	// Table holds the table name of the trackedbreaches in the database.
	Table = "tracked_breaches"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "tracked_breaches"
	// 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 = "owner"
	// LocalbreachTable is the table that holds the localbreach relation/edge. The primary key declared below.
	LocalbreachTable = "tracked_breaches_localbreach"
	// LocalbreachInverseTable is the table name for the LocalBreach entity.
	// It exists in this package in order to avoid circular dependency with the "localbreach" package.
	LocalbreachInverseTable = "local_breaches"
	// HibpTable is the table that holds the hibp relation/edge.
	HibpTable = "hib_ps"
	// HibpInverseTable is the table name for the HIBP entity.
	// It exists in this package in order to avoid circular dependency with the "hibp" package.
	HibpInverseTable = "hib_ps"
	// HibpColumn is the table column denoting the hibp relation/edge.
	HibpColumn = "tracked_breaches_hibp"
)

Variables

View Source
var (
	// DefaultOnline holds the default value on creation for the "online" field.
	DefaultOnline bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for trackedbreaches fields.

View Source
var (
	// LocalbreachPrimaryKey and LocalbreachColumn2 are the table columns denoting the
	// primary key for the localbreach relation (M2M).
	LocalbreachPrimaryKey = []string{"tracked_breaches_id", "local_breach_id"}
)

Functions

func And

And groups predicates with the AND operator between them.

func Breach

Breach applies equality check predicate on the "breach" field. It's identical to BreachEQ.

func BreachEQ

func BreachEQ(v uuid.UUID) predicate.TrackedBreaches

BreachEQ applies the EQ predicate on the "breach" field.

func BreachGT

func BreachGT(v uuid.UUID) predicate.TrackedBreaches

BreachGT applies the GT predicate on the "breach" field.

func BreachGTE

func BreachGTE(v uuid.UUID) predicate.TrackedBreaches

BreachGTE applies the GTE predicate on the "breach" field.

func BreachIn

func BreachIn(vs ...uuid.UUID) predicate.TrackedBreaches

BreachIn applies the In predicate on the "breach" field.

func BreachLT

func BreachLT(v uuid.UUID) predicate.TrackedBreaches

BreachLT applies the LT predicate on the "breach" field.

func BreachLTE

func BreachLTE(v uuid.UUID) predicate.TrackedBreaches

BreachLTE applies the LTE predicate on the "breach" field.

func BreachNEQ

func BreachNEQ(v uuid.UUID) predicate.TrackedBreaches

BreachNEQ applies the NEQ predicate on the "breach" field.

func BreachNotIn

func BreachNotIn(vs ...uuid.UUID) predicate.TrackedBreaches

BreachNotIn applies the NotIn predicate on the "breach" field.

func HasHibp

func HasHibp() predicate.TrackedBreaches

HasHibp applies the HasEdge predicate on the "hibp" edge.

func HasHibpWith

func HasHibpWith(preds ...predicate.HIBP) predicate.TrackedBreaches

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

func HasLocalbreach

func HasLocalbreach() predicate.TrackedBreaches

HasLocalbreach applies the HasEdge predicate on the "localbreach" edge.

func HasLocalbreachWith

func HasLocalbreachWith(preds ...predicate.LocalBreach) predicate.TrackedBreaches

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

func HasUser

func HasUser() predicate.TrackedBreaches

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.TrackedBreaches

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.TrackedBreaches

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.TrackedBreaches

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Online

func Online(v bool) predicate.TrackedBreaches

Online applies equality check predicate on the "online" field. It's identical to OnlineEQ.

func OnlineEQ

func OnlineEQ(v bool) predicate.TrackedBreaches

OnlineEQ applies the EQ predicate on the "online" field.

func OnlineNEQ

func OnlineNEQ(v bool) predicate.TrackedBreaches

OnlineNEQ applies the NEQ predicate on the "online" field.

func Or

Or groups predicates with the OR operator between them.

func Owner

Owner applies equality check predicate on the "owner" field. It's identical to OwnerEQ.

func OwnerEQ

OwnerEQ applies the EQ predicate on the "owner" field.

func OwnerIn

func OwnerIn(vs ...uuid.UUID) predicate.TrackedBreaches

OwnerIn applies the In predicate on the "owner" field.

func OwnerNEQ

func OwnerNEQ(v uuid.UUID) predicate.TrackedBreaches

OwnerNEQ applies the NEQ predicate on the "owner" field.

func OwnerNotIn

func OwnerNotIn(vs ...uuid.UUID) predicate.TrackedBreaches

OwnerNotIn applies the NotIn predicate on the "owner" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the TrackedBreaches queries.

func ByBreach

func ByBreach(opts ...sql.OrderTermOption) OrderOption

ByBreach orders the results by the breach field.

func ByHibp

func ByHibp(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByHibp orders the results by hibp terms.

func ByHibpCount

func ByHibpCount(opts ...sql.OrderTermOption) OrderOption

ByHibpCount orders the results by hibp count.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByLocalbreach

func ByLocalbreach(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByLocalbreach orders the results by localbreach terms.

func ByLocalbreachCount

func ByLocalbreachCount(opts ...sql.OrderTermOption) OrderOption

ByLocalbreachCount orders the results by localbreach count.

func ByOnline

func ByOnline(opts ...sql.OrderTermOption) OrderOption

ByOnline orders the results by the online field.

func ByOwner

func ByOwner(opts ...sql.OrderTermOption) OrderOption

ByOwner orders the results by the owner field.

func ByUserField

func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption

ByUserField orders the results by user field.

Jump to

Keyboard shortcuts

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