dlock

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the dlock type in the database.
	Label = "dlock"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldHolder holds the string denoting the holder field in the database.
	FieldHolder = "holder"
	// FieldDeadline holds the string denoting the deadline field in the database.
	FieldDeadline = "deadline"
	// Table holds the table name of the dlock in the database.
	Table = "dlocks"
)

Variables

View Source
var (
	// DefaultHolder holds the default value on creation for the "holder" field.
	DefaultHolder func() uuid.UUID
	// DeadlineValidator is a validator for the "deadline" field. It is called by the builders before save.
	DeadlineValidator func(int64) error
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(string) error
)

Columns holds all SQL columns for dlock fields.

Functions

func And

func And(predicates ...predicate.DLock) predicate.DLock

And groups predicates with the AND operator between them.

func Deadline

func Deadline(v int64) predicate.DLock

Deadline applies equality check predicate on the "deadline" field. It's identical to DeadlineEQ.

func DeadlineEQ

func DeadlineEQ(v int64) predicate.DLock

DeadlineEQ applies the EQ predicate on the "deadline" field.

func DeadlineGT

func DeadlineGT(v int64) predicate.DLock

DeadlineGT applies the GT predicate on the "deadline" field.

func DeadlineGTE

func DeadlineGTE(v int64) predicate.DLock

DeadlineGTE applies the GTE predicate on the "deadline" field.

func DeadlineIn

func DeadlineIn(vs ...int64) predicate.DLock

DeadlineIn applies the In predicate on the "deadline" field.

func DeadlineLT

func DeadlineLT(v int64) predicate.DLock

DeadlineLT applies the LT predicate on the "deadline" field.

func DeadlineLTE

func DeadlineLTE(v int64) predicate.DLock

DeadlineLTE applies the LTE predicate on the "deadline" field.

func DeadlineNEQ

func DeadlineNEQ(v int64) predicate.DLock

DeadlineNEQ applies the NEQ predicate on the "deadline" field.

func DeadlineNotIn

func DeadlineNotIn(vs ...int64) predicate.DLock

DeadlineNotIn applies the NotIn predicate on the "deadline" field.

func Holder

func Holder(v uuid.UUID) predicate.DLock

Holder applies equality check predicate on the "holder" field. It's identical to HolderEQ.

func HolderEQ

func HolderEQ(v uuid.UUID) predicate.DLock

HolderEQ applies the EQ predicate on the "holder" field.

func HolderGT

func HolderGT(v uuid.UUID) predicate.DLock

HolderGT applies the GT predicate on the "holder" field.

func HolderGTE

func HolderGTE(v uuid.UUID) predicate.DLock

HolderGTE applies the GTE predicate on the "holder" field.

func HolderIn

func HolderIn(vs ...uuid.UUID) predicate.DLock

HolderIn applies the In predicate on the "holder" field.

func HolderLT

func HolderLT(v uuid.UUID) predicate.DLock

HolderLT applies the LT predicate on the "holder" field.

func HolderLTE

func HolderLTE(v uuid.UUID) predicate.DLock

HolderLTE applies the LTE predicate on the "holder" field.

func HolderNEQ

func HolderNEQ(v uuid.UUID) predicate.DLock

HolderNEQ applies the NEQ predicate on the "holder" field.

func HolderNotIn

func HolderNotIn(vs ...uuid.UUID) predicate.DLock

HolderNotIn applies the NotIn predicate on the "holder" field.

func ID

func ID(id string) predicate.DLock

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.DLock

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.DLock

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.DLock

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.DLock

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.DLock

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.DLock

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.DLock

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.DLock

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.DLock

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.DLock

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

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

func ByDeadline

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

ByDeadline orders the results by the deadline field.

func ByHolder

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

ByHolder orders the results by the holder field.

func ByID

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

ByID orders the results by the id field.

Jump to

Keyboard shortcuts

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