person

package
v0.0.0-...-7acab80 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the person type in the database.
	Label = "person"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldIsOrg holds the string denoting the is_org field in the database.
	FieldIsOrg = "is_org"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldURL holds the string denoting the url field in the database.
	FieldURL = "url"
	// FieldPhone holds the string denoting the phone field in the database.
	FieldPhone = "phone"
	// EdgeContactOwner holds the string denoting the contact_owner edge name in mutations.
	EdgeContactOwner = "contact_owner"
	// EdgeContacts holds the string denoting the contacts edge name in mutations.
	EdgeContacts = "contacts"
	// EdgeMetadata holds the string denoting the metadata edge name in mutations.
	EdgeMetadata = "metadata"
	// EdgeNode holds the string denoting the node edge name in mutations.
	EdgeNode = "node"
	// Table holds the table name of the person in the database.
	Table = "persons"
	// ContactOwnerTable is the table that holds the contact_owner relation/edge.
	ContactOwnerTable = "persons"
	// ContactOwnerColumn is the table column denoting the contact_owner relation/edge.
	ContactOwnerColumn = "person_contacts"
	// ContactsTable is the table that holds the contacts relation/edge.
	ContactsTable = "persons"
	// ContactsColumn is the table column denoting the contacts relation/edge.
	ContactsColumn = "person_contacts"
	// MetadataTable is the table that holds the metadata relation/edge.
	MetadataTable = "persons"
	// MetadataInverseTable is the table name for the Metadata entity.
	// It exists in this package in order to avoid circular dependency with the "metadata" package.
	MetadataInverseTable = "metadata"
	// MetadataColumn is the table column denoting the metadata relation/edge.
	MetadataColumn = "metadata_authors"
	// NodeTable is the table that holds the node relation/edge.
	NodeTable = "persons"
	// NodeInverseTable is the table name for the Node entity.
	// It exists in this package in order to avoid circular dependency with the "node" package.
	NodeInverseTable = "nodes"
	// NodeColumn is the table column denoting the node relation/edge.
	NodeColumn = "node_originators"
)

Variables

Columns holds all SQL columns for person fields.

View Source
var ForeignKeys = []string{
	"metadata_authors",
	"node_suppliers",
	"node_originators",
	"person_contacts",
}

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

Functions

func And

func And(predicates ...predicate.Person) predicate.Person

And groups predicates with the AND operator between them.

func Email

func Email(v string) predicate.Person

Email applies equality check predicate on the "email" field. It's identical to EmailEQ.

func EmailContains

func EmailContains(v string) predicate.Person

EmailContains applies the Contains predicate on the "email" field.

func EmailContainsFold

func EmailContainsFold(v string) predicate.Person

EmailContainsFold applies the ContainsFold predicate on the "email" field.

func EmailEQ

func EmailEQ(v string) predicate.Person

EmailEQ applies the EQ predicate on the "email" field.

func EmailEqualFold

func EmailEqualFold(v string) predicate.Person

EmailEqualFold applies the EqualFold predicate on the "email" field.

func EmailGT

func EmailGT(v string) predicate.Person

EmailGT applies the GT predicate on the "email" field.

func EmailGTE

func EmailGTE(v string) predicate.Person

EmailGTE applies the GTE predicate on the "email" field.

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.Person

EmailHasPrefix applies the HasPrefix predicate on the "email" field.

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.Person

EmailHasSuffix applies the HasSuffix predicate on the "email" field.

func EmailIn

func EmailIn(vs ...string) predicate.Person

EmailIn applies the In predicate on the "email" field.

func EmailLT

func EmailLT(v string) predicate.Person

EmailLT applies the LT predicate on the "email" field.

func EmailLTE

func EmailLTE(v string) predicate.Person

EmailLTE applies the LTE predicate on the "email" field.

func EmailNEQ

func EmailNEQ(v string) predicate.Person

EmailNEQ applies the NEQ predicate on the "email" field.

func EmailNotIn

func EmailNotIn(vs ...string) predicate.Person

EmailNotIn applies the NotIn predicate on the "email" field.

func HasContactOwner

func HasContactOwner() predicate.Person

HasContactOwner applies the HasEdge predicate on the "contact_owner" edge.

func HasContactOwnerWith

func HasContactOwnerWith(preds ...predicate.Person) predicate.Person

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

func HasContacts

func HasContacts() predicate.Person

HasContacts applies the HasEdge predicate on the "contacts" edge.

func HasContactsWith

func HasContactsWith(preds ...predicate.Person) predicate.Person

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

func HasMetadata

func HasMetadata() predicate.Person

HasMetadata applies the HasEdge predicate on the "metadata" edge.

func HasMetadataWith

func HasMetadataWith(preds ...predicate.Metadata) predicate.Person

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

func HasNode

func HasNode() predicate.Person

HasNode applies the HasEdge predicate on the "node" edge.

func HasNodeWith

func HasNodeWith(preds ...predicate.Node) predicate.Person

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

func ID

func ID(id int) predicate.Person

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Person

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Person

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Person

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Person

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Person

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Person

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IsOrg

