images

package
v0.0.0-...-910bef7 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for images fields.

View Source
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 And

func And(predicates ...predicate.Images) predicate.Images

And groups predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.Images

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Images

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Images

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Images

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.Images

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Images

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Images

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Images

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.Images

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func HasAlbums

func HasAlbums() predicate.Images

HasAlbums applies the HasEdge predicate on the "albums" edge.

func HasAlbumsWith

func HasAlbumsWith(preds ...predicate.Albums) predicate.Images

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

func HasFile

func HasFile() predicate.Images

HasFile applies the HasEdge predicate on the "file" edge.

func HasFileWith

func HasFileWith(preds ...predicate.Files) predicate.Images

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

func HasPlaylists

func HasPlaylists() predicate.Images

HasPlaylists applies the HasEdge predicate on the "playlists" edge.

func HasPlaylistsWith

func HasPlaylistsWith(preds ...predicate.Playlists) predicate.Images

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

func Height

func Height(v int32) predicate.Images

Height applies equality check predicate on the "height" field. It's identical to HeightEQ.

func HeightEQ

func HeightEQ(v int32) predicate.Images

HeightEQ applies the EQ predicate on the "height" field.

func HeightGT

func HeightGT(v int32) predicate.Images

HeightGT applies the GT predicate on the "height" field.

func HeightGTE

func HeightGTE(v int32) predicate.Images

HeightGTE applies the GTE predicate on the "height" field.

func HeightIn

func HeightIn(vs ...int32) predicate.Images

HeightIn applies the In predicate on the "height" field.

func HeightLT

func HeightLT(v int32) predicate.Images

HeightLT applies the LT predicate on the "height" field.

func HeightLTE

func HeightLTE(v int32) predicate.Images

HeightLTE applies the LTE predicate on the "height" field.

func HeightNEQ

func HeightNEQ(v int32) predicate.Images

HeightNEQ applies the NEQ predicate on the "height" field.

func HeightNotIn

func HeightNotIn(vs ...int32) predicate.Images

HeightNotIn applies the NotIn predicate on the "height" field.

func ID

func ID(id uint64) predicate.Images

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint64) predicate.Images

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint64) predicate.Images

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint64) predicate.Images

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uint64) predicate.Images

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint64) predicate.Images

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint64) predicate.Images

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint64) predicate.Images

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint64) predicate.Images

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Images) predicate.Images

Or groups predicates with the OR operator between them.

func UpdateTime

func UpdateTime(v time.Time) predicate.Images

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Images

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Images

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Images

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.Images

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Images

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Images

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Images

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.Images

UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func Width

func Width(v int32) predicate.Images

Width applies equality check predicate on the "width" field. It's identical to WidthEQ.

func WidthEQ

func WidthEQ(v int32) predicate.Images

WidthEQ applies the EQ predicate on the "width" field.

func WidthGT

func WidthGT(v int32) predicate.Images

WidthGT applies the GT predicate on the "width" field.

func WidthGTE

func WidthGTE(v int32) predicate.Images

WidthGTE applies the GTE predicate on the "width" field.

func WidthIn

func WidthIn(vs ...int32) predicate.Images

WidthIn applies the In predicate on the "width" field.

func WidthLT

func WidthLT(v int32) predicate.Images

WidthLT applies the LT predicate on the "width" field.

func WidthLTE

func WidthLTE(v int32) predicate.Images

WidthLTE applies the LTE predicate on the "width" field.

func WidthNEQ

func WidthNEQ(v int32) predicate.Images

WidthNEQ applies the NEQ predicate on the "width" field.

func WidthNotIn

func WidthNotIn(vs ...int32) predicate.Images

WidthNotIn applies the NotIn predicate on the "width" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

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