lock

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 3 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"
	// FieldVersion holds the string denoting the version field in the database.
	FieldVersion = "version"
	// FieldOwner holds the string denoting the owner field in the database.
	FieldOwner = "owner"
	// Table holds the table name of the lock in the database.
	Table = "dblock"
)

Variables

Columns holds all SQL columns for lock fields.

View Source
var (
	// DefaultVersion holds the default value on creation for the "version" field.
	DefaultVersion func() uuid.UUID
)

Functions

func And

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

And groups predicates with the AND operator between them.

func ID

func ID(id string) predicate.Lock

ID filters vertices based on their ID field.

func IDContainsFold added in v0.1.1

func IDContainsFold(id string) predicate.Lock

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Lock

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold added in v0.1.1

func IDEqualFold(id string) predicate.Lock

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Lock

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Lock

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Lock

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Lock

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Lock

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func Owner

func Owner(v string) predicate.Lock

Owner applies equality check predicate on the "owner" field. It's identical to OwnerEQ.

func OwnerContains

func OwnerContains(v string) predicate.Lock

OwnerContains applies the Contains predicate on the "owner" field.

func OwnerContainsFold

func OwnerContainsFold(v string) predicate.Lock

OwnerContainsFold applies the ContainsFold predicate on the "owner" field.

func OwnerEQ

func OwnerEQ(v string) predicate.Lock

OwnerEQ applies the EQ predicate on the "owner" field.

func OwnerEqualFold

func OwnerEqualFold(v string) predicate.Lock

OwnerEqualFold applies the EqualFold predicate on the "owner" field.

func OwnerGT

func OwnerGT(v string) predicate.Lock

OwnerGT applies the GT predicate on the "owner" field.

func OwnerGTE

func OwnerGTE(v string) predicate.Lock

OwnerGTE applies the GTE predicate on the "owner" field.

func OwnerHasPrefix

func OwnerHasPrefix(v string) predicate.Lock

OwnerHasPrefix applies the HasPrefix predicate on the "owner" field.

func OwnerHasSuffix

func OwnerHasSuffix(v string) predicate.Lock

OwnerHasSuffix applies the HasSuffix predicate on the "owner" field.

func OwnerIn

func OwnerIn(vs ...string) predicate.Lock

OwnerIn applies the In predicate on the "owner" field.

func OwnerLT

func OwnerLT(v string) predicate.Lock

OwnerLT applies the LT predicate on the "owner" field.

func OwnerLTE

func OwnerLTE(v string) predicate.Lock

OwnerLTE applies the LTE predicate on the "owner" field.

func OwnerNEQ

func OwnerNEQ(v string) predicate.Lock

OwnerNEQ applies the NEQ predicate on the "owner" field.

func OwnerNotIn

func OwnerNotIn(vs ...string) predicate.Lock

OwnerNotIn applies the NotIn predicate on the "owner" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func Version added in v0.1.1

func Version(v uuid.UUID) predicate.Lock

Version applies equality check predicate on the "version" field. It's identical to VersionEQ.

func VersionEQ added in v0.1.1

func VersionEQ(v uuid.UUID) predicate.Lock

VersionEQ applies the EQ predicate on the "version" field.

func VersionGT added in v0.1.1

func VersionGT(v uuid.UUID) predicate.Lock

VersionGT applies the GT predicate on the "version" field.

func VersionGTE added in v0.1.1

func VersionGTE(v uuid.UUID) predicate.Lock

VersionGTE applies the GTE predicate on the "version" field.

func VersionIn added in v0.1.1

func VersionIn(vs ...uuid.UUID) predicate.Lock

VersionIn applies the In predicate on the "version" field.

func VersionIsNil added in v0.1.1

func VersionIsNil() predicate.Lock

VersionIsNil applies the IsNil predicate on the "version" field.

func VersionLT added in v0.1.1

func VersionLT(v uuid.UUID) predicate.Lock

VersionLT applies the LT predicate on the "version" field.

func VersionLTE added in v0.1.1

func VersionLTE(v uuid.UUID) predicate.Lock

VersionLTE applies the LTE predicate on the "version" field.

func VersionNEQ added in v0.1.1

func VersionNEQ(v uuid.UUID) predicate.Lock

VersionNEQ applies the NEQ predicate on the "version" field.

func VersionNotIn added in v0.1.1

func VersionNotIn(vs ...uuid.UUID) predicate.Lock

VersionNotIn applies the NotIn predicate on the "version" field.

func VersionNotNil added in v0.1.1

func VersionNotNil() predicate.Lock

VersionNotNil applies the NotNil predicate on the "version" field.

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 ByOwner

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

ByOwner orders the results by the owner field.

func ByVersion added in v0.1.1

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

ByVersion orders the results by the version field.

Jump to

Keyboard shortcuts

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