lock

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 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"
	// FieldEnv holds the string denoting the env field in the database.
	FieldEnv = "env"
	// FieldExpiredAt holds the string denoting the expired_at field in the database.
	FieldExpiredAt = "expired_at"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldRepoID holds the string denoting the repo_id field in the database.
	FieldRepoID = "repo_id"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// EdgeRepo holds the string denoting the repo edge name in mutations.
	EdgeRepo = "repo"
	// Table holds the table name of the lock in the database.
	Table = "locks"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "locks"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_id"
	// RepoTable is the table that holds the repo relation/edge.
	RepoTable = "locks"
	// RepoInverseTable is the table name for the Repo entity.
	// It exists in this package in order to avoid circular dependency with the "repo" package.
	RepoInverseTable = "repos"
	// RepoColumn is the table column denoting the repo relation/edge.
	RepoColumn = "repo_id"
)

Variables

Columns holds all SQL columns for lock fields.

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
)

Functions

func And

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

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Lock

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Lock

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Lock

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Lock

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

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

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Lock

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Lock

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Lock

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

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

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Env

func Env(v string) predicate.Lock

Env applies equality check predicate on the "env" field. It's identical to EnvEQ.

func EnvContains

func EnvContains(v string) predicate.Lock

EnvContains applies the Contains predicate on the "env" field.

func EnvContainsFold

func EnvContainsFold(v string) predicate.Lock

EnvContainsFold applies the ContainsFold predicate on the "env" field.

func EnvEQ

func EnvEQ(v string) predicate.Lock

EnvEQ applies the EQ predicate on the "env" field.

func EnvEqualFold

func EnvEqualFold(v string) predicate.Lock

EnvEqualFold applies the EqualFold predicate on the "env" field.

func EnvGT

func EnvGT(v string) predicate.Lock

EnvGT applies the GT predicate on the "env" field.

func EnvGTE

func EnvGTE(v string) predicate.Lock

EnvGTE applies the GTE predicate on the "env" field.

func EnvHasPrefix

func EnvHasPrefix(v string) predicate.Lock

EnvHasPrefix applies the HasPrefix predicate on the "env" field.

func EnvHasSuffix

func EnvHasSuffix(v string) predicate.Lock

EnvHasSuffix applies the HasSuffix predicate on the "env" field.

func EnvIn

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

EnvIn applies the In predicate on the "env" field.

func EnvLT

func EnvLT(v string) predicate.Lock

EnvLT applies the LT predicate on the "env" field.

func EnvLTE

func EnvLTE(v string) predicate.Lock

EnvLTE applies the LTE predicate on the "env" field.

func EnvNEQ

func EnvNEQ(v string) predicate.Lock

EnvNEQ applies the NEQ predicate on the "env" field.

func EnvNotIn

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

EnvNotIn applies the NotIn predicate on the "env" field.

func ExpiredAt

func ExpiredAt(v time.Time) predicate.Lock

ExpiredAt applies equality check predicate on the "expired_at" field. It's identical to ExpiredAtEQ.

func ExpiredAtEQ

func ExpiredAtEQ(v time.Time) predicate.Lock

ExpiredAtEQ applies the EQ predicate on the "expired_at" field.

func ExpiredAtGT

func ExpiredAtGT(v time.Time) predicate.Lock

ExpiredAtGT applies the GT predicate on the "expired_at" field.

func ExpiredAtGTE

func ExpiredAtGTE(v time.Time) predicate.Lock

ExpiredAtGTE applies the GTE predicate on the "expired_at" field.

func ExpiredAtIn

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

ExpiredAtIn applies the In predicate on the "expired_at" field.

func ExpiredAtIsNil

func ExpiredAtIsNil() predicate.Lock

ExpiredAtIsNil applies the IsNil predicate on the "expired_at" field.

func ExpiredAtLT

func ExpiredAtLT(v time.Time) predicate.Lock

ExpiredAtLT applies the LT predicate on the "expired_at" field.

func ExpiredAtLTE

func ExpiredAtLTE(v time.Time) predicate.Lock

ExpiredAtLTE applies the LTE predicate on the "expired_at" field.

func ExpiredAtNEQ

func ExpiredAtNEQ(v time.Time) predicate.Lock

ExpiredAtNEQ applies the NEQ predicate on the "expired_at" field.

func ExpiredAtNotIn

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

ExpiredAtNotIn applies the NotIn predicate on the "expired_at" field.

func ExpiredAtNotNil

func ExpiredAtNotNil() predicate.Lock

ExpiredAtNotNil applies the NotNil predicate on the "expired_at" field.

func HasRepo

func HasRepo() predicate.Lock

HasRepo applies the HasEdge predicate on the "repo" edge.

func HasRepoWith

func HasRepoWith(preds ...predicate.Repo) predicate.Lock

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

func HasUser

func HasUser() predicate.Lock

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.Lock

HasUserWith applies the HasEdge predicate on the "user" 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 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 RepoID

func RepoID(v int64) predicate.Lock

RepoID applies equality check predicate on the "repo_id" field. It's identical to RepoIDEQ.

func RepoIDEQ

func RepoIDEQ(v int64) predicate.Lock

RepoIDEQ applies the EQ predicate on the "repo_id" field.

func RepoIDIn

func RepoIDIn(vs ...int64) predicate.Lock

RepoIDIn applies the In predicate on the "repo_id" field.

func RepoIDNEQ

func RepoIDNEQ(v int64) predicate.Lock

RepoIDNEQ applies the NEQ predicate on the "repo_id" field.

func RepoIDNotIn

func RepoIDNotIn(vs ...int64) predicate.Lock

RepoIDNotIn applies the NotIn predicate on the "repo_id" field.

func UserID

func UserID(v int64) predicate.Lock

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDEQ

func UserIDEQ(v int64) predicate.Lock

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...int64) predicate.Lock

UserIDIn applies the In predicate on the "user_id" field.

func UserIDIsNil

func UserIDIsNil() predicate.Lock

UserIDIsNil applies the IsNil predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v int64) predicate.Lock

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...int64) predicate.Lock

UserIDNotIn applies the NotIn predicate on the "user_id" field.

func UserIDNotNil

func UserIDNotNil() predicate.Lock

UserIDNotNil applies the NotNil predicate on the "user_id" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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