Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Person) predicate.Person
- func Email(v string) predicate.Person
- func EmailContains(v string) predicate.Person
- func EmailContainsFold(v string) predicate.Person
- func EmailEQ(v string) predicate.Person
- func EmailEqualFold(v string) predicate.Person
- func EmailGT(v string) predicate.Person
- func EmailGTE(v string) predicate.Person
- func EmailHasPrefix(v string) predicate.Person
- func EmailHasSuffix(v string) predicate.Person
- func EmailIn(vs ...string) predicate.Person
- func EmailLT(v string) predicate.Person
- func EmailLTE(v string) predicate.Person
- func EmailNEQ(v string) predicate.Person
- func EmailNotIn(vs ...string) predicate.Person
- func HasContactOwner() predicate.Person
- func HasContactOwnerWith(preds ...predicate.Person) predicate.Person
- func HasContacts() predicate.Person
- func HasContactsWith(preds ...predicate.Person) predicate.Person
- func HasMetadata() predicate.Person
- func HasMetadataWith(preds ...predicate.Metadata) predicate.Person
- func HasNode() predicate.Person
- func HasNodeWith(preds ...predicate.Node) predicate.Person
- func ID(id int) predicate.Person
- func IDEQ(id int) predicate.Person
- func IDGT(id int) predicate.Person
- func IDGTE(id int) predicate.Person
- func IDIn(ids ...int) predicate.Person
- func IDLT(id int) predicate.Person
- func IDLTE(id int) predicate.Person
- func IDNEQ(id int) predicate.Person
- func IDNotIn(ids ...int) predicate.Person
- func IsOrg(v bool) predicate.Person
- func IsOrgEQ(v bool) predicate.Person
- func IsOrgNEQ(v bool) predicate.Person
- func Name(v string) predicate.Person
- func NameContains(v string) predicate.Person
- func NameContainsFold(v string) predicate.Person
- func NameEQ(v string) predicate.Person
- func NameEqualFold(v string) predicate.Person
- func NameGT(v string) predicate.Person
- func NameGTE(v string) predicate.Person
- func NameHasPrefix(v string) predicate.Person
- func NameHasSuffix(v string) predicate.Person
- func NameIn(vs ...string) predicate.Person
- func NameLT(v string) predicate.Person
- func NameLTE(v string) predicate.Person
- func NameNEQ(v string) predicate.Person
- func NameNotIn(vs ...string) predicate.Person
- func Not(p predicate.Person) predicate.Person
- func Or(predicates ...predicate.Person) predicate.Person
- func Phone(v string) predicate.Person
- func PhoneContains(v string) predicate.Person
- func PhoneContainsFold(v string) predicate.Person
- func PhoneEQ(v string) predicate.Person
- func PhoneEqualFold(v string) predicate.Person
- func PhoneGT(v string) predicate.Person
- func PhoneGTE(v string) predicate.Person
- func PhoneHasPrefix(v string) predicate.Person
- func PhoneHasSuffix(v string) predicate.Person
- func PhoneIn(vs ...string) predicate.Person
- func PhoneLT(v string) predicate.Person
- func PhoneLTE(v string) predicate.Person
- func PhoneNEQ(v string) predicate.Person
- func PhoneNotIn(vs ...string) predicate.Person
- func URL(v string) predicate.Person
- func URLContains(v string) predicate.Person
- func URLContainsFold(v string) predicate.Person
- func URLEQ(v string) predicate.Person
- func URLEqualFold(v string) predicate.Person
- func URLGT(v string) predicate.Person
- func URLGTE(v string) predicate.Person
- func URLHasPrefix(v string) predicate.Person
- func URLHasSuffix(v string) predicate.Person
- func URLIn(vs ...string) predicate.Person
- func URLLT(v string) predicate.Person
- func URLLTE(v string) predicate.Person
- func URLNEQ(v string) predicate.Person
- func URLNotIn(vs ...string) predicate.Person
- func ValidColumn(column string) bool
- type OrderOption
- func ByContactOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByContacts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByContactsCount(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsOrg(opts ...sql.OrderTermOption) OrderOption
- func ByMetadataField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByNodeField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPhone(opts ...sql.OrderTermOption) OrderOption
- func ByURL(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldName, FieldIsOrg, FieldEmail, FieldURL, FieldPhone, }
Columns holds all SQL columns for person fields.
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 Email ¶
Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
func EmailContains ¶
EmailContains applies the Contains predicate on the "email" field.
func EmailContainsFold ¶
EmailContainsFold applies the ContainsFold predicate on the "email" field.
func EmailEqualFold ¶
EmailEqualFold applies the EqualFold predicate on the "email" field.
func EmailHasPrefix ¶
EmailHasPrefix applies the HasPrefix predicate on the "email" field.
func EmailHasSuffix ¶
EmailHasSuffix applies the HasSuffix predicate on the "email" field.
func EmailNotIn ¶
EmailNotIn applies the NotIn predicate on the "email" field.
func HasContactOwner ¶
HasContactOwner applies the HasEdge predicate on the "contact_owner" edge.
func HasContactOwnerWith ¶
HasContactOwnerWith applies the HasEdge predicate on the "contact_owner" edge with a given conditions (other predicates).
func HasContacts ¶
HasContacts applies the HasEdge predicate on the "contacts" edge.
func HasContactsWith ¶
HasContactsWith applies the HasEdge predicate on the "contacts" edge with a given conditions (other predicates).
func HasMetadata ¶
HasMetadata applies the HasEdge predicate on the "metadata" edge.
func HasMetadataWith ¶
HasMetadataWith applies the HasEdge predicate on the "metadata" edge with a given conditions (other predicates).
func HasNodeWith ¶
HasNodeWith applies the HasEdge predicate on the "node" edge with a given conditions (other predicates).
func IsOrg ¶
IsOrg applies equality check predicate on the "is_org" field. It's identical to IsOrgEQ.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func Phone ¶
Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.
func PhoneContains ¶
PhoneContains applies the Contains predicate on the "phone" field.
func PhoneContainsFold ¶
PhoneContainsFold applies the ContainsFold predicate on the "phone" field.
func PhoneEqualFold ¶
PhoneEqualFold applies the EqualFold predicate on the "phone" field.
func PhoneHasPrefix ¶
PhoneHasPrefix applies the HasPrefix predicate on the "phone" field.
func PhoneHasSuffix ¶
PhoneHasSuffix applies the HasSuffix predicate on the "phone" field.
func PhoneNotIn ¶
PhoneNotIn applies the NotIn predicate on the "phone" field.
func URLContains ¶
URLContains applies the Contains predicate on the "url" field.
func URLContainsFold ¶
URLContainsFold applies the ContainsFold predicate on the "url" field.
func URLEqualFold ¶
URLEqualFold applies the EqualFold predicate on the "url" field.
func URLHasPrefix ¶
URLHasPrefix applies the HasPrefix predicate on the "url" field.
func URLHasSuffix ¶
URLHasSuffix applies the HasSuffix predicate on the "url" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.