Help us shape the future of Go! Take the 2026 Go Developer Survey

hold

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the hold type in the database.
	Label = "hold"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldWorkspaceID holds the string denoting the workspace_id field in the database.
	FieldWorkspaceID = "workspace_id"
	// FieldKey holds the string denoting the key field in the database.
	FieldKey = "key"
	// FieldReasonCode holds the string denoting the reason_code field in the database.
	FieldReasonCode = "reason_code"
	// FieldMessage holds the string denoting the message field in the database.
	FieldMessage = "message"
	// FieldActionURL holds the string denoting the action_url field in the database.
	FieldActionURL = "action_url"
	// FieldExpiresAt holds the string denoting the expires_at field in the database.
	FieldExpiresAt = "expires_at"
	// FieldSetBy holds the string denoting the set_by field in the database.
	FieldSetBy = "set_by"
	// EdgeWorkspace holds the string denoting the workspace edge name in mutations.
	EdgeWorkspace = "workspace"
	// Table holds the table name of the hold in the database.
	Table = "holds"
	// WorkspaceTable is the table that holds the workspace relation/edge.
	WorkspaceTable = "holds"
	// WorkspaceInverseTable is the table name for the Workspace entity.
	// It exists in this package in order to avoid circular dependency with the "workspace" package.
	WorkspaceInverseTable = "workspaces"
	// WorkspaceColumn is the table column denoting the workspace relation/edge.
	WorkspaceColumn = "workspace_id"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// KeyValidator is a validator for the "key" field. It is called by the builders before save.
	KeyValidator func(string) error
	// ReasonCodeValidator is a validator for the "reason_code" field. It is called by the builders before save.
	ReasonCodeValidator func(string) error
	// MessageValidator is a validator for the "message" field. It is called by the builders before save.
	MessageValidator func(string) error
	// SetByValidator is a validator for the "set_by" field. It is called by the builders before save.
	SetByValidator func(string) error
)

Columns holds all SQL columns for hold fields.

Functions

func ActionURL

func ActionURL(v string) predicate.Hold

ActionURL applies equality check predicate on the "action_url" field. It's identical to ActionURLEQ.

func ActionURLContains

func ActionURLContains(v string) predicate.Hold

ActionURLContains applies the Contains predicate on the "action_url" field.

func ActionURLContainsFold

func ActionURLContainsFold(v string) predicate.Hold

ActionURLContainsFold applies the ContainsFold predicate on the "action_url" field.

func ActionURLEQ

func ActionURLEQ(v string) predicate.Hold

ActionURLEQ applies the EQ predicate on the "action_url" field.

func ActionURLEqualFold

func ActionURLEqualFold(v string) predicate.Hold

ActionURLEqualFold applies the EqualFold predicate on the "action_url" field.

func ActionURLGT

func ActionURLGT(v string) predicate.Hold

ActionURLGT applies the GT predicate on the "action_url" field.

func ActionURLGTE

func ActionURLGTE(v string) predicate.Hold

ActionURLGTE applies the GTE predicate on the "action_url" field.

func ActionURLHasPrefix

func ActionURLHasPrefix(v string) predicate.Hold

ActionURLHasPrefix applies the HasPrefix predicate on the "action_url" field.

func ActionURLHasSuffix

func ActionURLHasSuffix(v string) predicate.Hold

ActionURLHasSuffix applies the HasSuffix predicate on the "action_url" field.

func ActionURLIn

func ActionURLIn(vs ...string) predicate.Hold

ActionURLIn applies the In predicate on the "action_url" field.

func ActionURLIsNil

func ActionURLIsNil() predicate.Hold

ActionURLIsNil applies the IsNil predicate on the "action_url" field.

func ActionURLLT

func ActionURLLT(v string) predicate.Hold

ActionURLLT applies the LT predicate on the "action_url" field.

func ActionURLLTE

func ActionURLLTE(v string) predicate.Hold

ActionURLLTE applies the LTE predicate on the "action_url" field.

func ActionURLNEQ

func ActionURLNEQ(v string) predicate.Hold

