consentgrant

package
v0.12.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the consentgrant type in the database.
	Label = "consent_grant"
	// 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"
	// FieldClientID holds the string denoting the client_id field in the database.
	FieldClientID = "client_id"
	// FieldScope holds the string denoting the scope field in the database.
	FieldScope = "scope"
	// FieldGrantedAt holds the string denoting the granted_at field in the database.
	FieldGrantedAt = "granted_at"
	// Table holds the table name of the consentgrant in the database.
	Table = "sf_consent_grants"
)

Variables

View Source
var (
	// DefaultGrantedAt holds the default value on creation for the "granted_at" field.
	DefaultGrantedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for consentgrant fields.

Functions

func And

func And(predicates ...predicate.ConsentGrant) predicate.ConsentGrant

And groups predicates with the AND operator between them.

func ClientID

func ClientID(v string) predicate.ConsentGrant

ClientID applies equality check predicate on the "client_id" field. It's identical to ClientIDEQ.

func ClientIDContains

func ClientIDContains(v string) predicate.ConsentGrant

ClientIDContains applies the Contains predicate on the "client_id" field.

func ClientIDContainsFold

func ClientIDContainsFold(v string) predicate.ConsentGrant

ClientIDContainsFold applies the ContainsFold predicate on the "client_id" field.

func ClientIDEQ

func ClientIDEQ(v string) predicate.ConsentGrant

ClientIDEQ applies the EQ predicate on the "client_id" field.

func ClientIDEqualFold

func ClientIDEqualFold(v string) predicate.ConsentGrant

ClientIDEqualFold applies the EqualFold predicate on the "client_id" field.

func ClientIDGT

func ClientIDGT(v string) predicate.ConsentGrant

ClientIDGT applies the GT predicate on the "client_id" field.

func ClientIDGTE

func ClientIDGTE(v string) predicate.ConsentGrant

ClientIDGTE applies the GTE predicate on the "client_id" field.

func ClientIDHasPrefix

func ClientIDHasPrefix(v string) predicate.ConsentGrant

ClientIDHasPrefix applies the HasPrefix predicate on the "client_id" field.

func ClientIDHasSuffix

func ClientIDHasSuffix(v string) predicate.ConsentGrant

ClientIDHasSuffix applies the HasSuffix predicate on the "client_id" field.

func ClientIDIn

func ClientIDIn(vs ...string) predicate.ConsentGrant

ClientIDIn applies the In predicate on the "client_id" field.

func ClientIDLT

func ClientIDLT(v string) predicate.ConsentGrant

ClientIDLT applies the LT predicate on the "client_id" field.

func ClientIDLTE

func ClientIDLTE(v string) predicate.ConsentGrant

ClientIDLTE applies the LTE predicate on the "client_id" field.

func ClientIDNEQ

func ClientIDNEQ(v string) predicate.ConsentGrant

ClientIDNEQ applies the NEQ predicate on the "client_id" field.

func ClientIDNotIn

func ClientIDNotIn(vs ...string) predicate.ConsentGrant

ClientIDNotIn applies the NotIn predicate on the "client_id" field.

func GrantedAt

func GrantedAt(v time.Time) predicate.ConsentGrant

GrantedAt applies equality check predicate on the "granted_at" field. It's identical to GrantedAtEQ.

func GrantedAtEQ

func GrantedAtEQ(v time.Time) predicate.ConsentGrant

GrantedAtEQ applies the EQ predicate on the "granted_at" field.

func GrantedAtGT

func GrantedAtGT(v time.Time) predicate.ConsentGrant

GrantedAtGT applies the GT predicate on the "granted_at" field.

func GrantedAtGTE

func GrantedAtGTE(v time.Time) predicate.ConsentGrant

GrantedAtGTE applies the GTE predicate on the "granted_at" field.

func GrantedAtIn

func GrantedAtIn(vs ...time.Time) predicate.ConsentGrant

GrantedAtIn applies the In predicate on the "granted_at" field.

func GrantedAtLT

func GrantedAtLT(v time.Time) predicate.ConsentGrant

GrantedAtLT applies the LT predicate on the "granted_at" field.

func GrantedAtLTE

func GrantedAtLTE(v time.Time) predicate.ConsentGrant

GrantedAtLTE applies the LTE predicate on the "granted_at" field.

func GrantedAtNEQ

func GrantedAtNEQ(v time.Time) predicate.ConsentGrant

GrantedAtNEQ applies the NEQ predicate on the "granted_at" field.

func GrantedAtNotIn

func GrantedAtNotIn(vs ...time.Time) predicate.ConsentGrant

GrantedAtNotIn applies the NotIn predicate on the "granted_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.ConsentGrant

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

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.ConsentGrant

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.ConsentGrant

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func PrincipalID

func PrincipalID(v string) predicate.ConsentGrant

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

func PrincipalIDContains

func PrincipalIDContains(v string) predicate.ConsentGrant

PrincipalIDContains applies the Contains predicate on the "principal_id" field.

func PrincipalIDContainsFold

func PrincipalIDContainsFold(v string) predicate.ConsentGrant

PrincipalIDContainsFold applies the ContainsFold predicate on the "principal_id" field.

func PrincipalIDEQ

func PrincipalIDEQ(v string) predicate.ConsentGrant

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

func PrincipalIDEqualFold

func PrincipalIDEqualFold(v string) predicate.ConsentGrant

PrincipalIDEqualFold applies the EqualFold predicate on the "principal_id" field.

func PrincipalIDGT

func PrincipalIDGT(v string) predicate.ConsentGrant

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

func PrincipalIDGTE

func PrincipalIDGTE(v string) predicate.ConsentGrant

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

func PrincipalIDHasPrefix

func PrincipalIDHasPrefix(v string) predicate.ConsentGrant

PrincipalIDHasPrefix applies the HasPrefix predicate on the "principal_id" field.

func PrincipalIDHasSuffix

func PrincipalIDHasSuffix(v string) predicate.ConsentGrant

PrincipalIDHasSuffix applies the HasSuffix predicate on the "principal_id" field.

func PrincipalIDIn

func PrincipalIDIn(vs ...string) predicate.ConsentGrant

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

func PrincipalIDLT

func PrincipalIDLT(v string) predicate.ConsentGrant

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

func PrincipalIDLTE

func PrincipalIDLTE(v string) predicate.ConsentGrant

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

func PrincipalIDNEQ

func PrincipalIDNEQ(v string) predicate.ConsentGrant

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

func PrincipalIDNotIn

func PrincipalIDNotIn(vs ...string) predicate.ConsentGrant

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

func Scope

func Scope(v string) predicate.ConsentGrant

Scope applies equality check predicate on the "scope" field. It's identical to ScopeEQ.

func ScopeContains

func ScopeContains(v string) predicate.ConsentGrant

ScopeContains applies the Contains predicate on the "scope" field.

func ScopeContainsFold

func ScopeContainsFold(v string) predicate.ConsentGrant

ScopeContainsFold applies the ContainsFold predicate on the "scope" field.

func ScopeEQ

func ScopeEQ(v string) predicate.ConsentGrant

ScopeEQ applies the EQ predicate on the "scope" field.

func ScopeEqualFold

func ScopeEqualFold(v string) predicate.ConsentGrant

ScopeEqualFold applies the EqualFold predicate on the "scope" field.

func ScopeGT

func ScopeGT(v string) predicate.ConsentGrant

ScopeGT applies the GT predicate on the "scope" field.

func ScopeGTE

func ScopeGTE(v string) predicate.ConsentGrant

ScopeGTE applies the GTE predicate on the "scope" field.

func ScopeHasPrefix

func ScopeHasPrefix(v string) predicate.ConsentGrant

ScopeHasPrefix applies the HasPrefix predicate on the "scope" field.

func ScopeHasSuffix

func ScopeHasSuffix(v string) predicate.ConsentGrant

ScopeHasSuffix applies the HasSuffix predicate on the "scope" field.

func ScopeIn

func ScopeIn(vs ...string) predicate.ConsentGrant

ScopeIn applies the In predicate on the "scope" field.

func ScopeLT

func ScopeLT(v string) predicate.ConsentGrant

ScopeLT applies the LT predicate on the "scope" field.

func ScopeLTE

func ScopeLTE(v string) predicate.ConsentGrant

ScopeLTE applies the LTE predicate on the "scope" field.

func ScopeNEQ

func ScopeNEQ(v string) predicate.ConsentGrant

ScopeNEQ applies the NEQ predicate on the "scope" field.

func ScopeNotIn

func ScopeNotIn(vs ...string) predicate.ConsentGrant

ScopeNotIn applies the NotIn predicate on the "scope" 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 ConsentGrant queries.

func ByClientID

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

ByClientID orders the results by the client_id field.

func ByGrantedAt

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

ByGrantedAt orders the results by the granted_at field.

func ByID

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

ByID orders the results by the id field.

func ByPrincipalID

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

ByPrincipalID orders the results by the principal_id field.

func ByScope

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

ByScope orders the results by the scope field.

Jump to

Keyboard shortcuts

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