lock

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the lock type in the database.
	Label = "lock"
	// 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"
	// FieldUID holds the string denoting the uid field in the database.
	FieldUID = "uid"
	// FieldLockedAt holds the string denoting the locked_at field in the database.
	FieldLockedAt = "locked_at"
	// FieldTouchedAt holds the string denoting the touched_at field in the database.
	FieldTouchedAt = "touched_at"
	// EdgeNode holds the string denoting the node edge name in mutations.
	EdgeNode = "node"
	// Table holds the table name of the lock in the database.
	Table = "workflow_locks"
	// NodeTable is the table that holds the node relation/edge.
	NodeTable = "workflow_locks"
	// 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

Columns holds all SQL columns for lock fields.

Functions

func And

func And(predicates ...predicate.Lock) predicate.Lock

And groups predicates with the AND operator between them.

func HasNode

func HasNode() predicate.Lock

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

func HasNodeWith

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

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

func ID

func ID(id int) predicate.Lock

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Lock

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Lock

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Lock

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Lock

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Lock

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Lock

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LockedAt

func LockedAt(v time.Time) predicate.Lock

LockedAt applies equality check predicate on the "locked_at" field. It's identical to LockedAtEQ.

func LockedAtEQ

func LockedAtEQ(v time.Time) predicate.Lock

LockedAtEQ applies the EQ predicate on the "locked_at" field.

func LockedAtGT

func LockedAtGT(v time.Time) predicate.Lock

LockedAtGT applies the GT predicate on the "locked_at" field.

func LockedAtGTE

func LockedAtGTE(v time.Time) predicate.Lock

LockedAtGTE applies the GTE predicate on the "locked_at" field.

func LockedAtIn

func LockedAtIn(vs ...time.Time) predicate.Lock

LockedAtIn applies the In predicate on the "locked_at" field.

func LockedAtLT

func LockedAtLT(v time.Time) predicate.Lock

LockedAtLT applies the LT predicate on the "locked_at" field.

func LockedAtLTE

func LockedAtLTE(v time.Time) predicate.Lock

LockedAtLTE applies the LTE predicate on the "locked_at" field.

func LockedAtNEQ

func LockedAtNEQ(v time.Time) predicate.Lock

LockedAtNEQ applies the NEQ predicate on the "locked_at" field.

func LockedAtNotIn

func LockedAtNotIn(vs ...time.Time) predicate.Lock

LockedAtNotIn applies the NotIn predicate on the "locked_at" field.

func Nid

func Nid(v int) predicate.Lock

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

func NidEQ

func NidEQ(v int) predicate.Lock

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

func NidIn

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

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

func NidNEQ

func NidNEQ(v int) predicate.Lock

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

func NidNotIn

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

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

Or groups predicates with the OR operator between them.

func TouchedAt

func TouchedAt(v time.Time) predicate.Lock

TouchedAt applies equality check predicate on the "touched_at" field. It's identical to TouchedAtEQ.

func TouchedAtEQ

func TouchedAtEQ(v time.Time) predicate.Lock

TouchedAtEQ applies the EQ predicate on the "touched_at" field.

func TouchedAtGT

func TouchedAtGT(v time.Time) predicate.Lock

TouchedAtGT applies the GT predicate on the "touched_at" field.

func TouchedAtGTE

func TouchedAtGTE(v time.Time) predicate.Lock

TouchedAtGTE applies the GTE predicate on the "touched_at" field.

func TouchedAtIn

func TouchedAtIn(vs ...time.Time) predicate.Lock

TouchedAtIn applies the In predicate on the "touched_at" field.

func TouchedAtLT

func TouchedAtLT(v time.Time) predicate.Lock

TouchedAtLT applies the LT predicate on the "touched_at" field.

func TouchedAtLTE

func TouchedAtLTE(v time.Time) predicate.Lock

TouchedAtLTE applies the LTE predicate on the "touched_at" field.

func TouchedAtNEQ

func TouchedAtNEQ(v time.Time) predicate.Lock

TouchedAtNEQ applies the NEQ predicate on the "touched_at" field.

func TouchedAtNotIn

func TouchedAtNotIn(vs ...time.Time) predicate.Lock

TouchedAtNotIn applies the NotIn predicate on the "touched_at" field.

func UID

func UID(v int) predicate.Lock

UID applies equality check predicate on the "uid" field. It's identical to UIDEQ.

func UIDEQ

func UIDEQ(v int) predicate.Lock

UIDEQ applies the EQ predicate on the "uid" field.

func UIDGT

func UIDGT(v int) predicate.Lock

UIDGT applies the GT predicate on the "uid" field.

func UIDGTE

func UIDGTE(v int) predicate.Lock

UIDGTE applies the GTE predicate on the "uid" field.

func UIDIn

func UIDIn(vs ...int) predicate.Lock

UIDIn applies the In predicate on the "uid" field.

func UIDLT

func UIDLT(v int) predicate.Lock

UIDLT applies the LT predicate on the "uid" field.

func UIDLTE

func UIDLTE(v int) predicate.Lock

UIDLTE applies the LTE predicate on the "uid" field.

func UIDNEQ

func UIDNEQ(v int) predicate.Lock

UIDNEQ applies the NEQ predicate on the "uid" field.

func UIDNotIn

func UIDNotIn(vs ...int) predicate.Lock

UIDNotIn applies the NotIn predicate on the "uid" field.

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 Lock queries.

func ByID

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

ByID orders the results by the id field.

func ByLockedAt

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

ByLockedAt orders the results by the locked_at 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.

func ByTouchedAt

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

ByTouchedAt orders the results by the touched_at field.

func ByUID

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

ByUID orders the results by the uid field.

Jump to

Keyboard shortcuts

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