ActionURLNEQ applies the NEQ predicate on the "action_url" field.

func ActionURLNotIn

func ActionURLNotIn(vs ...string) predicate.Hold

ActionURLNotIn applies the NotIn predicate on the "action_url" field.

func ActionURLNotNil

func ActionURLNotNil() predicate.Hold

ActionURLNotNil applies the NotNil predicate on the "action_url" field.

func And

func And(predicates ...predicate.Hold) predicate.Hold

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Hold

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Hold

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Hold

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Hold

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Hold

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Hold

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Hold

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

func CreatedAtNotIn

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

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

func ExpiresAt

func ExpiresAt(v time.Time) predicate.Hold

ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.

func ExpiresAtEQ

func ExpiresAtEQ(v time.Time) predicate.Hold

ExpiresAtEQ applies the EQ predicate on the "expires_at" field.

func ExpiresAtGT

func ExpiresAtGT(v time.Time) predicate.Hold

ExpiresAtGT applies the GT predicate on the "expires_at" field.

func ExpiresAtGTE

func ExpiresAtGTE(v time.Time) predicate.Hold

ExpiresAtGTE applies the GTE predicate on the "expires_at" field.

func ExpiresAtIn

func ExpiresAtIn(vs ...time.Time) predicate.Hold

ExpiresAtIn applies the In predicate on the "expires_at" field.

func ExpiresAtLT

func ExpiresAtLT(v time.Time) predicate.Hold

ExpiresAtLT applies the LT predicate on the "expires_at" field.

func ExpiresAtLTE

func ExpiresAtLTE(v time.Time) predicate.Hold

ExpiresAtLTE applies the LTE predicate on the "expires_at" field.

func ExpiresAtNEQ

func ExpiresAtNEQ(v time.Time) predicate.Hold

ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.

func ExpiresAtNotIn

func ExpiresAtNotIn(vs ...time.Time) predicate.Hold

ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.

func HasWorkspace

func HasWorkspace() predicate.Hold

HasWorkspace applies the HasEdge predicate on the "workspace" edge.

func HasWorkspaceWith

func HasWorkspaceWith(preds ...predicate.Workspace) predicate.Hold

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

func ID

func ID(id int64) predicate.Hold

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.Hold

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.Hold

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.Hold

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.Hold

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.Hold

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.Hold

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.Hold

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.Hold

IDNotIn applies the NotIn predicate on the ID field.

func Key

func Key(v string) predicate.Hold

Key applies equality check predicate on the "key" field. It's identical to KeyEQ.

func KeyContains

func KeyContains(v string) predicate.Hold

KeyContains applies the Contains predicate on the "key" field.

func KeyContainsFold

func KeyContainsFold(v string) predicate.Hold

KeyContainsFold applies the ContainsFold predicate on the "key" field.

func KeyEQ

func KeyEQ(v string) predicate.Hold

KeyEQ applies the EQ predicate on the "key" field.

func KeyEqualFold

func KeyEqualFold(v string) predicate.Hold

KeyEqualFold applies the EqualFold predicate on the "key" field.

func KeyGT

func KeyGT(v string) predicate.Hold

KeyGT applies the GT predicate on the "key" field.

func KeyGTE

func KeyGTE(v string) predicate.Hold

KeyGTE applies the GTE predicate on the "key" field.

func KeyHasPrefix

func KeyHasPrefix(v string) predicate.Hold

KeyHasPrefix applies the HasPrefix predicate on the "key" field.

func KeyHasSuffix

func KeyHasSuffix(v string) predicate.Hold

KeyHasSuffix applies the HasSuffix predicate on the "key" field.

func KeyIn

func KeyIn(vs ...string) predicate.Hold

KeyIn applies the In predicate on the "key" field.

func KeyLT

func KeyLT(v string) predicate.Hold

KeyLT applies the LT predicate on the "key" field.

func KeyLTE

func KeyLTE(v string) predicate.Hold

KeyLTE applies the LTE predicate on the "key" field.

func KeyNEQ

func KeyNEQ(v string) predicate.Hold

KeyNEQ applies the NEQ predicate on the "key" field.

