image

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the image type in the database.
	Label = "image"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldFileName holds the string denoting the file_name field in the database.
	FieldFileName = "file_name"
	// FieldContent holds the string denoting the content field in the database.
	FieldContent = "content"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// Table holds the table name of the image in the database.
	Table = "images"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "images"
	// 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_id"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// FileNameValidator is a validator for the "file_name" field. It is called by the builders before save.
	FileNameValidator func(string) error
	// ContentValidator is a validator for the "content" field. It is called by the builders before save.
	ContentValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() ulid.ID
)

Columns holds all SQL columns for image fields.

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

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

And groups predicates with the AND operator between them.

func Content

func Content(v string) predicate.Image

Content applies equality check predicate on the "content" field. It's identical to ContentEQ.

func ContentContains

func ContentContains(v string) predicate.Image

ContentContains applies the Contains predicate on the "content" field.

func ContentContainsFold

func ContentContainsFold(v string) predicate.Image

ContentContainsFold applies the ContainsFold predicate on the "content" field.

func ContentEQ

func ContentEQ(v string) predicate.Image

ContentEQ applies the EQ predicate on the "content" field.

func ContentEqualFold

func ContentEqualFold(v string) predicate.Image

ContentEqualFold applies the EqualFold predicate on the "content" field.

func ContentGT

func ContentGT(v string) predicate.Image

ContentGT applies the GT predicate on the "content" field.

func ContentGTE

func ContentGTE(v string) predicate.Image

ContentGTE applies the GTE predicate on the "content" field.

func ContentHasPrefix

func ContentHasPrefix(v string) predicate.Image

ContentHasPrefix applies the HasPrefix predicate on the "content" field.

func ContentHasSuffix

func ContentHasSuffix(v string) predicate.Image

ContentHasSuffix applies the HasSuffix predicate on the "content" field.

func ContentIn

func ContentIn(vs ...string) predicate.Image

ContentIn applies the In predicate on the "content" field.

func ContentLT

func ContentLT(v string) predicate.Image

ContentLT applies the LT predicate on the "content" field.

func ContentLTE

func ContentLTE(v string) predicate.Image

ContentLTE applies the LTE predicate on the "content" field.

func ContentNEQ

func ContentNEQ(v string) predicate.Image

ContentNEQ applies the NEQ predicate on the "content" field.

func ContentNotIn

func ContentNotIn(vs ...string) predicate.Image

ContentNotIn applies the NotIn predicate on the "content" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Image

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Image

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Image

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Image

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Image

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Image

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Image

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Image

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Image

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func FileName

func FileName(v string) predicate.Image

FileName applies equality check predicate on the "file_name" field. It's identical to FileNameEQ.

func FileNameContains

func FileNameContains(v string) predicate.Image

FileNameContains applies the Contains predicate on the "file_name" field.

func FileNameContainsFold

func FileNameContainsFold(v string) predicate.Image

FileNameContainsFold applies the ContainsFold predicate on the "file_name" field.

func FileNameEQ

func FileNameEQ(v string) predicate.Image

FileNameEQ applies the EQ predicate on the "file_name" field.

func FileNameEqualFold

func FileNameEqualFold(v string) predicate.Image

FileNameEqualFold applies the EqualFold predicate on the "file_name" field.

func FileNameGT

func FileNameGT(v string) predicate.Image

FileNameGT applies the GT predicate on the "file_name" field.

func FileNameGTE

func FileNameGTE(v string) predicate.Image

FileNameGTE applies the GTE predicate on the "file_name" field.

func FileNameHasPrefix

func FileNameHasPrefix(v string) predicate.Image

FileNameHasPrefix applies the HasPrefix predicate on the "file_name" field.

func FileNameHasSuffix

func FileNameHasSuffix(v string) predicate.Image

FileNameHasSuffix applies the HasSuffix predicate on the "file_name" field.

func FileNameIn

func FileNameIn(vs ...string) predicate.Image

FileNameIn applies the In predicate on the "file_name" field.

func FileNameLT

func FileNameLT(v string) predicate.Image

FileNameLT applies the LT predicate on the "file_name" field.

func FileNameLTE

func FileNameLTE(v string) predicate.Image

FileNameLTE applies the LTE predicate on the "file_name" field.

func FileNameNEQ

func FileNameNEQ(v string) predicate.Image

FileNameNEQ applies the NEQ predicate on the "file_name" field.

func FileNameNotIn

func FileNameNotIn(vs ...string) predicate.Image

FileNameNotIn applies the NotIn predicate on the "file_name" field.

func HasUser

func HasUser() predicate.Image

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

func HasUserWith

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

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

func ID

func ID(id ulid.ID) predicate.Image

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id ulid.ID) predicate.Image

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id ulid.ID) predicate.Image

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id ulid.ID) predicate.Image

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...ulid.ID) predicate.Image

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id ulid.ID) predicate.Image

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id ulid.ID) predicate.Image

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id ulid.ID) predicate.Image

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...ulid.ID) predicate.Image

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

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Image

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Image

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Image

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Image

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Image

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Image

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Image

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Image

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Image

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

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