func IsOrg(v bool) predicate.Person

IsOrg applies equality check predicate on the "is_org" field. It's identical to IsOrgEQ.

func IsOrgEQ

func IsOrgEQ(v bool) predicate.Person

IsOrgEQ applies the EQ predicate on the "is_org" field.

func IsOrgNEQ

func IsOrgNEQ(v bool) predicate.Person

IsOrgNEQ applies the NEQ predicate on the "is_org" field.

func Name

func Name(v string) predicate.Person

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Person

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Person

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Person

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Person

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Person

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Person

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Person

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Person

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Person

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Person

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Person

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Person

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Person

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Person) predicate.Person

Or groups predicates with the OR operator between them.

func Phone

func Phone(v string) predicate.Person

Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.

func PhoneContains

func PhoneContains(v string) predicate.Person

PhoneContains applies the Contains predicate on the "phone" field.

func PhoneContainsFold

func PhoneContainsFold(v string) predicate.Person

PhoneContainsFold applies the ContainsFold predicate on the "phone" field.

func PhoneEQ

func PhoneEQ(v string) predicate.Person

PhoneEQ applies the EQ predicate on the "phone" field.

func PhoneEqualFold

func PhoneEqualFold(v string) predicate.Person

PhoneEqualFold applies the EqualFold predicate on the "phone" field.

func PhoneGT

func PhoneGT(v string) predicate.Person

PhoneGT applies the GT predicate on the "phone" field.

func PhoneGTE

func PhoneGTE(v string) predicate.Person

PhoneGTE applies the GTE predicate on the "phone" field.

func PhoneHasPrefix

func PhoneHasPrefix(v string) predicate.Person

PhoneHasPrefix applies the HasPrefix predicate on the "phone" field.

func PhoneHasSuffix

func PhoneHasSuffix(v string) predicate.Person

PhoneHasSuffix applies the HasSuffix predicate on the "phone" field.

func PhoneIn

func PhoneIn(vs ...string) predicate.Person

PhoneIn applies the In predicate on the "phone" field.

func PhoneLT

func PhoneLT(v string) predicate.Person

PhoneLT applies the LT predicate on the "phone" field.

func PhoneLTE

func PhoneLTE(v string) predicate.Person

PhoneLTE applies the LTE predicate on the "phone" field.

func PhoneNEQ

func PhoneNEQ(v string) predicate.Person

PhoneNEQ applies the NEQ predicate on the "phone" field.

func PhoneNotIn

func PhoneNotIn(vs ...string) predicate.Person

PhoneNotIn applies the NotIn predicate on the "phone" field.

func URL

func URL(v string) predicate.Person

URL applies equality check predicate on the "url" field. It's identical to URLEQ.

func URLContains

func URLContains(v string) predicate.Person

URLContains applies the Contains predicate on the "url" field.

func URLContainsFold

func URLContainsFold(v string) predicate.Person

URLContainsFold applies the ContainsFold predicate on the "url" field.

func URLEQ

func URLEQ(v string) predicate.Person

URLEQ applies the EQ predicate on the "url" field.

func URLEqualFold

func URLEqualFold(v string) predicate.Person

URLEqualFold applies the EqualFold predicate on the "url" field.

func URLGT

func URLGT(v string) predicate.Person

URLGT applies the GT predicate on the "url" field.

func URLGTE

func URLGTE(v string) predicate.Person

URLGTE applies the GTE predicate on the "url" field.

func URLHasPrefix

func URLHasPrefix(v string) predicate.Person

URLHasPrefix applies the HasPrefix predicate on the "url" field.

func URLHasSuffix

func URLHasSuffix(v string) predicate.Person

URLHasSuffix applies the HasSuffix predicate on the "url" field.

func URLIn

func URLIn(vs ...string) predicate.Person

URLIn applies the In predicate on the "url" field.

func URLLT

func URLLT(v string) predicate.Person

URLLT applies the LT predicate on the "url" field.

func URLLTE

func URLLTE(v string) predicate.Person

URLLTE applies the LTE predicate on the "url" field.

func URLNEQ

func URLNEQ(v string) predicate.Person

URLNEQ applies the NEQ predicate on the "url" field.

func URLNotIn

func URLNotIn(vs ...string) predicate.Person

URLNotIn applies the NotIn predicate on the "url" 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 Person queries.

func ByContactOwnerField

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

ByContactOwnerField orders the results by contact_owner field.

func ByContacts

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

ByContacts orders the results by contacts terms.

func ByContactsCount

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

ByContactsCount orders the results by contacts count.

func ByEmail

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

ByEmail orders the results by the email field.

func ByID

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

ByID orders the results by the id field.

func ByIsOrg

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

ByIsOrg orders the results by the is_org field.

func ByMetadataField

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

ByMetadataField orders the results by metadata field.

func ByName

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

ByName orders the results by the name field.

func ByNodeField

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

ByNodeField orders the results by node field.

func ByPhone

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

ByPhone orders the results by the phone field.

func ByURL

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

ByURL orders the results by the url field.

Jump to

Keyboard shortcuts

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