func KeyNotIn

func KeyNotIn(vs ...string) predicate.Hold

KeyNotIn applies the NotIn predicate on the "key" field.

func Message

func Message(v string) predicate.Hold

Message applies equality check predicate on the "message" field. It's identical to MessageEQ.

func MessageContains

func MessageContains(v string) predicate.Hold

MessageContains applies the Contains predicate on the "message" field.

func MessageContainsFold

func MessageContainsFold(v string) predicate.Hold

MessageContainsFold applies the ContainsFold predicate on the "message" field.

func MessageEQ

func MessageEQ(v string) predicate.Hold

MessageEQ applies the EQ predicate on the "message" field.

func MessageEqualFold

func MessageEqualFold(v string) predicate.Hold

MessageEqualFold applies the EqualFold predicate on the "message" field.

func MessageGT

func MessageGT(v string) predicate.Hold

MessageGT applies the GT predicate on the "message" field.

func MessageGTE

func MessageGTE(v string) predicate.Hold

MessageGTE applies the GTE predicate on the "message" field.

func MessageHasPrefix

func MessageHasPrefix(v string) predicate.Hold

MessageHasPrefix applies the HasPrefix predicate on the "message" field.

func MessageHasSuffix

func MessageHasSuffix(v string) predicate.Hold

MessageHasSuffix applies the HasSuffix predicate on the "message" field.

func MessageIn

func MessageIn(vs ...string) predicate.Hold

MessageIn applies the In predicate on the "message" field.

func MessageLT

func MessageLT(v string) predicate.Hold

MessageLT applies the LT predicate on the "message" field.

func MessageLTE

func MessageLTE(v string) predicate.Hold

MessageLTE applies the LTE predicate on the "message" field.

func MessageNEQ

func MessageNEQ(v string) predicate.Hold

MessageNEQ applies the NEQ predicate on the "message" field.

func MessageNotIn

func MessageNotIn(vs ...string) predicate.Hold

MessageNotIn applies the NotIn predicate on the "message" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Hold) predicate.Hold

Or groups predicates with the OR operator between them.

func ReasonCode

func ReasonCode(v string) predicate.Hold

ReasonCode applies equality check predicate on the "reason_code" field. It's identical to ReasonCodeEQ.

func ReasonCodeContains

func ReasonCodeContains(v string) predicate.Hold

ReasonCodeContains applies the Contains predicate on the "reason_code" field.

func ReasonCodeContainsFold

func ReasonCodeContainsFold(v string) predicate.Hold

ReasonCodeContainsFold applies the ContainsFold predicate on the "reason_code" field.

func ReasonCodeEQ

func ReasonCodeEQ(v string) predicate.Hold

ReasonCodeEQ applies the EQ predicate on the "reason_code" field.

func ReasonCodeEqualFold

func ReasonCodeEqualFold(v string) predicate.Hold

ReasonCodeEqualFold applies the EqualFold predicate on the "reason_code" field.

func ReasonCodeGT

func ReasonCodeGT(v string) predicate.Hold

ReasonCodeGT applies the GT predicate on the "reason_code" field.

func ReasonCodeGTE

func ReasonCodeGTE(v string) predicate.Hold

ReasonCodeGTE applies the GTE predicate on the "reason_code" field.

func ReasonCodeHasPrefix

func ReasonCodeHasPrefix(v string) predicate.Hold

ReasonCodeHasPrefix applies the HasPrefix predicate on the "reason_code" field.

func ReasonCodeHasSuffix

func ReasonCodeHasSuffix(v string) predicate.Hold

ReasonCodeHasSuffix applies the HasSuffix predicate on the "reason_code" field.

func ReasonCodeIn

func ReasonCodeIn(vs ...string) predicate.Hold

ReasonCodeIn applies the In predicate on the "reason_code" field.

func ReasonCodeLT

func ReasonCodeLT(v string) predicate.Hold

ReasonCodeLT applies the LT predicate on the "reason_code" field.

func ReasonCodeLTE

func ReasonCodeLTE(v string) predicate.Hold

