artist

package
v0.0.0-...-9131046 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the artist type in the database.
	Label = "artist"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldBirthday holds the string denoting the birthday field in the database.
	FieldBirthday = "birthday"
	// EdgeProfilePicture holds the string denoting the profile_picture edge name in mutations.
	EdgeProfilePicture = "profile_picture"
	// EdgePictures holds the string denoting the pictures edge name in mutations.
	EdgePictures = "pictures"
	// EdgeDirected holds the string denoting the directed edge name in mutations.
	EdgeDirected = "directed"
	// EdgeActed holds the string denoting the acted edge name in mutations.
	EdgeActed = "acted"
	// EdgeWrote holds the string denoting the wrote edge name in mutations.
	EdgeWrote = "wrote"
	// EdgeCountries holds the string denoting the countries edge name in mutations.
	EdgeCountries = "countries"
	// Table holds the table name of the artist in the database.
	Table = "artists"
	// ProfilePictureTable is the table that holds the profile_picture relation/edge.
	ProfilePictureTable = "artists"
	// ProfilePictureInverseTable is the table name for the Picture entity.
	// It exists in this package in order to avoid circular dependency with the "picture" package.
	ProfilePictureInverseTable = "pictures"
	// ProfilePictureColumn is the table column denoting the profile_picture relation/edge.
	ProfilePictureColumn = "artist_profile_picture"
	// PicturesTable is the table that holds the pictures relation/edge.
	PicturesTable = "pictures"
	// PicturesInverseTable is the table name for the Picture entity.
	// It exists in this package in order to avoid circular dependency with the "picture" package.
	PicturesInverseTable = "pictures"
	// PicturesColumn is the table column denoting the pictures relation/edge.
	PicturesColumn = "artist_pictures"
	// DirectedTable is the table that holds the directed relation/edge. The primary key declared below.
	DirectedTable = "movie_directors"
	// DirectedInverseTable is the table name for the Movie entity.
	// It exists in this package in order to avoid circular dependency with the "movie" package.
	DirectedInverseTable = "movies"
	// ActedTable is the table that holds the acted relation/edge. The primary key declared below.
	ActedTable = "movie_cast"
	// ActedInverseTable is the table name for the Movie entity.
	// It exists in this package in order to avoid circular dependency with the "movie" package.
	ActedInverseTable = "movies"
	// WroteTable is the table that holds the wrote relation/edge. The primary key declared below.
	WroteTable = "movie_writers"
	// WroteInverseTable is the table name for the Movie entity.
	// It exists in this package in order to avoid circular dependency with the "movie" package.
	WroteInverseTable = "movies"
	// CountriesTable is the table that holds the countries relation/edge. The primary key declared below.
	CountriesTable = "country_artists"
	// CountriesInverseTable is the table name for the Country entity.
	// It exists in this package in order to avoid circular dependency with the "country" package.
	CountriesInverseTable = "countries"
)

Variables

View Source
var (
	// DirectedPrimaryKey and DirectedColumn2 are the table columns denoting the
	// primary key for the directed relation (M2M).
	DirectedPrimaryKey = []string{"movie_id", "artist_id"}
	// ActedPrimaryKey and ActedColumn2 are the table columns denoting the
	// primary key for the acted relation (M2M).
	ActedPrimaryKey = []string{"movie_id", "artist_id"}
	// WrotePrimaryKey and WroteColumn2 are the table columns denoting the
	// primary key for the wrote relation (M2M).
	WrotePrimaryKey = []string{"movie_id", "artist_id"}
	// CountriesPrimaryKey and CountriesColumn2 are the table columns denoting the
	// primary key for the countries relation (M2M).
	CountriesPrimaryKey = []string{"country_id", "artist_id"}
)

Columns holds all SQL columns for artist fields.

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

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

Functions

func And

func And(predicates ...predicate.Artist) predicate.Artist

And groups predicates with the AND operator between them.

func Birthday

func Birthday(v time.Time) predicate.Artist

Birthday applies equality check predicate on the "birthday" field. It's identical to BirthdayEQ.

func BirthdayEQ

func BirthdayEQ(v time.Time) predicate.Artist

BirthdayEQ applies the EQ predicate on the "birthday" field.

func BirthdayGT

func BirthdayGT(v time.Time) predicate.Artist

BirthdayGT applies the GT predicate on the "birthday" field.

func BirthdayGTE

func BirthdayGTE(v time.Time) predicate.Artist

BirthdayGTE applies the GTE predicate on the "birthday" field.

func BirthdayIn

func BirthdayIn(vs ...time.Time) predicate.Artist

BirthdayIn applies the In predicate on the "birthday" field.

func BirthdayIsNil

func BirthdayIsNil() predicate.Artist

BirthdayIsNil applies the IsNil predicate on the "birthday" field.

func BirthdayLT

func BirthdayLT(v time.Time) predicate.Artist

BirthdayLT applies the LT predicate on the "birthday" field.

func BirthdayLTE

func BirthdayLTE(v time.Time) predicate.Artist

BirthdayLTE applies the LTE predicate on the "birthday" field.

func BirthdayNEQ

func BirthdayNEQ(v time.Time) predicate.Artist

BirthdayNEQ applies the NEQ predicate on the "birthday" field.

func BirthdayNotIn

func BirthdayNotIn(vs ...time.Time) predicate.Artist

BirthdayNotIn applies the NotIn predicate on the "birthday" field.

func BirthdayNotNil

func BirthdayNotNil() predicate.Artist

BirthdayNotNil applies the NotNil predicate on the "birthday" field.

func HasActed

func HasActed() predicate.Artist

HasActed applies the HasEdge predicate on the "acted" edge.

func HasActedWith

func HasActedWith(preds ...predicate.Movie) predicate.Artist

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

func HasCountries

func HasCountries() predicate.Artist

HasCountries applies the HasEdge predicate on the "countries" edge.

func HasCountriesWith

func HasCountriesWith(preds ...predicate.Country) predicate.Artist

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

func HasDirected

func HasDirected() predicate.Artist

HasDirected applies the HasEdge predicate on the "directed" edge.

func HasDirectedWith

func HasDirectedWith(preds ...predicate.Movie) predicate.Artist

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

func HasPictures

func HasPictures() predicate.Artist

HasPictures applies the HasEdge predicate on the "pictures" edge.

func HasPicturesWith

func HasPicturesWith(preds ...predicate.Picture) predicate.Artist

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

func HasProfilePicture

func HasProfilePicture() predicate.Artist

HasProfilePicture applies the HasEdge predicate on the "profile_picture" edge.

func HasProfilePictureWith

func HasProfilePictureWith(preds ...predicate.Picture) predicate.Artist

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

func HasWrote

func HasWrote() predicate.Artist

HasWrote applies the HasEdge predicate on the "wrote" edge.

func HasWroteWith

func HasWroteWith(preds ...predicate.Movie) predicate.Artist

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

func ID

func ID(id int) predicate.Artist

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Artist

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Artist

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Artist

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Artist

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Artist

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Artist

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Artist

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

func NameContains

func NameContains(v string) predicate.Artist

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

func NameContainsFold

func NameContainsFold(v string) predicate.Artist

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

func NameEQ

func NameEQ(v string) predicate.Artist

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

func NameEqualFold

func NameEqualFold(v string) predicate.Artist

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

func NameGT

func NameGT(v string) predicate.Artist

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

func NameGTE

func NameGTE(v string) predicate.Artist

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Artist

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Artist

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Artist

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

func NameLTE

func NameLTE(v string) predicate.Artist

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

func NameNEQ

func NameNEQ(v string) predicate.Artist

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

func NameNotIn

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

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

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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