Documentation
¶
Index ¶
- Constants
- Variables
- func ActionURL(v string) predicate.Hold
- func ActionURLContains(v string) predicate.Hold
- func ActionURLContainsFold(v string) predicate.Hold
- func ActionURLEQ(v string) predicate.Hold
- func ActionURLEqualFold(v string) predicate.Hold
- func ActionURLGT(v string) predicate.Hold
- func ActionURLGTE(v string) predicate.Hold
- func ActionURLHasPrefix(v string) predicate.Hold
- func ActionURLHasSuffix(v string) predicate.Hold
- func ActionURLIn(vs ...string) predicate.Hold
- func ActionURLIsNil() predicate.Hold
- func ActionURLLT(v string) predicate.Hold
- func ActionURLLTE(v string) predicate.Hold
- func ActionURLNEQ(v string) predicate.Hold
- func ActionURLNotIn(vs ...string) predicate.Hold
- func ActionURLNotNil() predicate.Hold
- func And(predicates ...predicate.Hold) predicate.Hold
- func CreatedAt(v time.Time) predicate.Hold
- func CreatedAtEQ(v time.Time) predicate.Hold
- func CreatedAtGT(v time.Time) predicate.Hold
- func CreatedAtGTE(v time.Time) predicate.Hold
- func CreatedAtIn(vs ...time.Time) predicate.Hold
- func CreatedAtLT(v time.Time) predicate.Hold
- func CreatedAtLTE(v time.Time) predicate.Hold
- func CreatedAtNEQ(v time.Time) predicate.Hold
- func CreatedAtNotIn(vs ...time.Time) predicate.Hold
- func ExpiresAt(v time.Time) predicate.Hold
- func ExpiresAtEQ(v time.Time) predicate.Hold
- func ExpiresAtGT(v time.Time) predicate.Hold
- func ExpiresAtGTE(v time.Time) predicate.Hold
- func ExpiresAtIn(vs ...time.Time) predicate.Hold
- func ExpiresAtLT(v time.Time) predicate.Hold
- func ExpiresAtLTE(v time.Time) predicate.Hold
- func ExpiresAtNEQ(v time.Time) predicate.Hold
- func ExpiresAtNotIn(vs ...time.Time) predicate.Hold
- func HasWorkspace() predicate.Hold
- func HasWorkspaceWith(preds ...predicate.Workspace) predicate.Hold
- func ID(id int64) predicate.Hold
- func IDEQ(id int64) predicate.Hold
- func IDGT(id int64) predicate.Hold
- func IDGTE(id int64) predicate.Hold
- func IDIn(ids ...int64) predicate.Hold
- func IDLT(id int64) predicate.Hold
- func IDLTE(id int64) predicate.Hold
- func IDNEQ(id int64) predicate.Hold
- func IDNotIn(ids ...int64) predicate.Hold
- func Key(v string) predicate.Hold
- func KeyContains(v string) predicate.Hold
- func KeyContainsFold(v string) predicate.Hold
- func KeyEQ(v string) predicate.Hold
- func KeyEqualFold(v string) predicate.Hold
- func KeyGT(v string) predicate.Hold
- func KeyGTE(v string) predicate.Hold
- func KeyHasPrefix(v string) predicate.Hold
- func KeyHasSuffix(v string) predicate.Hold
- func KeyIn(vs ...string) predicate.Hold
- func KeyLT(v string) predicate.Hold
- func KeyLTE(v string) predicate.Hold
- func KeyNEQ(v string) predicate.Hold
- func KeyNotIn(vs ...string) predicate.Hold
- func Message(v string) predicate.Hold
- func MessageContains(v string) predicate.Hold
- func MessageContainsFold(v string) predicate.Hold
- func MessageEQ(v string) predicate.Hold
- func MessageEqualFold(v string) predicate.Hold
- func MessageGT(v string) predicate.Hold
- func MessageGTE(v string) predicate.Hold
- func MessageHasPrefix(v string) predicate.Hold
- func MessageHasSuffix(v string) predicate.Hold
- func MessageIn(vs ...string) predicate.Hold
- func MessageLT(v string) predicate.Hold
- func MessageLTE(v string) predicate.Hold
- func MessageNEQ(v string) predicate.Hold
- func MessageNotIn(vs ...string) predicate.Hold
- func Not(p predicate.Hold) predicate.Hold
- func Or(predicates ...predicate.Hold) predicate.Hold
- func ReasonCode(v string) predicate.Hold
- func ReasonCodeContains(v string) predicate.Hold
- func ReasonCodeContainsFold(v string) predicate.Hold
- func ReasonCodeEQ(v string) predicate.Hold
- func ReasonCodeEqualFold(v string) predicate.Hold
- func ReasonCodeGT(v string) predicate.Hold
- func ReasonCodeGTE(v string) predicate.Hold
- func ReasonCodeHasPrefix(v string) predicate.Hold
- func ReasonCodeHasSuffix(v string) predicate.Hold
- func ReasonCodeIn(vs ...string) predicate.Hold
- func ReasonCodeLT(v string) predicate.Hold
- func ReasonCodeLTE(v string) predicate.Hold
- func ReasonCodeNEQ(v string) predicate.Hold
- func ReasonCodeNotIn(vs ...string) predicate.Hold
- func SetBy(v string) predicate.Hold
- func SetByContains(v string) predicate.Hold
- func SetByContainsFold(v string) predicate.Hold
- func SetByEQ(v string) predicate.Hold
- func SetByEqualFold(v string) predicate.Hold
- func SetByGT(v string) predicate.Hold
- func SetByGTE(v string) predicate.Hold
- func SetByHasPrefix(v string) predicate.Hold
- func SetByHasSuffix(v string) predicate.Hold
- func SetByIn(vs ...string) predicate.Hold
- func SetByLT(v string) predicate.Hold
- func SetByLTE(v string) predicate.Hold
- func SetByNEQ(v string) predicate.Hold
- func SetByNotIn(vs ...string) predicate.Hold
- func UpdatedAt(v time.Time) predicate.Hold
- func UpdatedAtEQ(v time.Time) predicate.Hold
- func UpdatedAtGT(v time.Time) predicate.Hold
- func UpdatedAtGTE(v time.Time) predicate.Hold
- func UpdatedAtIn(vs ...time.Time) predicate.Hold
- func UpdatedAtLT(v time.Time) predicate.Hold
- func UpdatedAtLTE(v time.Time) predicate.Hold
- func UpdatedAtNEQ(v time.Time) predicate.Hold
- func UpdatedAtNotIn(vs ...time.Time) predicate.Hold
- func ValidColumn(column string) bool
- func WorkspaceID(v int64) predicate.Hold
- func WorkspaceIDEQ(v int64) predicate.Hold
- func WorkspaceIDIn(vs ...int64) predicate.Hold
- func WorkspaceIDNEQ(v int64) predicate.Hold
- func WorkspaceIDNotIn(vs ...int64) predicate.Hold
- type OrderOption
- func ByActionURL(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByKey(opts ...sql.OrderTermOption) OrderOption
- func ByMessage(opts ...sql.OrderTermOption) OrderOption
- func ByReasonCode(opts ...sql.OrderTermOption) OrderOption
- func BySetBy(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByWorkspaceField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByWorkspaceID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldWorkspaceID, FieldKey, FieldReasonCode, FieldMessage, FieldActionURL, FieldExpiresAt, FieldSetBy, }
Columns holds all SQL columns for hold fields.
Functions ¶
func ActionURL ¶
ActionURL applies equality check predicate on the "action_url" field. It's identical to ActionURLEQ.
func ActionURLContains ¶
ActionURLContains applies the Contains predicate on the "action_url" field.
func ActionURLContainsFold ¶
ActionURLContainsFold applies the ContainsFold predicate on the "action_url" field.
func ActionURLEQ ¶
ActionURLEQ applies the EQ predicate on the "action_url" field.
func ActionURLEqualFold ¶
ActionURLEqualFold applies the EqualFold predicate on the "action_url" field.
func ActionURLGT ¶
ActionURLGT applies the GT predicate on the "action_url" field.
func ActionURLGTE ¶
ActionURLGTE applies the GTE predicate on the "action_url" field.
func ActionURLHasPrefix ¶
ActionURLHasPrefix applies the HasPrefix predicate on the "action_url" field.
func ActionURLHasSuffix ¶
ActionURLHasSuffix applies the HasSuffix predicate on the "action_url" field.
func ActionURLIn ¶
ActionURLIn applies the In predicate on the "action_url" field.
func ActionURLIsNil ¶
ActionURLIsNil applies the IsNil predicate on the "action_url" field.
func ActionURLLT ¶
ActionURLLT applies the LT predicate on the "action_url" field.
func ActionURLLTE ¶
ActionURLLTE applies the LTE predicate on the "action_url" field.
func ActionURLNEQ ¶
ActionURLNEQ applies the NEQ predicate on the "action_url" field.
func ActionURLNotIn ¶
ActionURLNotIn applies the NotIn predicate on the "action_url" field.
func ActionURLNotNil ¶
ActionURLNotNil applies the NotNil predicate on the "action_url" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func ExpiresAt ¶
ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.
func ExpiresAtEQ ¶
ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
func ExpiresAtGT ¶
ExpiresAtGT applies the GT predicate on the "expires_at" field.
func ExpiresAtGTE ¶
ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
func ExpiresAtIn ¶
ExpiresAtIn applies the In predicate on the "expires_at" field.
func ExpiresAtLT ¶
ExpiresAtLT applies the LT predicate on the "expires_at" field.
func ExpiresAtLTE ¶
ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
func ExpiresAtNEQ ¶
ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
func ExpiresAtNotIn ¶
ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
func HasWorkspace ¶
HasWorkspace applies the HasEdge predicate on the "workspace" edge.
func HasWorkspaceWith ¶
HasWorkspaceWith applies the HasEdge predicate on the "workspace" edge with a given conditions (other predicates).
func KeyContains ¶
KeyContains applies the Contains predicate on the "key" field.
func KeyContainsFold ¶
KeyContainsFold applies the ContainsFold predicate on the "key" field.
func KeyEqualFold ¶
KeyEqualFold applies the EqualFold predicate on the "key" field.
func KeyHasPrefix ¶
KeyHasPrefix applies the HasPrefix predicate on the "key" field.
func KeyHasSuffix ¶
KeyHasSuffix applies the HasSuffix predicate on the "key" field.
func Message ¶
Message applies equality check predicate on the "message" field. It's identical to MessageEQ.
func MessageContains ¶
MessageContains applies the Contains predicate on the "message" field.
func MessageContainsFold ¶
MessageContainsFold applies the ContainsFold predicate on the "message" field.
func MessageEqualFold ¶
MessageEqualFold applies the EqualFold predicate on the "message" field.
func MessageGTE ¶
MessageGTE applies the GTE predicate on the "message" field.
func MessageHasPrefix ¶
MessageHasPrefix applies the HasPrefix predicate on the "message" field.
func MessageHasSuffix ¶
MessageHasSuffix applies the HasSuffix predicate on the "message" field.
func MessageLTE ¶
MessageLTE applies the LTE predicate on the "message" field.
func MessageNEQ ¶
MessageNEQ applies the NEQ predicate on the "message" field.
func MessageNotIn ¶
MessageNotIn applies the NotIn predicate on the "message" field.
func ReasonCode ¶
ReasonCode applies equality check predicate on the "reason_code" field. It's identical to ReasonCodeEQ.
func ReasonCodeContains ¶
ReasonCodeContains applies the Contains predicate on the "reason_code" field.
func ReasonCodeContainsFold ¶
ReasonCodeContainsFold applies the ContainsFold predicate on the "reason_code" field.
func ReasonCodeEQ ¶
ReasonCodeEQ applies the EQ predicate on the "reason_code" field.
func ReasonCodeEqualFold ¶
ReasonCodeEqualFold applies the EqualFold predicate on the "reason_code" field.
func ReasonCodeGT ¶
ReasonCodeGT applies the GT predicate on the "reason_code" field.
func ReasonCodeGTE ¶
ReasonCodeGTE applies the GTE predicate on the "reason_code" field.
func ReasonCodeHasPrefix ¶
ReasonCodeHasPrefix applies the HasPrefix predicate on the "reason_code" field.
func ReasonCodeHasSuffix ¶
ReasonCodeHasSuffix applies the HasSuffix predicate on the "reason_code" field.
func ReasonCodeIn ¶
ReasonCodeIn applies the In predicate on the "reason_code" field.
func ReasonCodeLT ¶
ReasonCodeLT applies the LT predicate on the "reason_code" field.
func ReasonCodeLTE ¶
ReasonCodeLTE applies the LTE predicate on the "reason_code" field.
func ReasonCodeNEQ ¶
ReasonCodeNEQ applies the NEQ predicate on the "reason_code" field.
func ReasonCodeNotIn ¶
ReasonCodeNotIn applies the NotIn predicate on the "reason_code" field.
func SetBy ¶
SetBy applies equality check predicate on the "set_by" field. It's identical to SetByEQ.
func SetByContains ¶
SetByContains applies the Contains predicate on the "set_by" field.
func SetByContainsFold ¶
SetByContainsFold applies the ContainsFold predicate on the "set_by" field.
func SetByEqualFold ¶
SetByEqualFold applies the EqualFold predicate on the "set_by" field.
func SetByHasPrefix ¶
SetByHasPrefix applies the HasPrefix predicate on the "set_by" field.
func SetByHasSuffix ¶
SetByHasSuffix applies the HasSuffix predicate on the "set_by" field.
func SetByNotIn ¶
SetByNotIn applies the NotIn predicate on the "set_by" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func WorkspaceID ¶
WorkspaceID applies equality check predicate on the "workspace_id" field. It's identical to WorkspaceIDEQ.
func WorkspaceIDEQ ¶
WorkspaceIDEQ applies the EQ predicate on the "workspace_id" field.
func WorkspaceIDIn ¶
WorkspaceIDIn applies the In predicate on the "workspace_id" field.
func WorkspaceIDNEQ ¶
WorkspaceIDNEQ applies the NEQ predicate on the "workspace_id" field.
func WorkspaceIDNotIn ¶
WorkspaceIDNotIn applies the NotIn predicate on the "workspace_id" field.
Types ¶
type OrderOption ¶
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.