ReasonCodeLTE applies the LTE predicate on the "reason_code" field.

func ReasonCodeNEQ

func ReasonCodeNEQ(v string) predicate.Hold

ReasonCodeNEQ applies the NEQ predicate on the "reason_code" field.

func ReasonCodeNotIn

func ReasonCodeNotIn(vs ...string) predicate.Hold

ReasonCodeNotIn applies the NotIn predicate on the "reason_code" field.

func SetBy

func SetBy(v string) predicate.Hold

SetBy applies equality check predicate on the "set_by" field. It's identical to SetByEQ.

func SetByContains

func SetByContains(v string) predicate.Hold

SetByContains applies the Contains predicate on the "set_by" field.

func SetByContainsFold

func SetByContainsFold(v string) predicate.Hold

SetByContainsFold applies the ContainsFold predicate on the "set_by" field.

func SetByEQ

func SetByEQ(v string) predicate.Hold

SetByEQ applies the EQ predicate on the "set_by" field.

func SetByEqualFold

func SetByEqualFold(v string) predicate.Hold

SetByEqualFold applies the EqualFold predicate on the "set_by" field.

func SetByGT

func SetByGT(v string) predicate.Hold

SetByGT applies the GT predicate on the "set_by" field.

func SetByGTE

func SetByGTE(v string) predicate.Hold

SetByGTE applies the GTE predicate on the "set_by" field.

func SetByHasPrefix

func SetByHasPrefix(v string) predicate.Hold

SetByHasPrefix applies the HasPrefix predicate on the "set_by" field.

func SetByHasSuffix

func SetByHasSuffix(v string) predicate.Hold

SetByHasSuffix applies the HasSuffix predicate on the "set_by" field.

func SetByIn

func SetByIn(vs ...string) predicate.Hold

SetByIn applies the In predicate on the "set_by" field.

func SetByLT

func SetByLT(v string) predicate.Hold

SetByLT applies the LT predicate on the "set_by" field.

func SetByLTE

func SetByLTE(v string) predicate.Hold

SetByLTE applies the LTE predicate on the "set_by" field.

func SetByNEQ

func SetByNEQ(v string) predicate.Hold

SetByNEQ applies the NEQ predicate on the "set_by" field.

func SetByNotIn

func SetByNotIn(vs ...string) predicate.Hold

SetByNotIn applies the NotIn predicate on the "set_by" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Hold

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Hold

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Hold

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Hold

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Hold

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Hold

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Hold

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Hold

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Hold

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

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

func WorkspaceID

func WorkspaceID(v int64) predicate.Hold

WorkspaceID applies equality check predicate on the "workspace_id" field. It's identical to WorkspaceIDEQ.

func WorkspaceIDEQ

func WorkspaceIDEQ(v int64) predicate.Hold

WorkspaceIDEQ applies the EQ predicate on the "workspace_id" field.

func WorkspaceIDIn

func WorkspaceIDIn(vs ...int64) predicate.Hold

WorkspaceIDIn applies the In predicate on the "workspace_id" field.

func WorkspaceIDNEQ

func WorkspaceIDNEQ(v int64) predicate.Hold

WorkspaceIDNEQ applies the NEQ predicate on the "workspace_id" field.

func WorkspaceIDNotIn

func WorkspaceIDNotIn(vs ...int64) predicate.Hold

WorkspaceIDNotIn applies the NotIn predicate on the "workspace_id" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Hold queries.

func ByActionURL

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

ByActionURL orders the results by the action_url field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByExpiresAt

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

ByExpiresAt orders the results by the expires_at field.

func ByID

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

ByID orders the results by the id field.

func ByKey

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

ByKey orders the results by the key field.

func ByMessage

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

ByMessage orders the results by the message field.

func ByReasonCode

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

ByReasonCode orders the results by the reason_code field.

func BySetBy

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

BySetBy orders the results by the set_by field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByWorkspaceField

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

ByWorkspaceField orders the results by workspace field.

func ByWorkspaceID

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

ByWorkspaceID orders the results by the workspace_id field.

Jump to

Keyboard shortcuts

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