Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Images) predicate.Images
- func CreateTime(v time.Time) predicate.Images
- func CreateTimeEQ(v time.Time) predicate.Images
- func CreateTimeGT(v time.Time) predicate.Images
- func CreateTimeGTE(v time.Time) predicate.Images
- func CreateTimeIn(vs ...time.Time) predicate.Images
- func CreateTimeLT(v time.Time) predicate.Images
- func CreateTimeLTE(v time.Time) predicate.Images
- func CreateTimeNEQ(v time.Time) predicate.Images
- func CreateTimeNotIn(vs ...time.Time) predicate.Images
- func HasAlbums() predicate.Images
- func HasAlbumsWith(preds ...predicate.Albums) predicate.Images
- func HasFile() predicate.Images
- func HasFileWith(preds ...predicate.Files) predicate.Images
- func HasPlaylists() predicate.Images
- func HasPlaylistsWith(preds ...predicate.Playlists) predicate.Images
- func Height(v int32) predicate.Images
- func HeightEQ(v int32) predicate.Images
- func HeightGT(v int32) predicate.Images
- func HeightGTE(v int32) predicate.Images
- func HeightIn(vs ...int32) predicate.Images
- func HeightLT(v int32) predicate.Images
- func HeightLTE(v int32) predicate.Images
- func HeightNEQ(v int32) predicate.Images
- func HeightNotIn(vs ...int32) predicate.Images
- func ID(id uint64) predicate.Images
- func IDEQ(id uint64) predicate.Images
- func IDGT(id uint64) predicate.Images
- func IDGTE(id uint64) predicate.Images
- func IDIn(ids ...uint64) predicate.Images
- func IDLT(id uint64) predicate.Images
- func IDLTE(id uint64) predicate.Images
- func IDNEQ(id uint64) predicate.Images
- func IDNotIn(ids ...uint64) predicate.Images
- func Not(p predicate.Images) predicate.Images
- func Or(predicates ...predicate.Images) predicate.Images
- func UpdateTime(v time.Time) predicate.Images
- func UpdateTimeEQ(v time.Time) predicate.Images
- func UpdateTimeGT(v time.Time) predicate.Images
- func UpdateTimeGTE(v time.Time) predicate.Images
- func UpdateTimeIn(vs ...time.Time) predicate.Images
- func UpdateTimeLT(v time.Time) predicate.Images
- func UpdateTimeLTE(v time.Time) predicate.Images
- func UpdateTimeNEQ(v time.Time) predicate.Images
- func UpdateTimeNotIn(vs ...time.Time) predicate.Images
- func ValidColumn(column string) bool
- func Width(v int32) predicate.Images
- func WidthEQ(v int32) predicate.Images
- func WidthGT(v int32) predicate.Images
- func WidthGTE(v int32) predicate.Images
- func WidthIn(vs ...int32) predicate.Images
- func WidthLT(v int32) predicate.Images
- func WidthLTE(v int32) predicate.Images
- func WidthNEQ(v int32) predicate.Images
- func WidthNotIn(vs ...int32) predicate.Images
- type OrderOption
- func ByAlbums(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAlbumsCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByFileField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByHeight(opts ...sql.OrderTermOption) OrderOption
- func ByID(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 ByWidth(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the images type in the database. Label = "images" // 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" // FieldWidth holds the string denoting the width field in the database. FieldWidth = "width" // FieldHeight holds the string denoting the height field in the database. FieldHeight = "height" // EdgeFile holds the string denoting the file edge name in mutations. EdgeFile = "file" // EdgeAlbums holds the string denoting the albums edge name in mutations. EdgeAlbums = "albums" // EdgePlaylists holds the string denoting the playlists edge name in mutations. EdgePlaylists = "playlists" // Table holds the table name of the images in the database. Table = "images" // FileTable is the table that holds the file relation/edge. FileTable = "images" // FileInverseTable is the table name for the Files entity. // It exists in this package in order to avoid circular dependency with the "files" package. FileInverseTable = "files" // FileColumn is the table column denoting the file relation/edge. FileColumn = "files_images" // AlbumsTable is the table that holds the albums relation/edge. AlbumsTable = "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" // AlbumsColumn is the table column denoting the albums relation/edge. AlbumsColumn = "images_albums" // 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 = "images_playlists" )
Variables ¶
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 )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldWidth, FieldHeight, }
Columns holds all SQL columns for images fields.
var ForeignKeys = []string{
"files_images",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "images" table and are not defined as standalone fields in the schema.
Functions ¶
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 HasAlbumsWith ¶
HasAlbumsWith applies the HasEdge predicate on the "albums" edge with a given conditions (other predicates).
func HasFileWith ¶
HasFileWith applies the HasEdge predicate on the "file" 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 Height ¶
Height applies equality check predicate on the "height" field. It's identical to HeightEQ.
func HeightNotIn ¶
HeightNotIn applies the NotIn predicate on the "height" 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Width ¶
Width applies equality check predicate on the "width" field. It's identical to WidthEQ.
func WidthNotIn ¶
WidthNotIn applies the NotIn predicate on the "width" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Images 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 ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByFileField ¶
func ByFileField(field string, opts ...sql.OrderTermOption) OrderOption
ByFileField orders the results by file field.
func ByHeight ¶
func ByHeight(opts ...sql.OrderTermOption) OrderOption
ByHeight orders the results by the height field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id 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 ByWidth ¶
func ByWidth(opts ...sql.OrderTermOption) OrderOption
ByWidth orders the results by the width field.