user

package
v0.0.0-...-65daeca Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
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"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldEnabled holds the string denoting the enabled field in the database.
	FieldEnabled = "enabled"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldAvatar holds the string denoting the avatar field in the database.
	FieldAvatar = "avatar"
	// FieldPasswordHashed holds the string denoting the password_hashed field in the database.
	FieldPasswordHashed = "password_hashed"
	// FieldGithubData holds the string denoting the github_data field in the database.
	FieldGithubData = "github_data"
	// FieldProfileURL holds the string denoting the profile_url field in the database.
	FieldProfileURL = "profile_url"
	// EdgePets holds the string denoting the pets edge name in mutations.
	EdgePets = "pets"
	// EdgeFollowedPets holds the string denoting the followed_pets edge name in mutations.
	EdgeFollowedPets = "followed_pets"
	// EdgeFriends holds the string denoting the friends edge name in mutations.
	EdgeFriends = "friends"
	// EdgeFollowing holds the string denoting the following edge name in mutations.
	EdgeFollowing = "following"
	// EdgeFriendships holds the string denoting the friendships edge name in mutations.
	EdgeFriendships = "friendships"
	// Table holds the table name of the user in the database.
	Table = "users"
	// PetsTable is the table that holds the pets relation/edge.
	PetsTable = "pets"
	// PetsInverseTable is the table name for the Pet entity.
	// It exists in this package in order to avoid circular dependency with the "pet" package.
	PetsInverseTable = "pets"
	// PetsColumn is the table column denoting the pets relation/edge.
	PetsColumn = "user_pets"
	// FollowedPetsTable is the table that holds the followed_pets relation/edge. The primary key declared below.
	FollowedPetsTable = "follows"
	// FollowedPetsInverseTable is the table name for the Pet entity.
	// It exists in this package in order to avoid circular dependency with the "pet" package.
	FollowedPetsInverseTable = "pets"
	// FriendsTable is the table that holds the friends relation/edge. The primary key declared below.
	FriendsTable = "friendships"
	// FollowingTable is the table that holds the following relation/edge.
	FollowingTable = "follows"
	// FollowingInverseTable is the table name for the Follows entity.
	// It exists in this package in order to avoid circular dependency with the "follows" package.
	FollowingInverseTable = "follows"
	// FollowingColumn is the table column denoting the following relation/edge.
	FollowingColumn = "user_id"
	// FriendshipsTable is the table that holds the friendships relation/edge.
	FriendshipsTable = "friendships"
	// FriendshipsInverseTable is the table name for the Friendship entity.
	// It exists in this package in order to avoid circular dependency with the "friendship" package.
	FriendshipsInverseTable = "friendships"
	// FriendshipsColumn is the table column denoting the friendships relation/edge.
	FriendshipsColumn = "user_id"
)
View Source
const DefaultType = TypeUser

TypeUser is the default value of the Type enum.

Variables

View Source
var (
	// FollowedPetsPrimaryKey and FollowedPetsColumn2 are the table columns denoting the
	// primary key for the followed_pets relation (M2M).
	FollowedPetsPrimaryKey = []string{"user_id", "pet_id"}
	// FriendsPrimaryKey and FriendsColumn2 are the table columns denoting the
	// primary key for the friends relation (M2M).
	FriendsPrimaryKey = []string{"user_id", "friend_id"}
)
View Source
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
	// DescriptionValidator is a validator for the "description" field. It is called by the builders before save.
	DescriptionValidator func(string) error
	// DefaultEnabled holds the default value on creation for the "enabled" field.
	DefaultEnabled bool
	// EmailValidator is a validator for the "email" field. It is called by the builders before save.
	EmailValidator func(string) error
	// AvatarValidator is a validator for the "avatar" field. It is called by the builders before save.
	AvatarValidator func([]byte) error
	// PasswordHashedValidator is a validator for the "password_hashed" field. It is called by the builders before save.
	PasswordHashedValidator func(string) error
	// DefaultProfileURL holds the default value on creation for the "profile_url" field.
	DefaultProfileURL *schema.ExampleValuer
)

