Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Contact) predicate.Contact
- func FromAccount(v bool) predicate.Contact
- func FromAccountEQ(v bool) predicate.Contact
- func FromAccountNEQ(v bool) predicate.Contact
- func HasOwner() predicate.Contact
- func HasOwnerWith(preds ...predicate.Person) predicate.Contact
- func ID(id uuid.UUID) predicate.Contact
- func IDEQ(id uuid.UUID) predicate.Contact
- func IDGT(id uuid.UUID) predicate.Contact
- func IDGTE(id uuid.UUID) predicate.Contact
- func IDIn(ids ...uuid.UUID) predicate.Contact
- func IDLT(id uuid.UUID) predicate.Contact
- func IDLTE(id uuid.UUID) predicate.Contact
- func IDNEQ(id uuid.UUID) predicate.Contact
- func IDNotIn(ids ...uuid.UUID) predicate.Contact
- func KindEQ(v Kind) predicate.Contact
- func KindIn(vs ...Kind) predicate.Contact
- func KindNEQ(v Kind) predicate.Contact
- func KindNotIn(vs ...Kind) predicate.Contact
- func KindValidator(k Kind) error
- func Name(v string) predicate.Contact
- func NameContains(v string) predicate.Contact
- func NameContainsFold(v string) predicate.Contact
- func NameEQ(v string) predicate.Contact
- func NameEqualFold(v string) predicate.Contact
- func NameGT(v string) predicate.Contact
- func NameGTE(v string) predicate.Contact
- func NameHasPrefix(v string) predicate.Contact
- func NameHasSuffix(v string) predicate.Contact
- func NameIn(vs ...string) predicate.Contact
- func NameLT(v string) predicate.Contact
- func NameLTE(v string) predicate.Contact
- func NameNEQ(v string) predicate.Contact
- func NameNotIn(vs ...string) predicate.Contact
- func Not(p predicate.Contact) predicate.Contact
- func Or(predicates ...predicate.Contact) predicate.Contact
- func Principal(v bool) predicate.Contact
- func PrincipalEQ(v bool) predicate.Contact
- func PrincipalNEQ(v bool) predicate.Contact
- func Validated(v bool) predicate.Contact
- func ValidatedEQ(v bool) predicate.Contact
- func ValidatedNEQ(v bool) predicate.Contact
- func Value(v string) predicate.Contact
- func ValueContains(v string) predicate.Contact
- func ValueContainsFold(v string) predicate.Contact
- func ValueEQ(v string) predicate.Contact
- func ValueEqualFold(v string) predicate.Contact
- func ValueGT(v string) predicate.Contact
- func ValueGTE(v string) predicate.Contact
- func ValueHasPrefix(v string) predicate.Contact
- func ValueHasSuffix(v string) predicate.Contact
- func ValueIn(vs ...string) predicate.Contact
- func ValueLT(v string) predicate.Contact
- func ValueLTE(v string) predicate.Contact
- func ValueNEQ(v string) predicate.Contact
- func ValueNotIn(vs ...string) predicate.Contact
- type Kind
Constants ¶
const ( // Label holds the string label denoting the contact type in the database. Label = "contact" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name vertex property in the database. FieldName = "name" // FieldValue holds the string denoting the value vertex property in the database. FieldValue = "value" // FieldKind holds the string denoting the kind vertex property in the database. FieldKind = "kind" // FieldPrincipal holds the string denoting the principal vertex property in the database. FieldPrincipal = "principal" // FieldValidated holds the string denoting the validated vertex property in the database. FieldValidated = "validated" // FieldFromAccount holds the string denoting the fromaccount vertex property in the database. FieldFromAccount = "from_account" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // Table holds the table name of the contact in the database. Table = "contacts" // OwnerTable is the table the holds the owner relation/edge. OwnerTable = "contacts" // OwnerInverseTable is the table name for the Person entity. // It exists in this package in order to avoid circular dependency with the "person" package. OwnerInverseTable = "persons" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "person_contacts" )
const DefaultKind = KindEmail
KindEmail is the default Kind.
Variables ¶
var ( // ValueValidator is a validator for the "value" field. It is called by the builders before save. ValueValidator func(string) error // DefaultFromAccount holds the default value on creation for the fromAccount field. DefaultFromAccount bool )
var Columns = []string{ FieldID, FieldName, FieldValue, FieldKind, FieldPrincipal, FieldValidated, FieldFromAccount, }
Columns holds all SQL columns for contact fields.
var ForeignKeys = []string{
"person_contacts",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Contact type.
Functions ¶
func FromAccount ¶
FromAccount applies equality check predicate on the "fromAccount" field. It's identical to FromAccountEQ.
func FromAccountEQ ¶
FromAccountEQ applies the EQ predicate on the "fromAccount" field.
func FromAccountNEQ ¶
FromAccountNEQ applies the NEQ predicate on the "fromAccount" field.
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func KindValidator ¶
KindValidator is a validator for the "k" field enum values. It is called by the builders before save.
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 Principal ¶
Principal applies equality check predicate on the "principal" field. It's identical to PrincipalEQ.
func PrincipalEQ ¶
PrincipalEQ applies the EQ predicate on the "principal" field.
func PrincipalNEQ ¶
PrincipalNEQ applies the NEQ predicate on the "principal" field.
func Validated ¶
Validated applies equality check predicate on the "validated" field. It's identical to ValidatedEQ.
func ValidatedEQ ¶
ValidatedEQ applies the EQ predicate on the "validated" field.
func ValidatedNEQ ¶
ValidatedNEQ applies the NEQ predicate on the "validated" field.
func Value ¶
Value applies equality check predicate on the "value" field. It's identical to ValueEQ.
func ValueContains ¶
ValueContains applies the Contains predicate on the "value" field.
func ValueContainsFold ¶
ValueContainsFold applies the ContainsFold predicate on the "value" field.
func ValueEqualFold ¶
ValueEqualFold applies the EqualFold predicate on the "value" field.
func ValueHasPrefix ¶
ValueHasPrefix applies the HasPrefix predicate on the "value" field.
func ValueHasSuffix ¶
ValueHasSuffix applies the HasSuffix predicate on the "value" field.
func ValueNotIn ¶
ValueNotIn applies the NotIn predicate on the "value" field.