Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Users) predicate.Users
- func Avatar(v string) predicate.Users
- func AvatarContains(v string) predicate.Users
- func AvatarContainsFold(v string) predicate.Users
- func AvatarEQ(v string) predicate.Users
- func AvatarEqualFold(v string) predicate.Users
- func AvatarGT(v string) predicate.Users
- func AvatarGTE(v string) predicate.Users
- func AvatarHasPrefix(v string) predicate.Users
- func AvatarHasSuffix(v string) predicate.Users
- func AvatarIn(vs ...string) predicate.Users
- func AvatarIsNil() predicate.Users
- func AvatarLT(v string) predicate.Users
- func AvatarLTE(v string) predicate.Users
- func AvatarNEQ(v string) predicate.Users
- func AvatarNotIn(vs ...string) predicate.Users
- func AvatarNotNil() predicate.Users
- func Bio(v string) predicate.Users
- func BioContains(v string) predicate.Users
- func BioContainsFold(v string) predicate.Users
- func BioEQ(v string) predicate.Users
- func BioEqualFold(v string) predicate.Users
- func BioGT(v string) predicate.Users
- func BioGTE(v string) predicate.Users
- func BioHasPrefix(v string) predicate.Users
- func BioHasSuffix(v string) predicate.Users
- func BioIn(vs ...string) predicate.Users
- func BioIsNil() predicate.Users
- func BioLT(v string) predicate.Users
- func BioLTE(v string) predicate.Users
- func BioNEQ(v string) predicate.Users
- func BioNotIn(vs ...string) predicate.Users
- func BioNotNil() predicate.Users
- func CreateTime(v time.Time) predicate.Users
- func CreateTimeEQ(v time.Time) predicate.Users
- func CreateTimeGT(v time.Time) predicate.Users
- func CreateTimeGTE(v time.Time) predicate.Users
- func CreateTimeIn(vs ...time.Time) predicate.Users
- func CreateTimeLT(v time.Time) predicate.Users
- func CreateTimeLTE(v time.Time) predicate.Users
- func CreateTimeNEQ(v time.Time) predicate.Users
- func CreateTimeNotIn(vs ...time.Time) predicate.Users
- func Email(v string) predicate.Users
- func EmailContains(v string) predicate.Users
- func EmailContainsFold(v string) predicate.Users
- func EmailEQ(v string) predicate.Users
- func EmailEqualFold(v string) predicate.Users
- func EmailGT(v string) predicate.Users
- func EmailGTE(v string) predicate.Users
- func EmailHasPrefix(v string) predicate.Users
- func EmailHasSuffix(v string) predicate.Users
- func EmailIn(vs ...string) predicate.Users
- func EmailIsNil() predicate.Users
- func EmailLT(v string) predicate.Users
- func EmailLTE(v string) predicate.Users
- func EmailNEQ(v string) predicate.Users
- func EmailNotIn(vs ...string) predicate.Users
- func EmailNotNil() predicate.Users
- func HasAlbums() predicate.Users
- func HasAlbumsWith(preds ...predicate.Albums) predicate.Users
- func HasDevices() predicate.Users
- func HasDevicesWith(preds ...predicate.Devices) predicate.Users
- func HasMusics() predicate.Users
- func HasMusicsWith(preds ...predicate.Musics) predicate.Users
- func HasPlaylists() predicate.Users
- func HasPlaylistsWith(preds ...predicate.Playlists) predicate.Users
- func ID(id uint64) predicate.Users
- func IDEQ(id uint64) predicate.Users
- func IDGT(id uint64) predicate.Users
- func IDGTE(id uint64) predicate.Users
- func IDIn(ids ...uint64) predicate.Users
- func IDLT(id uint64) predicate.Users
- func IDLTE(id uint64) predicate.Users
- func IDNEQ(id uint64) predicate.Users
- func IDNotIn(ids ...uint64) predicate.Users
- func Name(v string) predicate.Users
- func NameContains(v string) predicate.Users
- func NameContainsFold(v string) predicate.Users
- func NameEQ(v string) predicate.Users
- func NameEqualFold(v string) predicate.Users
- func NameGT(v string) predicate.Users
- func NameGTE(v string) predicate.Users
- func NameHasPrefix(v string) predicate.Users
- func NameHasSuffix(v string) predicate.Users
- func NameIn(vs ...string) predicate.Users
- func NameIsNil() predicate.Users
- func NameLT(v string) predicate.Users
- func NameLTE(v string) predicate.Users
- func NameNEQ(v string) predicate.Users
- func NameNotIn(vs ...string) predicate.Users
- func NameNotNil() predicate.Users
- func Not(p predicate.Users) predicate.Users
- func Or(predicates ...predicate.Users) predicate.Users
- func Password(v string) predicate.Users
- func PasswordContains(v string) predicate.Users
- func PasswordContainsFold(v string) predicate.Users
- func PasswordEQ(v string) predicate.Users
- func PasswordEqualFold(v string) predicate.Users
- func PasswordGT(v string) predicate.Users
- func PasswordGTE(v string) predicate.Users
- func PasswordHasPrefix(v string) predicate.Users
- func PasswordHasSuffix(v string) predicate.Users
- func PasswordIn(vs ...string) predicate.Users
- func PasswordIsNil() predicate.Users
- func PasswordLT(v string) predicate.Users
- func PasswordLTE(v string) predicate.Users
- func PasswordNEQ(v string) predicate.Users
- func PasswordNotIn(vs ...string) predicate.Users
- func PasswordNotNil() predicate.Users
- func UpdateTime(v time.Time) predicate.Users
- func UpdateTimeEQ(v time.Time) predicate.Users
- func UpdateTimeGT(v time.Time) predicate.Users
- func UpdateTimeGTE(v time.Time) predicate.Users
- func UpdateTimeIn(vs ...time.Time) predicate.Users
- func UpdateTimeLT(v time.Time) predicate.Users
- func UpdateTimeLTE(v time.Time) predicate.Users
- func UpdateTimeNEQ(v time.Time) predicate.Users
- func UpdateTimeNotIn(vs ...time.Time) predicate.Users
- func Username(v string) predicate.Users
- func UsernameContains(v string) predicate.Users
- func UsernameContainsFold(v string) predicate.Users
- func UsernameEQ(v string) predicate.Users
- func UsernameEqualFold(v string) predicate.Users
- func UsernameGT(v string) predicate.Users
- func UsernameGTE(v string) predicate.Users
- func UsernameHasPrefix(v string) predicate.Users
- func UsernameHasSuffix(v string) predicate.Users
- func UsernameIn(vs ...string) predicate.Users
- func UsernameLT(v string) predicate.Users
- func UsernameLTE(v string) predicate.Users
- func UsernameNEQ(v string) predicate.Users
- func UsernameNotIn(vs ...string) predicate.Users
- func ValidColumn(column string) bool
- type OrderOption
- func ByAlbums(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAlbumsCount(opts ...sql.OrderTermOption) OrderOption
- func ByAvatar(opts ...sql.OrderTermOption) OrderOption
- func ByBio(opts ...sql.OrderTermOption) OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByDevices(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByDevicesCount(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMusics(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMusicsCount(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByPassword(opts ...sql.OrderTermOption) OrderOption
- func ByPlaylists(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPlaylistsCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
- func ByUsername(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the users type in the database. Label = "users" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldUsername holds the string denoting the username field in the database. FieldUsername = "username" // FieldPassword holds the string denoting the password field in the database. FieldPassword = "password" // FieldEmail holds the string denoting the email field in the database. FieldEmail = "email" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldBio holds the string denoting the bio field in the database. FieldBio = "bio" // FieldAvatar holds the string denoting the avatar field in the database. FieldAvatar = "avatar" // EdgeDevices holds the string denoting the devices edge name in mutations. EdgeDevices = "devices" // EdgePlaylists holds the string denoting the playlists edge name in mutations. EdgePlaylists = "playlists" // EdgeAlbums holds the string denoting the albums edge name in mutations. EdgeAlbums = "albums" // EdgeMusics holds the string denoting the musics edge name in mutations. EdgeMusics = "musics" // Table holds the table name of the users in the database. Table = "users" // DevicesTable is the table that holds the devices relation/edge. DevicesTable = "devices" // DevicesInverseTable is the table name for the Devices entity. // It exists in this package in order to avoid circular dependency with the "devices" package. DevicesInverseTable = "devices" // DevicesColumn is the table column denoting the devices relation/edge. DevicesColumn = "users_devices" // PlaylistsTable is the table that holds the playlists relation/edge. PlaylistsTable = "playlists" // PlaylistsInverseTable is the table name for the Playlists entity. // It exists in this package in order to avoid circular dependency with the "playlists" package. PlaylistsInverseTable = "playlists" // PlaylistsColumn is the table column denoting the playlists relation/edge. PlaylistsColumn = "users_playlists" // AlbumsTable is the table that holds the albums relation/edge. The primary key declared below. AlbumsTable = "users_albums" // AlbumsInverseTable is the table name for the Albums entity. // It exists in this package in order to avoid circular dependency with the "albums" package. AlbumsInverseTable = "albums" // MusicsTable is the table that holds the musics relation/edge. The primary key declared below. MusicsTable = "users_musics" // MusicsInverseTable is the table name for the Musics entity. // It exists in this package in order to avoid circular dependency with the "musics" package. MusicsInverseTable = "musics" )
Variables ¶
var ( // AlbumsPrimaryKey and AlbumsColumn2 are the table columns denoting the // primary key for the albums relation (M2M). AlbumsPrimaryKey = []string{"users_id", "albums_id"} // MusicsPrimaryKey and MusicsColumn2 are the table columns denoting the // primary key for the musics relation (M2M). MusicsPrimaryKey = []string{"users_id", "musics_id"} )
var ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // UsernameValidator is a validator for the "username" field. It is called by the builders before save. UsernameValidator func(string) error )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldUsername, FieldPassword, FieldEmail, FieldName, FieldBio, FieldAvatar, }
Columns holds all SQL columns for users fields.
Functions ¶
func Avatar ¶
Avatar applies equality check predicate on the "avatar" field. It's identical to AvatarEQ.
func AvatarContains ¶
AvatarContains applies the Contains predicate on the "avatar" field.
func AvatarContainsFold ¶
AvatarContainsFold applies the ContainsFold predicate on the "avatar" field.
func AvatarEqualFold ¶
AvatarEqualFold applies the EqualFold predicate on the "avatar" field.
func AvatarHasPrefix ¶
AvatarHasPrefix applies the HasPrefix predicate on the "avatar" field.
func AvatarHasSuffix ¶
AvatarHasSuffix applies the HasSuffix predicate on the "avatar" field.
func AvatarIsNil ¶
AvatarIsNil applies the IsNil predicate on the "avatar" field.
func AvatarNotIn ¶
AvatarNotIn applies the NotIn predicate on the "avatar" field.
func AvatarNotNil ¶
AvatarNotNil applies the NotNil predicate on the "avatar" 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 CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
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 EmailIsNil ¶
EmailIsNil applies the IsNil predicate on the "email" field.
func EmailNotIn ¶
EmailNotIn applies the NotIn predicate on the "email" field.
func EmailNotNil ¶
EmailNotNil applies the NotNil predicate on the "email" field.
func HasAlbumsWith ¶
HasAlbumsWith applies the HasEdge predicate on the "albums" edge with a given conditions (other predicates).
func HasDevices ¶
HasDevices applies the HasEdge predicate on the "devices" edge.
func HasDevicesWith ¶
HasDevicesWith applies the HasEdge predicate on the "devices" edge with a given conditions (other predicates).
func HasMusicsWith ¶
HasMusicsWith applies the HasEdge predicate on the "musics" edge with a given conditions (other predicates).
func HasPlaylists ¶
HasPlaylists applies the HasEdge predicate on the "playlists" edge.
func HasPlaylistsWith ¶
HasPlaylistsWith applies the HasEdge predicate on the "playlists" edge with a given conditions (other predicates).
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 NameNotNil ¶
NameNotNil applies the NotNil predicate on the "name" field.
func Password ¶
Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.
func PasswordContains ¶
PasswordContains applies the Contains predicate on the "password" field.
func PasswordContainsFold ¶
PasswordContainsFold applies the ContainsFold predicate on the "password" field.
func PasswordEQ ¶
PasswordEQ applies the EQ predicate on the "password" field.
func PasswordEqualFold ¶
PasswordEqualFold applies the EqualFold predicate on the "password" field.
func PasswordGT ¶
PasswordGT applies the GT predicate on the "password" field.
func PasswordGTE ¶
PasswordGTE applies the GTE predicate on the "password" field.
func PasswordHasPrefix ¶
PasswordHasPrefix applies the HasPrefix predicate on the "password" field.
func PasswordHasSuffix ¶
PasswordHasSuffix applies the HasSuffix predicate on the "password" field.
func PasswordIn ¶
PasswordIn applies the In predicate on the "password" field.
func PasswordIsNil ¶
PasswordIsNil applies the IsNil predicate on the "password" field.
func PasswordLT ¶
PasswordLT applies the LT predicate on the "password" field.
func PasswordLTE ¶
PasswordLTE applies the LTE predicate on the "password" field.
func PasswordNEQ ¶
PasswordNEQ applies the NEQ predicate on the "password" field.
func PasswordNotIn ¶
PasswordNotIn applies the NotIn predicate on the "password" field.
func PasswordNotNil ¶
PasswordNotNil applies the NotNil predicate on the "password" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func Username ¶
Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.
func UsernameContains ¶
UsernameContains applies the Contains predicate on the "username" field.
func UsernameContainsFold ¶
UsernameContainsFold applies the ContainsFold predicate on the "username" field.
func UsernameEQ ¶
UsernameEQ applies the EQ predicate on the "username" field.
func UsernameEqualFold ¶
UsernameEqualFold applies the EqualFold predicate on the "username" field.
func UsernameGT ¶
UsernameGT applies the GT predicate on the "username" field.
func UsernameGTE ¶
UsernameGTE applies the GTE predicate on the "username" field.
func UsernameHasPrefix ¶
UsernameHasPrefix applies the HasPrefix predicate on the "username" field.
func UsernameHasSuffix ¶
UsernameHasSuffix applies the HasSuffix predicate on the "username" field.
func UsernameIn ¶
UsernameIn applies the In predicate on the "username" field.
func UsernameLT ¶
UsernameLT applies the LT predicate on the "username" field.
func UsernameLTE ¶
UsernameLTE applies the LTE predicate on the "username" field.
func UsernameNEQ ¶
UsernameNEQ applies the NEQ predicate on the "username" field.
func UsernameNotIn ¶
UsernameNotIn applies the NotIn predicate on the "username" 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 Users queries.
func ByAlbums ¶
func ByAlbums(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAlbums orders the results by albums terms.
func ByAlbumsCount ¶
func ByAlbumsCount(opts ...sql.OrderTermOption) OrderOption
ByAlbumsCount orders the results by albums count.
func ByAvatar ¶
func ByAvatar(opts ...sql.OrderTermOption) OrderOption
ByAvatar orders the results by the avatar field.
func ByBio ¶
func ByBio(opts ...sql.OrderTermOption) OrderOption
ByBio orders the results by the bio field.
func ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByDevices ¶
func ByDevices(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByDevices orders the results by devices terms.
func ByDevicesCount ¶
func ByDevicesCount(opts ...sql.OrderTermOption) OrderOption
ByDevicesCount orders the results by devices 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 ByMusics ¶
func ByMusics(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByMusics orders the results by musics terms.
func ByMusicsCount ¶
func ByMusicsCount(opts ...sql.OrderTermOption) OrderOption
ByMusicsCount orders the results by musics count.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByPassword ¶
func ByPassword(opts ...sql.OrderTermOption) OrderOption
ByPassword orders the results by the password field.
func ByPlaylists ¶
func ByPlaylists(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPlaylists orders the results by playlists terms.
func ByPlaylistsCount ¶
func ByPlaylistsCount(opts ...sql.OrderTermOption) OrderOption
ByPlaylistsCount orders the results by playlists count.
func ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.
func ByUsername ¶
func ByUsername(opts ...sql.OrderTermOption) OrderOption
ByUsername orders the results by the username field.