Columns holds all SQL columns for user fields.

View Source
var ForeignKeys = []string{
	"settings_admins",
}

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

Functions

func And

func And(predicates ...predicate.User) predicate.User

And groups predicates with the AND operator between them.

func Avatar

func Avatar(v []byte) predicate.User

Avatar applies equality check predicate on the "avatar" field. It's identical to AvatarEQ.

func AvatarEQ

func AvatarEQ(v []byte) predicate.User

AvatarEQ applies the EQ predicate on the "avatar" field.

func AvatarGT

func AvatarGT(v []byte) predicate.User

AvatarGT applies the GT predicate on the "avatar" field.

func AvatarGTE

func AvatarGTE(v []byte) predicate.User

AvatarGTE applies the GTE predicate on the "avatar" field.

func AvatarIn

func AvatarIn(vs ...[]byte) predicate.User

AvatarIn applies the In predicate on the "avatar" field.

func AvatarIsNil

func AvatarIsNil() predicate.User

AvatarIsNil applies the IsNil predicate on the "avatar" field.

func AvatarLT

func AvatarLT(v []byte) predicate.User

AvatarLT applies the LT predicate on the "avatar" field.

func AvatarLTE

func AvatarLTE(v []byte) predicate.User

AvatarLTE applies the LTE predicate on the "avatar" field.

func AvatarNEQ

func AvatarNEQ(v []byte) predicate.User

AvatarNEQ applies the NEQ predicate on the "avatar" field.

func AvatarNotIn

func AvatarNotIn(vs ...[]byte) predicate.User

AvatarNotIn applies the NotIn predicate on the "avatar" field.

func AvatarNotNil

func AvatarNotNil() predicate.User

AvatarNotNil applies the NotNil predicate on the "avatar" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.User

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.User

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.User

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.User

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.User

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.User

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.User

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.User

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.User

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Description

func Description(v string) predicate.User

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.User

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.User

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.User

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.User

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.User

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.User

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.User

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.User

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.User

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.User

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.User

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.User

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.User

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.User

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.User

DescriptionNotNil applies the NotNil predicate on the "description" field.

func Email

func Email(v string) predicate.User

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

func EmailContains

func EmailContains(v string) predicate.User

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

func EmailContainsFold

func EmailContainsFold(v string) predicate.User

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

func EmailEQ

func EmailEQ(v string) predicate.User

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

func EmailEqualFold

func EmailEqualFold(v string) predicate.User

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

func EmailGT

func EmailGT(v string) predicate.User

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

func EmailGTE

func EmailGTE(v string) predicate.User

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

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.User

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

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.User

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

func EmailIn

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

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

func EmailIsNil

func EmailIsNil() predicate.User

EmailIsNil applies the IsNil predicate on the "email" field.

func EmailLT

func EmailLT(v string) predicate.User

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

func EmailLTE

func EmailLTE(v string) predicate.User

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

func EmailNEQ

func EmailNEQ(v string) predicate.User

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

func EmailNotIn

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

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

func EmailNotNil

func EmailNotNil() predicate.User

EmailNotNil applies the NotNil predicate on the "email" field.

func Enabled

func Enabled(v bool) predicate.User

Enabled applies equality check predicate on the "enabled" field. It's identical to EnabledEQ.

func EnabledEQ

func EnabledEQ(v bool) predicate.User

EnabledEQ applies the EQ predicate on the "enabled" field.

func EnabledNEQ

func EnabledNEQ(v bool) predicate.User

EnabledNEQ applies the NEQ predicate on the "enabled" field.

func GithubDataIsNil

func GithubDataIsNil() predicate.User

GithubDataIsNil applies the IsNil predicate on the "github_data" field.

func GithubDataNotNil

func GithubDataNotNil() predicate.User

GithubDataNotNil applies the NotNil predicate on the "github_data" field.

