mediarequest

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the mediarequest type in the database.
	Label = "media_request"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldMediaType holds the string denoting the mediatype field in the database.
	FieldMediaType = "media_type"
	// FieldRequestId holds the string denoting the requestid field in the database.
	FieldRequestId = "request_id"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// Table holds the table name of the mediarequest in the database.
	Table = "media_requests"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "media_requests"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_media_request"
)

Variables

Columns holds all SQL columns for mediarequest fields.

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

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

Functions

func And

func And(predicates ...predicate.MediaRequest) predicate.MediaRequest

And groups predicates with the AND operator between them.

func HasUser

func HasUser() predicate.MediaRequest

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.MediaRequest

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

func ID

func ID(id int) predicate.MediaRequest

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.MediaRequest

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.MediaRequest

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.MediaRequest

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.MediaRequest

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.MediaRequest

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.MediaRequest

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func MediaTypeEQ

func MediaTypeEQ(v MediaType) predicate.MediaRequest

MediaTypeEQ applies the EQ predicate on the "mediaType" field.

func MediaTypeIn

func MediaTypeIn(vs ...MediaType) predicate.MediaRequest

MediaTypeIn applies the In predicate on the "mediaType" field.

func MediaTypeNEQ

func MediaTypeNEQ(v MediaType) predicate.MediaRequest

MediaTypeNEQ applies the NEQ predicate on the "mediaType" field.

func MediaTypeNotIn

func MediaTypeNotIn(vs ...MediaType) predicate.MediaRequest

MediaTypeNotIn applies the NotIn predicate on the "mediaType" field.

func MediaTypeValidator

func MediaTypeValidator(mt MediaType) error

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

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.MediaRequest) predicate.MediaRequest

Or groups predicates with the OR operator between them.

func RequestId

func RequestId(v string) predicate.MediaRequest

RequestId applies equality check predicate on the "requestId" field. It's identical to RequestIdEQ.

func RequestIdContains

func RequestIdContains(v string) predicate.MediaRequest

RequestIdContains applies the Contains predicate on the "requestId" field.

func RequestIdContainsFold

func RequestIdContainsFold(v string) predicate.MediaRequest

RequestIdContainsFold applies the ContainsFold predicate on the "requestId" field.

func RequestIdEQ

func RequestIdEQ(v string) predicate.MediaRequest

RequestIdEQ applies the EQ predicate on the "requestId" field.

func RequestIdEqualFold

func RequestIdEqualFold(v string) predicate.MediaRequest

RequestIdEqualFold applies the EqualFold predicate on the "requestId" field.

func RequestIdGT

func RequestIdGT(v string) predicate.MediaRequest

RequestIdGT applies the GT predicate on the "requestId" field.

func RequestIdGTE

func RequestIdGTE(v string) predicate.MediaRequest

RequestIdGTE applies the GTE predicate on the "requestId" field.

func RequestIdHasPrefix

func RequestIdHasPrefix(v string) predicate.MediaRequest

RequestIdHasPrefix applies the HasPrefix predicate on the "requestId" field.

func RequestIdHasSuffix

func RequestIdHasSuffix(v string) predicate.MediaRequest

RequestIdHasSuffix applies the HasSuffix predicate on the "requestId" field.

func RequestIdIn

func RequestIdIn(vs ...string) predicate.MediaRequest

RequestIdIn applies the In predicate on the "requestId" field.

func RequestIdLT

func RequestIdLT(v string) predicate.MediaRequest

RequestIdLT applies the LT predicate on the "requestId" field.

func RequestIdLTE

func RequestIdLTE(v string) predicate.MediaRequest

RequestIdLTE applies the LTE predicate on the "requestId" field.

func RequestIdNEQ

func RequestIdNEQ(v string) predicate.MediaRequest

RequestIdNEQ applies the NEQ predicate on the "requestId" field.

func RequestIdNotIn

func RequestIdNotIn(vs ...string) predicate.MediaRequest

RequestIdNotIn applies the NotIn predicate on the "requestId" field.

func Status

func Status(v string) predicate.MediaRequest

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusContains

func StatusContains(v string) predicate.MediaRequest

StatusContains applies the Contains predicate on the "status" field.

func StatusContainsFold

func StatusContainsFold(v string) predicate.MediaRequest

StatusContainsFold applies the ContainsFold predicate on the "status" field.

func StatusEQ

func StatusEQ(v string) predicate.MediaRequest

StatusEQ applies the EQ predicate on the "status" field.

func StatusEqualFold

func StatusEqualFold(v string) predicate.MediaRequest

StatusEqualFold applies the EqualFold predicate on the "status" field.

func StatusGT

func StatusGT(v string) predicate.MediaRequest

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v string) predicate.MediaRequest

StatusGTE applies the GTE predicate on the "status" field.

func StatusHasPrefix

func StatusHasPrefix(v string) predicate.MediaRequest

StatusHasPrefix applies the HasPrefix predicate on the "status" field.

func StatusHasSuffix

func StatusHasSuffix(v string) predicate.MediaRequest

StatusHasSuffix applies the HasSuffix predicate on the "status" field.

func StatusIn

func StatusIn(vs ...string) predicate.MediaRequest

StatusIn applies the In predicate on the "status" field.

func StatusLT

func StatusLT(v string) predicate.MediaRequest

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v string) predicate.MediaRequest

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v string) predicate.MediaRequest

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...string) predicate.MediaRequest

StatusNotIn applies the NotIn predicate on the "status" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type MediaType

type MediaType string

MediaType defines the type for the "mediaType" enum field.

const (
	MediaTypeMovie MediaType = "movie"
	MediaTypeTv    MediaType = "tv"
	MediaTypeBook  MediaType = "book"
	MediaTypeMusic MediaType = "music"
)

MediaType values.

func (MediaType) String

func (mt MediaType) String() string

Jump to

Keyboard shortcuts

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