accesschange

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the accesschange type in the database.
	Label = "access_change"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldPrincipalID holds the string denoting the principal_id field in the database.
	FieldPrincipalID = "principal_id"
	// FieldOrganizationID holds the string denoting the organization_id field in the database.
	FieldOrganizationID = "organization_id"
	// FieldChangedAt holds the string denoting the changed_at field in the database.
	FieldChangedAt = "changed_at"
	// FieldReason holds the string denoting the reason field in the database.
	FieldReason = "reason"
	// Table holds the table name of the accesschange in the database.
	Table = "sf_access_changes"
)

Variables

View Source
var (
	// DefaultChangedAt holds the default value on creation for the "changed_at" field.
	DefaultChangedAt func() time.Time
	// ReasonValidator is a validator for the "reason" field. It is called by the builders before save.
	ReasonValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for accesschange fields.

Functions

func And

func And(predicates ...predicate.AccessChange) predicate.AccessChange

And groups predicates with the AND operator between them.

func ChangedAt

func ChangedAt(v time.Time) predicate.AccessChange

ChangedAt applies equality check predicate on the "changed_at" field. It's identical to ChangedAtEQ.

func ChangedAtEQ

func ChangedAtEQ(v time.Time) predicate.AccessChange

ChangedAtEQ applies the EQ predicate on the "changed_at" field.

func ChangedAtGT

func ChangedAtGT(v time.Time) predicate.AccessChange

ChangedAtGT applies the GT predicate on the "changed_at" field.

func ChangedAtGTE

func ChangedAtGTE(v time.Time) predicate.AccessChange

ChangedAtGTE applies the GTE predicate on the "changed_at" field.

func ChangedAtIn

func ChangedAtIn(vs ...time.Time) predicate.AccessChange

ChangedAtIn applies the In predicate on the "changed_at" field.

func ChangedAtLT

func ChangedAtLT(v time.Time) predicate.AccessChange

ChangedAtLT applies the LT predicate on the "changed_at" field.

func ChangedAtLTE

func ChangedAtLTE(v time.Time) predicate.AccessChange

ChangedAtLTE applies the LTE predicate on the "changed_at" field.

func ChangedAtNEQ

func ChangedAtNEQ(v time.Time) predicate.AccessChange

ChangedAtNEQ applies the NEQ predicate on the "changed_at" field.

func ChangedAtNotIn

func ChangedAtNotIn(vs ...time.Time) predicate.AccessChange

ChangedAtNotIn applies the NotIn predicate on the "changed_at" field.

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.AccessChange

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.AccessChange

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.AccessChange

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.AccessChange

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.AccessChange

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

Or groups predicates with the OR operator between them.

func OrganizationID

func OrganizationID(v uuid.UUID) predicate.AccessChange

OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.

func OrganizationIDEQ

func OrganizationIDEQ(v uuid.UUID) predicate.AccessChange

OrganizationIDEQ applies the EQ predicate on the "organization_id" field.

func OrganizationIDGT

func OrganizationIDGT(v uuid.UUID) predicate.AccessChange

OrganizationIDGT applies the GT predicate on the "organization_id" field.

func OrganizationIDGTE

func OrganizationIDGTE(v uuid.UUID) predicate.AccessChange

OrganizationIDGTE applies the GTE predicate on the "organization_id" field.

func OrganizationIDIn

func OrganizationIDIn(vs ...uuid.UUID) predicate.AccessChange

OrganizationIDIn applies the In predicate on the "organization_id" field.

func OrganizationIDIsNil

func OrganizationIDIsNil() predicate.AccessChange

OrganizationIDIsNil applies the IsNil predicate on the "organization_id" field.

func OrganizationIDLT

func OrganizationIDLT(v uuid.UUID) predicate.AccessChange

OrganizationIDLT applies the LT predicate on the "organization_id" field.

func OrganizationIDLTE

func OrganizationIDLTE(v uuid.UUID) predicate.AccessChange

OrganizationIDLTE applies the LTE predicate on the "organization_id" field.

func OrganizationIDNEQ

func OrganizationIDNEQ(v uuid.UUID) predicate.AccessChange

OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.

func OrganizationIDNotIn

func OrganizationIDNotIn(vs ...uuid.UUID) predicate.AccessChange

OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.

func OrganizationIDNotNil

func OrganizationIDNotNil() predicate.AccessChange

OrganizationIDNotNil applies the NotNil predicate on the "organization_id" field.

func PrincipalID

func PrincipalID(v uuid.UUID) predicate.AccessChange

PrincipalID applies equality check predicate on the "principal_id" field. It's identical to PrincipalIDEQ.

func PrincipalIDEQ

func PrincipalIDEQ(v uuid.UUID) predicate.AccessChange

PrincipalIDEQ applies the EQ predicate on the "principal_id" field.

func PrincipalIDGT

func PrincipalIDGT(v uuid.UUID) predicate.AccessChange

PrincipalIDGT applies the GT predicate on the "principal_id" field.

func PrincipalIDGTE

func PrincipalIDGTE(v uuid.UUID) predicate.AccessChange

PrincipalIDGTE applies the GTE predicate on the "principal_id" field.

func PrincipalIDIn

func PrincipalIDIn(vs ...uuid.UUID) predicate.AccessChange

PrincipalIDIn applies the In predicate on the "principal_id" field.

func PrincipalIDLT

func PrincipalIDLT(v uuid.UUID) predicate.AccessChange

PrincipalIDLT applies the LT predicate on the "principal_id" field.

func PrincipalIDLTE

func PrincipalIDLTE(v uuid.UUID) predicate.AccessChange

PrincipalIDLTE applies the LTE predicate on the "principal_id" field.

func PrincipalIDNEQ

func PrincipalIDNEQ(v uuid.UUID) predicate.AccessChange

PrincipalIDNEQ applies the NEQ predicate on the "principal_id" field.

func PrincipalIDNotIn

func PrincipalIDNotIn(vs ...uuid.UUID) predicate.AccessChange

PrincipalIDNotIn applies the NotIn predicate on the "principal_id" field.

func Reason

func Reason(v string) predicate.AccessChange

Reason applies equality check predicate on the "reason" field. It's identical to ReasonEQ.

func ReasonContains

func ReasonContains(v string) predicate.AccessChange

ReasonContains applies the Contains predicate on the "reason" field.

func ReasonContainsFold

func ReasonContainsFold(v string) predicate.AccessChange

ReasonContainsFold applies the ContainsFold predicate on the "reason" field.

func ReasonEQ

func ReasonEQ(v string) predicate.AccessChange

ReasonEQ applies the EQ predicate on the "reason" field.

func ReasonEqualFold

func ReasonEqualFold(v string) predicate.AccessChange

ReasonEqualFold applies the EqualFold predicate on the "reason" field.

func ReasonGT

func ReasonGT(v string) predicate.AccessChange

ReasonGT applies the GT predicate on the "reason" field.

func ReasonGTE

func ReasonGTE(v string) predicate.AccessChange

ReasonGTE applies the GTE predicate on the "reason" field.

func ReasonHasPrefix

func ReasonHasPrefix(v string) predicate.AccessChange

ReasonHasPrefix applies the HasPrefix predicate on the "reason" field.

func ReasonHasSuffix

func ReasonHasSuffix(v string) predicate.AccessChange

ReasonHasSuffix applies the HasSuffix predicate on the "reason" field.

func ReasonIn

func ReasonIn(vs ...string) predicate.AccessChange

ReasonIn applies the In predicate on the "reason" field.

func ReasonLT

func ReasonLT(v string) predicate.AccessChange

ReasonLT applies the LT predicate on the "reason" field.

func ReasonLTE

func ReasonLTE(v string) predicate.AccessChange

ReasonLTE applies the LTE predicate on the "reason" field.

func ReasonNEQ

func ReasonNEQ(v string) predicate.AccessChange

ReasonNEQ applies the NEQ predicate on the "reason" field.

func ReasonNotIn

func ReasonNotIn(vs ...string) predicate.AccessChange

ReasonNotIn applies the NotIn predicate on the "reason" field.

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

func ByChangedAt

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

ByChangedAt orders the results by the changed_at field.

func ByID

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

ByID orders the results by the id field.

func ByOrganizationID

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

ByOrganizationID orders the results by the organization_id field.

func ByPrincipalID

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

ByPrincipalID orders the results by the principal_id field.

func ByReason

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

ByReason orders the results by the reason field.

Jump to

Keyboard shortcuts

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