Documentation ¶
Index ¶
- Constants
- Variables
- func AccountAddress(v string) predicate.User
- func AccountAddressContains(v string) predicate.User
- func AccountAddressContainsFold(v string) predicate.User
- func AccountAddressEQ(v string) predicate.User
- func AccountAddressEqualFold(v string) predicate.User
- func AccountAddressGT(v string) predicate.User
- func AccountAddressGTE(v string) predicate.User
- func AccountAddressHasPrefix(v string) predicate.User
- func AccountAddressHasSuffix(v string) predicate.User
- func AccountAddressIn(vs ...string) predicate.User
- func AccountAddressLT(v string) predicate.User
- func AccountAddressLTE(v string) predicate.User
- func AccountAddressNEQ(v string) predicate.User
- func AccountAddressNotIn(vs ...string) predicate.User
- func Alias(v string) predicate.User
- func AliasContains(v string) predicate.User
- func AliasContainsFold(v string) predicate.User
- func AliasEQ(v string) predicate.User
- func AliasEqualFold(v string) predicate.User
- func AliasGT(v string) predicate.User
- func AliasGTE(v string) predicate.User
- func AliasHasPrefix(v string) predicate.User
- func AliasHasSuffix(v string) predicate.User
- func AliasIn(vs ...string) predicate.User
- func AliasLT(v string) predicate.User
- func AliasLTE(v string) predicate.User
- func AliasNEQ(v string) predicate.User
- func AliasNotIn(vs ...string) predicate.User
- func And(predicates ...predicate.User) predicate.User
- func Bio(v string) predicate.User
- func BioContains(v string) predicate.User
- func BioContainsFold(v string) predicate.User
- func BioEQ(v string) predicate.User
- func BioEqualFold(v string) predicate.User
- func BioGT(v string) predicate.User
- func BioGTE(v string) predicate.User
- func BioHasPrefix(v string) predicate.User
- func BioHasSuffix(v string) predicate.User
- func BioIn(vs ...string) predicate.User
- func BioIsNil() predicate.User
- func BioLT(v string) predicate.User
- func BioLTE(v string) predicate.User
- func BioNEQ(v string) predicate.User
- func BioNotIn(vs ...string) predicate.User
- func BioNotNil() predicate.User
- func CreatedAt(v time.Time) predicate.User
- func CreatedAtEQ(v time.Time) predicate.User
- func CreatedAtGT(v time.Time) predicate.User
- func CreatedAtGTE(v time.Time) predicate.User
- func CreatedAtIn(vs ...time.Time) predicate.User
- func CreatedAtLT(v time.Time) predicate.User
- func CreatedAtLTE(v time.Time) predicate.User
- func CreatedAtNEQ(v time.Time) predicate.User
- func CreatedAtNotIn(vs ...time.Time) predicate.User
- func EmailAddress(v string) predicate.User
- func EmailAddressContains(v string) predicate.User
- func EmailAddressContainsFold(v string) predicate.User
- func EmailAddressEQ(v string) predicate.User
- func EmailAddressEqualFold(v string) predicate.User
- func EmailAddressGT(v string) predicate.User
- func EmailAddressGTE(v string) predicate.User
- func EmailAddressHasPrefix(v string) predicate.User
- func EmailAddressHasSuffix(v string) predicate.User
- func EmailAddressIn(vs ...string) predicate.User
- func EmailAddressLT(v string) predicate.User
- func EmailAddressLTE(v string) predicate.User
- func EmailAddressNEQ(v string) predicate.User
- func EmailAddressNotIn(vs ...string) predicate.User
- func FirstName(v string) predicate.User
- func FirstNameContains(v string) predicate.User
- func FirstNameContainsFold(v string) predicate.User
- func FirstNameEQ(v string) predicate.User
- func FirstNameEqualFold(v string) predicate.User
- func FirstNameGT(v string) predicate.User
- func FirstNameGTE(v string) predicate.User
- func FirstNameHasPrefix(v string) predicate.User
- func FirstNameHasSuffix(v string) predicate.User
- func FirstNameIn(vs ...string) predicate.User
- func FirstNameLT(v string) predicate.User
- func FirstNameLTE(v string) predicate.User
- func FirstNameNEQ(v string) predicate.User
- func FirstNameNotIn(vs ...string) predicate.User
- func HasFollowers() predicate.User
- func HasFollowersWith(preds ...predicate.User) predicate.User
- func HasFollowing() predicate.User
- func HasFollowingWith(preds ...predicate.User) predicate.User
- func HasGroups() predicate.User
- func HasGroupsWith(preds ...predicate.Group) predicate.User
- func HasPosts() predicate.User
- func HasPostsWith(preds ...predicate.Post) predicate.User
- func ID(id uuid.UUID) predicate.User
- func IDEQ(id uuid.UUID) predicate.User
- func IDGT(id uuid.UUID) predicate.User
- func IDGTE(id uuid.UUID) predicate.User
- func IDIn(ids ...uuid.UUID) predicate.User
- func IDLT(id uuid.UUID) predicate.User
- func IDLTE(id uuid.UUID) predicate.User
- func IDNEQ(id uuid.UUID) predicate.User
- func IDNotIn(ids ...uuid.UUID) predicate.User
- func LastName(v string) predicate.User
- func LastNameContains(v string) predicate.User
- func LastNameContainsFold(v string) predicate.User
- func LastNameEQ(v string) predicate.User
- func LastNameEqualFold(v string) predicate.User
- func LastNameGT(v string) predicate.User
- func LastNameGTE(v string) predicate.User
- func LastNameHasPrefix(v string) predicate.User
- func LastNameHasSuffix(v string) predicate.User
- func LastNameIn(vs ...string) predicate.User
- func LastNameLT(v string) predicate.User
- func LastNameLTE(v string) predicate.User
- func LastNameNEQ(v string) predicate.User
- func LastNameNotIn(vs ...string) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func UpdatedAt(v time.Time) predicate.User
- func UpdatedAtEQ(v time.Time) predicate.User
- func UpdatedAtGT(v time.Time) predicate.User
- func UpdatedAtGTE(v time.Time) predicate.User
- func UpdatedAtIn(vs ...time.Time) predicate.User
- func UpdatedAtLT(v time.Time) predicate.User
- func UpdatedAtLTE(v time.Time) predicate.User
- func UpdatedAtNEQ(v time.Time) predicate.User
- func UpdatedAtNotIn(vs ...time.Time) predicate.User
- func ValidColumn(column string) bool
- type OrderOption
- func ByAccountAddress(opts ...sql.OrderTermOption) OrderOption
- func ByAlias(opts ...sql.OrderTermOption) OrderOption
- func ByBio(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEmailAddress(opts ...sql.OrderTermOption) OrderOption
- func ByFirstName(opts ...sql.OrderTermOption) OrderOption
- func ByFollowers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByFollowersCount(opts ...sql.OrderTermOption) OrderOption
- func ByFollowing(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByFollowingCount(opts ...sql.OrderTermOption) OrderOption
- func ByGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByGroupsCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastName(opts ...sql.OrderTermOption) OrderOption
- func ByPosts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPostsCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the user type in the database. Label = "user" // FieldID holds the string denoting the id field in the database. FieldID = "id" // 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" // FieldFirstName holds the string denoting the first_name field in the database. FieldFirstName = "first_name" // FieldLastName holds the string denoting the last_name field in the database. FieldLastName = "last_name" // FieldEmailAddress holds the string denoting the email_address field in the database. FieldEmailAddress = "email_address" // FieldAccountAddress holds the string denoting the account_address field in the database. FieldAccountAddress = "account_address" // FieldAlias holds the string denoting the alias field in the database. FieldAlias = "alias" // FieldBio holds the string denoting the bio field in the database. FieldBio = "bio" // EdgeFollowers holds the string denoting the followers edge name in mutations. EdgeFollowers = "followers" // EdgeFollowing holds the string denoting the following edge name in mutations. EdgeFollowing = "following" // EdgePosts holds the string denoting the posts edge name in mutations. EdgePosts = "posts" // EdgeGroups holds the string denoting the groups edge name in mutations. EdgeGroups = "groups" // Table holds the table name of the user in the database. Table = "users" // FollowersTable is the table that holds the followers relation/edge. The primary key declared below. FollowersTable = "user_following" // FollowingTable is the table that holds the following relation/edge. The primary key declared below. FollowingTable = "user_following" // PostsTable is the table that holds the posts relation/edge. PostsTable = "posts" // PostsInverseTable is the table name for the Post entity. // It exists in this package in order to avoid circular dependency with the "post" package. PostsInverseTable = "posts" // PostsColumn is the table column denoting the posts relation/edge. PostsColumn = "user_posts" // GroupsTable is the table that holds the groups relation/edge. The primary key declared below. GroupsTable = "group_users" // GroupsInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. GroupsInverseTable = "groups" )
Variables ¶
var ( // FollowersPrimaryKey and FollowersColumn2 are the table columns denoting the // primary key for the followers relation (M2M). FollowersPrimaryKey = []string{"user_id", "follower_id"} // FollowingPrimaryKey and FollowingColumn2 are the table columns denoting the // primary key for the following relation (M2M). FollowingPrimaryKey = []string{"user_id", "follower_id"} // GroupsPrimaryKey and GroupsColumn2 are the table columns denoting the // primary key for the groups relation (M2M). GroupsPrimaryKey = []string{"group_id", "user_id"} )
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldFirstName, FieldLastName, FieldEmailAddress, FieldAccountAddress, FieldAlias, FieldBio, }
Columns holds all SQL columns for user fields.
Functions ¶
func AccountAddress ¶
AccountAddress applies equality check predicate on the "account_address" field. It's identical to AccountAddressEQ.
func AccountAddressContains ¶
AccountAddressContains applies the Contains predicate on the "account_address" field.
func AccountAddressContainsFold ¶
AccountAddressContainsFold applies the ContainsFold predicate on the "account_address" field.
func AccountAddressEQ ¶
AccountAddressEQ applies the EQ predicate on the "account_address" field.
func AccountAddressEqualFold ¶
AccountAddressEqualFold applies the EqualFold predicate on the "account_address" field.
func AccountAddressGT ¶
AccountAddressGT applies the GT predicate on the "account_address" field.
func AccountAddressGTE ¶
AccountAddressGTE applies the GTE predicate on the "account_address" field.
func AccountAddressHasPrefix ¶
AccountAddressHasPrefix applies the HasPrefix predicate on the "account_address" field.
func AccountAddressHasSuffix ¶
AccountAddressHasSuffix applies the HasSuffix predicate on the "account_address" field.
func AccountAddressIn ¶
AccountAddressIn applies the In predicate on the "account_address" field.
func AccountAddressLT ¶
AccountAddressLT applies the LT predicate on the "account_address" field.
func AccountAddressLTE ¶
AccountAddressLTE applies the LTE predicate on the "account_address" field.
func AccountAddressNEQ ¶
AccountAddressNEQ applies the NEQ predicate on the "account_address" field.
func AccountAddressNotIn ¶
AccountAddressNotIn applies the NotIn predicate on the "account_address" field.
func Alias ¶
Alias applies equality check predicate on the "alias" field. It's identical to AliasEQ.
func AliasContains ¶
AliasContains applies the Contains predicate on the "alias" field.
func AliasContainsFold ¶
AliasContainsFold applies the ContainsFold predicate on the "alias" field.
func AliasEqualFold ¶
AliasEqualFold applies the EqualFold predicate on the "alias" field.
func AliasHasPrefix ¶
AliasHasPrefix applies the HasPrefix predicate on the "alias" field.
func AliasHasSuffix ¶
AliasHasSuffix applies the HasSuffix predicate on the "alias" field.
func AliasNotIn ¶
AliasNotIn applies the NotIn predicate on the "alias" field.
func BioContains ¶
BioContains applies the Contains predicate on the "bio" field.
func BioContainsFold ¶
BioContainsFold applies the ContainsFold predicate on the "bio" field.
func BioEqualFold ¶
BioEqualFold applies the EqualFold predicate on the "bio" field.
func BioHasPrefix ¶
BioHasPrefix applies the HasPrefix predicate on the "bio" field.
func BioHasSuffix ¶
BioHasSuffix applies the HasSuffix predicate on the "bio" field.
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 EmailAddress ¶
EmailAddress applies equality check predicate on the "email_address" field. It's identical to EmailAddressEQ.
func EmailAddressContains ¶
EmailAddressContains applies the Contains predicate on the "email_address" field.
func EmailAddressContainsFold ¶
EmailAddressContainsFold applies the ContainsFold predicate on the "email_address" field.
func EmailAddressEQ ¶
EmailAddressEQ applies the EQ predicate on the "email_address" field.
func EmailAddressEqualFold ¶
EmailAddressEqualFold applies the EqualFold predicate on the "email_address" field.
func EmailAddressGT ¶
EmailAddressGT applies the GT predicate on the "email_address" field.
func EmailAddressGTE ¶
EmailAddressGTE applies the GTE predicate on the "email_address" field.
func EmailAddressHasPrefix ¶
EmailAddressHasPrefix applies the HasPrefix predicate on the "email_address" field.
func EmailAddressHasSuffix ¶
EmailAddressHasSuffix applies the HasSuffix predicate on the "email_address" field.
func EmailAddressIn ¶
EmailAddressIn applies the In predicate on the "email_address" field.
func EmailAddressLT ¶
EmailAddressLT applies the LT predicate on the "email_address" field.
func EmailAddressLTE ¶
EmailAddressLTE applies the LTE predicate on the "email_address" field.
func EmailAddressNEQ ¶
EmailAddressNEQ applies the NEQ predicate on the "email_address" field.
func EmailAddressNotIn ¶
EmailAddressNotIn applies the NotIn predicate on the "email_address" field.
func FirstName ¶
FirstName applies equality check predicate on the "first_name" field. It's identical to FirstNameEQ.
func FirstNameContains ¶
FirstNameContains applies the Contains predicate on the "first_name" field.
func FirstNameContainsFold ¶
FirstNameContainsFold applies the ContainsFold predicate on the "first_name" field.
func FirstNameEQ ¶
FirstNameEQ applies the EQ predicate on the "first_name" field.
func FirstNameEqualFold ¶
FirstNameEqualFold applies the EqualFold predicate on the "first_name" field.
func FirstNameGT ¶
FirstNameGT applies the GT predicate on the "first_name" field.
func FirstNameGTE ¶
FirstNameGTE applies the GTE predicate on the "first_name" field.
func FirstNameHasPrefix ¶
FirstNameHasPrefix applies the HasPrefix predicate on the "first_name" field.
func FirstNameHasSuffix ¶
FirstNameHasSuffix applies the HasSuffix predicate on the "first_name" field.
func FirstNameIn ¶
FirstNameIn applies the In predicate on the "first_name" field.
func FirstNameLT ¶
FirstNameLT applies the LT predicate on the "first_name" field.
func FirstNameLTE ¶
FirstNameLTE applies the LTE predicate on the "first_name" field.
func FirstNameNEQ ¶
FirstNameNEQ applies the NEQ predicate on the "first_name" field.
func FirstNameNotIn ¶
FirstNameNotIn applies the NotIn predicate on the "first_name" field.
func HasFollowers ¶
HasFollowers applies the HasEdge predicate on the "followers" edge.
func HasFollowersWith ¶
HasFollowersWith applies the HasEdge predicate on the "followers" edge with a given conditions (other predicates).
func HasFollowing ¶
HasFollowing applies the HasEdge predicate on the "following" edge.
func HasFollowingWith ¶
HasFollowingWith applies the HasEdge predicate on the "following" edge with a given conditions (other predicates).
func HasGroupsWith ¶
HasGroupsWith applies the HasEdge predicate on the "groups" edge with a given conditions (other predicates).
func HasPostsWith ¶
HasPostsWith applies the HasEdge predicate on the "posts" edge with a given conditions (other predicates).
func LastName ¶
LastName applies equality check predicate on the "last_name" field. It's identical to LastNameEQ.
func LastNameContains ¶
LastNameContains applies the Contains predicate on the "last_name" field.
func LastNameContainsFold ¶
LastNameContainsFold applies the ContainsFold predicate on the "last_name" field.
func LastNameEQ ¶
LastNameEQ applies the EQ predicate on the "last_name" field.
func LastNameEqualFold ¶
LastNameEqualFold applies the EqualFold predicate on the "last_name" field.
func LastNameGT ¶
LastNameGT applies the GT predicate on the "last_name" field.
func LastNameGTE ¶
LastNameGTE applies the GTE predicate on the "last_name" field.
func LastNameHasPrefix ¶
LastNameHasPrefix applies the HasPrefix predicate on the "last_name" field.
func LastNameHasSuffix ¶
LastNameHasSuffix applies the HasSuffix predicate on the "last_name" field.
func LastNameIn ¶
LastNameIn applies the In predicate on the "last_name" field.
func LastNameLT ¶
LastNameLT applies the LT predicate on the "last_name" field.
func LastNameLTE ¶
LastNameLTE applies the LTE predicate on the "last_name" field.
func LastNameNEQ ¶
LastNameNEQ applies the NEQ predicate on the "last_name" field.
func LastNameNotIn ¶
LastNameNotIn applies the NotIn predicate on the "last_name" 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).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the User queries.
func ByAccountAddress ¶
func ByAccountAddress(opts ...sql.OrderTermOption) OrderOption
ByAccountAddress orders the results by the account_address field.
func ByAlias ¶
func ByAlias(opts ...sql.OrderTermOption) OrderOption
ByAlias orders the results by the alias field.
func ByBio ¶
func ByBio(opts ...sql.OrderTermOption) OrderOption
ByBio orders the results by the bio field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByEmailAddress ¶
func ByEmailAddress(opts ...sql.OrderTermOption) OrderOption
ByEmailAddress orders the results by the email_address field.
func ByFirstName ¶
func ByFirstName(opts ...sql.OrderTermOption) OrderOption
ByFirstName orders the results by the first_name field.
func ByFollowers ¶
func ByFollowers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByFollowers orders the results by followers terms.
func ByFollowersCount ¶
func ByFollowersCount(opts ...sql.OrderTermOption) OrderOption
ByFollowersCount orders the results by followers count.
func ByFollowing ¶
func ByFollowing(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByFollowing orders the results by following terms.
func ByFollowingCount ¶
func ByFollowingCount(opts ...sql.OrderTermOption) OrderOption
ByFollowingCount orders the results by following count.
func ByGroups ¶
func ByGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByGroups orders the results by groups terms.
func ByGroupsCount ¶
func ByGroupsCount(opts ...sql.OrderTermOption) OrderOption
ByGroupsCount orders the results by groups count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastName ¶
func ByLastName(opts ...sql.OrderTermOption) OrderOption
ByLastName orders the results by the last_name field.
func ByPosts ¶
func ByPosts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPosts orders the results by posts terms.
func ByPostsCount ¶
func ByPostsCount(opts ...sql.OrderTermOption) OrderOption
ByPostsCount orders the results by posts count.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.