func HasFollowedPets

func HasFollowedPets() predicate.User

HasFollowedPets applies the HasEdge predicate on the "followed_pets" edge.

func HasFollowedPetsWith

func HasFollowedPetsWith(preds ...predicate.Pet) predicate.User

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

func HasFollowing

func HasFollowing() predicate.User

HasFollowing applies the HasEdge predicate on the "following" edge.

func HasFollowingWith

func HasFollowingWith(preds ...predicate.Follows) predicate.User

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

func HasFriends

func HasFriends() predicate.User

HasFriends applies the HasEdge predicate on the "friends" edge.

func HasFriendsWith

func HasFriendsWith(preds ...predicate.User) predicate.User

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

func HasFriendships

func HasFriendships() predicate.User

HasFriendships applies the HasEdge predicate on the "friendships" edge.

func HasFriendshipsWith

func HasFriendshipsWith(preds ...predicate.Friendship) predicate.User

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

func HasPets

func HasPets() predicate.User

HasPets applies the HasEdge predicate on the "pets" edge.

func HasPetsWith

func HasPetsWith(preds ...predicate.Pet) predicate.User

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

func ID

func ID(id int) predicate.User

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.User

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

func NameContains

func NameContains(v string) predicate.User

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

func NameContainsFold

func NameContainsFold(v string) predicate.User

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

func NameEQ

func NameEQ(v string) predicate.User

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

func NameEqualFold

func NameEqualFold(v string) predicate.User

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

func NameGT

func NameGT(v string) predicate.User

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

func NameGTE

func NameGTE(v string) predicate.User

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.User

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.User

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.User

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

func NameLTE

func NameLTE(v string) predicate.User

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

func NameNEQ

func NameNEQ(v string) predicate.User

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

func NameNotIn

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

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.User) predicate.User

Or groups predicates with the OR operator between them.

func PasswordHashed

func PasswordHashed(v string) predicate.User

PasswordHashed applies equality check predicate on the "password_hashed" field. It's identical to PasswordHashedEQ.

func PasswordHashedContains

func PasswordHashedContains(v string) predicate.User

PasswordHashedContains applies the Contains predicate on the "password_hashed" field.

func PasswordHashedContainsFold

func PasswordHashedContainsFold(v string) predicate.User

PasswordHashedContainsFold applies the ContainsFold predicate on the "password_hashed" field.

func PasswordHashedEQ

func PasswordHashedEQ(v string) predicate.User

PasswordHashedEQ applies the EQ predicate on the "password_hashed" field.

func PasswordHashedEqualFold

func PasswordHashedEqualFold(v string) predicate.User

PasswordHashedEqualFold applies the EqualFold predicate on the "password_hashed" field.

func PasswordHashedGT

func PasswordHashedGT(v string) predicate.User

PasswordHashedGT applies the GT predicate on the "password_hashed" field.

func PasswordHashedGTE

func PasswordHashedGTE(v string) predicate.User

PasswordHashedGTE applies the GTE predicate on the "password_hashed" field.

func PasswordHashedHasPrefix

func PasswordHashedHasPrefix(v string) predicate.User

PasswordHashedHasPrefix applies the HasPrefix predicate on the "password_hashed" field.

func PasswordHashedHasSuffix

func PasswordHashedHasSuffix(v string) predicate.User

PasswordHashedHasSuffix applies the HasSuffix predicate on the "password_hashed" field.

func PasswordHashedIn

func PasswordHashedIn(vs ...string) predicate.User

PasswordHashedIn applies the In predicate on the "password_hashed" field.

func PasswordHashedLT

func PasswordHashedLT(v string) predicate.User

PasswordHashedLT applies the LT predicate on the "password_hashed" field.

func PasswordHashedLTE

func PasswordHashedLTE(v string) predicate.User

PasswordHashedLTE applies the LTE predicate on the "password_hashed" field.

func PasswordHashedNEQ

func PasswordHashedNEQ(v string) predicate.User

