Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Contact) predicate.Contact
- func CreatedAt(v time.Time) predicate.Contact
- func CreatedAtEQ(v time.Time) predicate.Contact
- func CreatedAtGT(v time.Time) predicate.Contact
- func CreatedAtGTE(v time.Time) predicate.Contact
- func CreatedAtIn(vs ...time.Time) predicate.Contact
- func CreatedAtLT(v time.Time) predicate.Contact
- func CreatedAtLTE(v time.Time) predicate.Contact
- func CreatedAtNEQ(v time.Time) predicate.Contact
- func CreatedAtNotIn(vs ...time.Time) predicate.Contact
- func DisplayName(v string) predicate.Contact
- func DisplayNameContains(v string) predicate.Contact
- func DisplayNameContainsFold(v string) predicate.Contact
- func DisplayNameEQ(v string) predicate.Contact
- func DisplayNameEqualFold(v string) predicate.Contact
- func DisplayNameGT(v string) predicate.Contact
- func DisplayNameGTE(v string) predicate.Contact
- func DisplayNameHasPrefix(v string) predicate.Contact
- func DisplayNameHasSuffix(v string) predicate.Contact
- func DisplayNameIn(vs ...string) predicate.Contact
- func DisplayNameLT(v string) predicate.Contact
- func DisplayNameLTE(v string) predicate.Contact
- func DisplayNameNEQ(v string) predicate.Contact
- func DisplayNameNotIn(vs ...string) predicate.Contact
- func HasLinkedTo() predicate.Contact
- func HasLinkedToWith(preds ...predicate.User) predicate.Contact
- func HasOwner() predicate.Contact
- func HasOwnerWith(preds ...predicate.User) predicate.Contact
- func ID(id string) predicate.Contact
- func IDEQ(id string) predicate.Contact
- func IDGT(id string) predicate.Contact
- func IDGTE(id string) predicate.Contact
- func IDIn(ids ...string) predicate.Contact
- func IDLT(id string) predicate.Contact
- func IDLTE(id string) predicate.Contact
- func IDNEQ(id string) predicate.Contact
- func IDNotIn(ids ...string) predicate.Contact
- func ImageURL(v string) predicate.Contact
- func ImageURLContains(v string) predicate.Contact
- func ImageURLContainsFold(v string) predicate.Contact
- func ImageURLEQ(v string) predicate.Contact
- func ImageURLEqualFold(v string) predicate.Contact
- func ImageURLGT(v string) predicate.Contact
- func ImageURLGTE(v string) predicate.Contact
- func ImageURLHasPrefix(v string) predicate.Contact
- func ImageURLHasSuffix(v string) predicate.Contact
- func ImageURLIn(vs ...string) predicate.Contact
- func ImageURLIsNil() predicate.Contact
- func ImageURLLT(v string) predicate.Contact
- func ImageURLLTE(v string) predicate.Contact
- func ImageURLNEQ(v string) predicate.Contact
- func ImageURLNotIn(vs ...string) predicate.Contact
- func ImageURLNotNil() predicate.Contact
- func IsActive(v bool) predicate.Contact
- func IsActiveEQ(v bool) predicate.Contact
- func IsActiveNEQ(v bool) predicate.Contact
- func LinkedToUser(v string) predicate.Contact
- func LinkedToUserContains(v string) predicate.Contact
- func LinkedToUserContainsFold(v string) predicate.Contact
- func LinkedToUserEQ(v string) predicate.Contact
- func LinkedToUserEqualFold(v string) predicate.Contact
- func LinkedToUserGT(v string) predicate.Contact
- func LinkedToUserGTE(v string) predicate.Contact
- func LinkedToUserHasPrefix(v string) predicate.Contact
- func LinkedToUserHasSuffix(v string) predicate.Contact
- func LinkedToUserIn(vs ...string) predicate.Contact
- func LinkedToUserIsNil() predicate.Contact
- func LinkedToUserLT(v string) predicate.Contact
- func LinkedToUserLTE(v string) predicate.Contact
- func LinkedToUserNEQ(v string) predicate.Contact
- func LinkedToUserNotIn(vs ...string) predicate.Contact
- func LinkedToUserNotNil() predicate.Contact
- func Not(p predicate.Contact) predicate.Contact
- func Or(predicates ...predicate.Contact) predicate.Contact
- func UpdatedAt(v time.Time) predicate.Contact
- func UpdatedAtEQ(v time.Time) predicate.Contact
- func UpdatedAtGT(v time.Time) predicate.Contact
- func UpdatedAtGTE(v time.Time) predicate.Contact
- func UpdatedAtIn(vs ...time.Time) predicate.Contact
- func UpdatedAtLT(v time.Time) predicate.Contact
- func UpdatedAtLTE(v time.Time) predicate.Contact
- func UpdatedAtNEQ(v time.Time) predicate.Contact
- func UpdatedAtNotIn(vs ...time.Time) predicate.Contact
- func ValidColumn(column string) bool
- func Version(v uint32) predicate.Contact
- func VersionEQ(v uint32) predicate.Contact
- func VersionGT(v uint32) predicate.Contact
- func VersionGTE(v uint32) predicate.Contact
- func VersionIn(vs ...uint32) predicate.Contact
- func VersionLT(v uint32) predicate.Contact
- func VersionLTE(v uint32) predicate.Contact
- func VersionNEQ(v uint32) predicate.Contact
- func VersionNotIn(vs ...uint32) predicate.Contact
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" // FieldIsActive holds the string denoting the is_active field in the database. FieldIsActive = "is_active" // FieldVersion holds the string denoting the version field in the database. FieldVersion = "version" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldDisplayName holds the string denoting the display_name field in the database. FieldDisplayName = "display_name" // FieldLinkedToUser holds the string denoting the linked_to_user field in the database. FieldLinkedToUser = "linked_to_user" // FieldImageURL holds the string denoting the image_url field in the database. FieldImageURL = "image_url" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // EdgeLinkedTo holds the string denoting the linked_to edge name in mutations. EdgeLinkedTo = "linked_to" // Table holds the table name of the contact in the database. Table = "contacts" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "contacts" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. OwnerInverseTable = "users" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "user_contacts" // LinkedToTable is the table that holds the linked_to relation/edge. LinkedToTable = "contacts" // LinkedToInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. LinkedToInverseTable = "users" // LinkedToColumn is the table column denoting the linked_to relation/edge. LinkedToColumn = "linked_to_user" )
Variables ¶
var ( // DisplayNameValidator is a validator for the "display_name" field. It is called by the builders before save. DisplayNameValidator func(string) error // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )
var Columns = []string{ FieldID, FieldIsActive, FieldVersion, FieldCreatedAt, FieldUpdatedAt, FieldDisplayName, FieldLinkedToUser, FieldImageURL, }
Columns holds all SQL columns for contact fields.
var ForeignKeys = []string{
"user_contacts",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "contacts" table and are not defined as standalone fields in the schema.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DisplayName ¶
DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.
func DisplayNameContains ¶
DisplayNameContains applies the Contains predicate on the "display_name" field.
func DisplayNameContainsFold ¶
DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.
func DisplayNameEQ ¶
DisplayNameEQ applies the EQ predicate on the "display_name" field.
func DisplayNameEqualFold ¶
DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.
func DisplayNameGT ¶
DisplayNameGT applies the GT predicate on the "display_name" field.
func DisplayNameGTE ¶
DisplayNameGTE applies the GTE predicate on the "display_name" field.
func DisplayNameHasPrefix ¶
DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.
func DisplayNameHasSuffix ¶
DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.
func DisplayNameIn ¶
DisplayNameIn applies the In predicate on the "display_name" field.
func DisplayNameLT ¶
DisplayNameLT applies the LT predicate on the "display_name" field.
func DisplayNameLTE ¶
DisplayNameLTE applies the LTE predicate on the "display_name" field.
func DisplayNameNEQ ¶
DisplayNameNEQ applies the NEQ predicate on the "display_name" field.
func DisplayNameNotIn ¶
DisplayNameNotIn applies the NotIn predicate on the "display_name" field.
func HasLinkedTo ¶
HasLinkedTo applies the HasEdge predicate on the "linked_to" edge.
func HasLinkedToWith ¶
HasLinkedToWith applies the HasEdge predicate on the "linked_to" edge with a given conditions (other predicates).
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func ImageURL ¶
ImageURL applies equality check predicate on the "image_url" field. It's identical to ImageURLEQ.
func ImageURLContains ¶
ImageURLContains applies the Contains predicate on the "image_url" field.
func ImageURLContainsFold ¶
ImageURLContainsFold applies the ContainsFold predicate on the "image_url" field.
func ImageURLEQ ¶
ImageURLEQ applies the EQ predicate on the "image_url" field.
func ImageURLEqualFold ¶
ImageURLEqualFold applies the EqualFold predicate on the "image_url" field.
func ImageURLGT ¶
ImageURLGT applies the GT predicate on the "image_url" field.
func ImageURLGTE ¶
ImageURLGTE applies the GTE predicate on the "image_url" field.
func ImageURLHasPrefix ¶
ImageURLHasPrefix applies the HasPrefix predicate on the "image_url" field.
func ImageURLHasSuffix ¶
ImageURLHasSuffix applies the HasSuffix predicate on the "image_url" field.
func ImageURLIn ¶
ImageURLIn applies the In predicate on the "image_url" field.
func ImageURLIsNil ¶
ImageURLIsNil applies the IsNil predicate on the "image_url" field.
func ImageURLLT ¶
ImageURLLT applies the LT predicate on the "image_url" field.
func ImageURLLTE ¶
ImageURLLTE applies the LTE predicate on the "image_url" field.
func ImageURLNEQ ¶
ImageURLNEQ applies the NEQ predicate on the "image_url" field.
func ImageURLNotIn ¶
ImageURLNotIn applies the NotIn predicate on the "image_url" field.
func ImageURLNotNil ¶
ImageURLNotNil applies the NotNil predicate on the "image_url" field.
func IsActive ¶
IsActive applies equality check predicate on the "is_active" field. It's identical to IsActiveEQ.
func IsActiveEQ ¶
IsActiveEQ applies the EQ predicate on the "is_active" field.
func IsActiveNEQ ¶
IsActiveNEQ applies the NEQ predicate on the "is_active" field.
func LinkedToUser ¶
LinkedToUser applies equality check predicate on the "linked_to_user" field. It's identical to LinkedToUserEQ.
func LinkedToUserContains ¶
LinkedToUserContains applies the Contains predicate on the "linked_to_user" field.
func LinkedToUserContainsFold ¶
LinkedToUserContainsFold applies the ContainsFold predicate on the "linked_to_user" field.
func LinkedToUserEQ ¶
LinkedToUserEQ applies the EQ predicate on the "linked_to_user" field.
func LinkedToUserEqualFold ¶
LinkedToUserEqualFold applies the EqualFold predicate on the "linked_to_user" field.
func LinkedToUserGT ¶
LinkedToUserGT applies the GT predicate on the "linked_to_user" field.
func LinkedToUserGTE ¶
LinkedToUserGTE applies the GTE predicate on the "linked_to_user" field.
func LinkedToUserHasPrefix ¶
LinkedToUserHasPrefix applies the HasPrefix predicate on the "linked_to_user" field.
func LinkedToUserHasSuffix ¶
LinkedToUserHasSuffix applies the HasSuffix predicate on the "linked_to_user" field.
func LinkedToUserIn ¶
LinkedToUserIn applies the In predicate on the "linked_to_user" field.
func LinkedToUserIsNil ¶
LinkedToUserIsNil applies the IsNil predicate on the "linked_to_user" field.
func LinkedToUserLT ¶
LinkedToUserLT applies the LT predicate on the "linked_to_user" field.
func LinkedToUserLTE ¶
LinkedToUserLTE applies the LTE predicate on the "linked_to_user" field.
func LinkedToUserNEQ ¶
LinkedToUserNEQ applies the NEQ predicate on the "linked_to_user" field.
func LinkedToUserNotIn ¶
LinkedToUserNotIn applies the NotIn predicate on the "linked_to_user" field.
func LinkedToUserNotNil ¶
LinkedToUserNotNil applies the NotNil predicate on the "linked_to_user" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Version ¶
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionGTE ¶
VersionGTE applies the GTE predicate on the "version" field.
func VersionLTE ¶
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶
VersionNotIn applies the NotIn predicate on the "version" field.
Types ¶
This section is empty.