gallerynode

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the gallerynode type in the database.
	Label = "gallery_node"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldNid holds the string denoting the nid field in the database.
	FieldNid = "nid"
	// EdgeNode holds the string denoting the node edge name in mutations.
	EdgeNode = "node"
	// Table holds the table name of the gallerynode in the database.
	Table = "gallery_nodes"
	// NodeTable is the table that holds the node relation/edge.
	NodeTable = "gallery_nodes"
	// NodeInverseTable is the table name for the Node entity.
	// It exists in this package in order to avoid circular dependency with the "node" package.
	NodeInverseTable = "nodes"
	// NodeColumn is the table column denoting the node relation/edge.
	NodeColumn = "nid"
)

Variables

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

Columns holds all SQL columns for gallerynode fields.

Functions

func And

func And(predicates ...predicate.GalleryNode) predicate.GalleryNode

And groups predicates with the AND operator between them.

func HasNode

func HasNode() predicate.GalleryNode

HasNode applies the HasEdge predicate on the "node" edge.

func HasNodeWith

func HasNodeWith(preds ...predicate.Node) predicate.GalleryNode

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

func ID

func ID(id int) predicate.GalleryNode

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.GalleryNode

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.GalleryNode

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.GalleryNode

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.GalleryNode

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.GalleryNode

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.GalleryNode

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Nid

func Nid(v int) predicate.GalleryNode

Nid applies equality check predicate on the "nid" field. It's identical to NidEQ.

func NidEQ

func NidEQ(v int) predicate.GalleryNode

NidEQ applies the EQ predicate on the "nid" field.

func NidIn

func NidIn(vs ...int) predicate.GalleryNode

NidIn applies the In predicate on the "nid" field.

func NidNEQ

func NidNEQ(v int) predicate.GalleryNode

NidNEQ applies the NEQ predicate on the "nid" field.

func NidNotIn

func NidNotIn(vs ...int) predicate.GalleryNode

NidNotIn applies the NotIn predicate on the "nid" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.GalleryNode) predicate.GalleryNode

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

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the GalleryNode queries.

func ByID

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

ByID orders the results by the id field.

func ByNid

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

ByNid orders the results by the nid field.

func ByNodeField

func ByNodeField(field string, opts ...sql.OrderTermOption) OrderOption

ByNodeField orders the results by node field.

Jump to

Keyboard shortcuts

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