nobackref

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the nobackref type in the database.
	Label = "no_backref"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// EdgeImages holds the string denoting the images edge name in mutations.
	EdgeImages = "images"
	// Table holds the table name of the nobackref in the database.
	Table = "no_backrefs"
	// ImagesTable is the table that holds the images relation/edge.
	ImagesTable = "images"
	// ImagesInverseTable is the table name for the Image entity.
	// It exists in this package in order to avoid circular dependency with the "image" package.
	ImagesInverseTable = "images"
	// ImagesColumn is the table column denoting the images relation/edge.
	ImagesColumn = "no_backref_images"
)

Variables

View Source
var Columns = []string{
	FieldID,
}

Columns holds all SQL columns for nobackref fields.

Functions

func And

func And(predicates ...predicate.NoBackref) predicate.NoBackref

And groups predicates with the AND operator between them.

func HasImages

func HasImages() predicate.NoBackref

HasImages applies the HasEdge predicate on the "images" edge.

func HasImagesWith

func HasImagesWith(preds ...predicate.Image) predicate.NoBackref

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

func ID

func ID(id int) predicate.NoBackref

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.NoBackref

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.NoBackref

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.NoBackref

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.NoBackref

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.NoBackref

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.NoBackref

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

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

type OrderOption added in v0.4.1

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the NoBackref queries.

func ByID added in v0.4.0

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByImages added in v0.4.0

func ByImages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByImages orders the results by images terms.

func ByImagesCount added in v0.4.0

func ByImagesCount(opts ...sql.OrderTermOption) OrderOption

ByImagesCount orders the results by images count.

Jump to

Keyboard shortcuts

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