PasswordHashedNEQ applies the NEQ predicate on the "password_hashed" field.

func PasswordHashedNotIn

func PasswordHashedNotIn(vs ...string) predicate.User

PasswordHashedNotIn applies the NotIn predicate on the "password_hashed" field.

func ProfileURL

func ProfileURL(v *schema.ExampleValuer) predicate.User

ProfileURL applies equality check predicate on the "profile_url" field. It's identical to ProfileURLEQ.

func ProfileURLEQ

func ProfileURLEQ(v *schema.ExampleValuer) predicate.User

ProfileURLEQ applies the EQ predicate on the "profile_url" field.

func ProfileURLGT

func ProfileURLGT(v *schema.ExampleValuer) predicate.User

ProfileURLGT applies the GT predicate on the "profile_url" field.

func ProfileURLGTE

func ProfileURLGTE(v *schema.ExampleValuer) predicate.User

ProfileURLGTE applies the GTE predicate on the "profile_url" field.

func ProfileURLIn

func ProfileURLIn(vs ...*schema.ExampleValuer) predicate.User

ProfileURLIn applies the In predicate on the "profile_url" field.

func ProfileURLIsNil

func ProfileURLIsNil() predicate.User

ProfileURLIsNil applies the IsNil predicate on the "profile_url" field.

func ProfileURLLT

func ProfileURLLT(v *schema.ExampleValuer) predicate.User

ProfileURLLT applies the LT predicate on the "profile_url" field.

func ProfileURLLTE

func ProfileURLLTE(v *schema.ExampleValuer) predicate.User

ProfileURLLTE applies the LTE predicate on the "profile_url" field.

func ProfileURLNEQ

func ProfileURLNEQ(v *schema.ExampleValuer) predicate.User

ProfileURLNEQ applies the NEQ predicate on the "profile_url" field.

func ProfileURLNotIn

func ProfileURLNotIn(vs ...*schema.ExampleValuer) predicate.User

ProfileURLNotIn applies the NotIn predicate on the "profile_url" field.

func ProfileURLNotNil

func ProfileURLNotNil() predicate.User

ProfileURLNotNil applies the NotNil predicate on the "profile_url" field.

func TypeEQ

func TypeEQ(v Type) predicate.User

TypeEQ applies the EQ predicate on the "type" field.

func TypeIn

func TypeIn(vs ...Type) predicate.User

TypeIn applies the In predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v Type) predicate.User

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...Type) predicate.User

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeValidator

func TypeValidator(_type Type) error

TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.User

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.User

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.User

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.User

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.User

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.User

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.User

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.User

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.User

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 User queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDescription

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

ByDescription orders the results by the description field.

func ByEmail

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

ByEmail orders the results by the email field.

func ByEnabled

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

ByEnabled orders the results by the enabled field.

func ByFollowedPets

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

ByFollowedPets orders the results by followed_pets terms.

func ByFollowedPetsCount

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

ByFollowedPetsCount orders the results by followed_pets 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 ByFriends

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

ByFriends orders the results by friends terms.

func ByFriendsCount

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

ByFriendsCount orders the results by friends count.

func ByFriendships

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

ByFriendships orders the results by friendships terms.

func ByFriendshipsCount

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

ByFriendshipsCount orders the results by friendships count.

func ByID

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

ByID orders the results by the id field.

func ByName

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

ByName orders the results by the name field.

func ByPasswordHashed

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

ByPasswordHashed orders the results by the password_hashed field.

func ByPets

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

ByPets orders the results by pets terms.

func ByPetsCount

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

ByPetsCount orders the results by pets count.

func ByProfileURL

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

ByProfileURL orders the results by the profile_url field.

func ByType

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

ByType orders the results by the type field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

type Type

type Type string

Type defines the type for the "type" enum field.

const (
	TypeSystem Type = "SYSTEM"
	TypeUser   Type = "USER"
)

Type values.

func (Type) String

func (_type Type) String() string

Jump to

Keyboard shortcuts

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