personalaccesstoken

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the personalaccesstoken type in the database.
	Label = "personal_access_token"
	// 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"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// FieldUpdatedBy holds the string denoting the updated_by field in the database.
	FieldUpdatedBy = "updated_by"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldDeletedBy holds the string denoting the deleted_by field in the database.
	FieldDeletedBy = "deleted_by"
	// FieldMappingID holds the string denoting the mapping_id field in the database.
	FieldMappingID = "mapping_id"
	// FieldTags holds the string denoting the tags field in the database.
	FieldTags = "tags"
	// FieldOwnerID holds the string denoting the owner_id field in the database.
	FieldOwnerID = "owner_id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldToken holds the string denoting the token field in the database.
	FieldToken = "token"
	// FieldExpiresAt holds the string denoting the expires_at field in the database.
	FieldExpiresAt = "expires_at"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldScopes holds the string denoting the scopes field in the database.
	FieldScopes = "scopes"
	// FieldLastUsedAt holds the string denoting the last_used_at field in the database.
	FieldLastUsedAt = "last_used_at"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// EdgeOrganizations holds the string denoting the organizations edge name in mutations.
	EdgeOrganizations = "organizations"
	// EdgeEvents holds the string denoting the events edge name in mutations.
	EdgeEvents = "events"
	// Table holds the table name of the personalaccesstoken in the database.
	Table = "personal_access_tokens"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "personal_access_tokens"
	// OwnerInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	OwnerInverseTable = "users"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "owner_id"
	// OrganizationsTable is the table that holds the organizations relation/edge. The primary key declared below.
	OrganizationsTable = "organization_personal_access_tokens"
	// OrganizationsInverseTable is the table name for the Organization entity.
	// It exists in this package in order to avoid circular dependency with the "organization" package.
	OrganizationsInverseTable = "organizations"
	// EventsTable is the table that holds the events relation/edge. The primary key declared below.
	EventsTable = "personal_access_token_events"
	// EventsInverseTable is the table name for the Event entity.
	// It exists in this package in order to avoid circular dependency with the "event" package.
	EventsInverseTable = "events"
)

Variables

View Source
var (
	// OrganizationsPrimaryKey and OrganizationsColumn2 are the table columns denoting the
	// primary key for the organizations relation (M2M).
	OrganizationsPrimaryKey = []string{"organization_id", "personal_access_token_id"}
	// EventsPrimaryKey and EventsColumn2 are the table columns denoting the
	// primary key for the events relation (M2M).
	EventsPrimaryKey = []string{"personal_access_token_id", "event_id"}
)
View Source
var (
	Hooks        [5]ent.Hook
	Interceptors [3]ent.Interceptor
	Policy       ent.Policy
	// 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
	// DefaultMappingID holds the default value on creation for the "mapping_id" field.
	DefaultMappingID func() string
	// DefaultTags holds the default value on creation for the "tags" field.
	DefaultTags []string
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultToken holds the default value on creation for the "token" field.
	DefaultToken func() string
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() string
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/datumforge/datum/internal/ent/generated/runtime"

Columns holds all SQL columns for personalaccesstoken fields.

Functions

func And

And groups predicates with the AND operator between them.

func CreatedAt

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.PersonalAccessToken

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.PersonalAccessToken

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.PersonalAccessToken

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

func CreatedAtIn

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

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

func CreatedAtIsNil added in v0.3.4

func CreatedAtIsNil() predicate.PersonalAccessToken

CreatedAtIsNil applies the IsNil predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.PersonalAccessToken

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.PersonalAccessToken

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.PersonalAccessToken

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

func CreatedAtNotIn

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

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

func CreatedAtNotNil added in v0.3.4

func CreatedAtNotNil() predicate.PersonalAccessToken

CreatedAtNotNil applies the NotNil predicate on the "created_at" field.

func CreatedBy

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByContains

func CreatedByContains(v string) predicate.PersonalAccessToken

CreatedByContains applies the Contains predicate on the "created_by" field.

func CreatedByContainsFold

func CreatedByContainsFold(v string) predicate.PersonalAccessToken

CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.

func CreatedByEQ

func CreatedByEQ(v string) predicate.PersonalAccessToken

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByEqualFold

func CreatedByEqualFold(v string) predicate.PersonalAccessToken

CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v string) predicate.PersonalAccessToken

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v string) predicate.PersonalAccessToken

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByHasPrefix

func CreatedByHasPrefix(v string) predicate.PersonalAccessToken

CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.

func CreatedByHasSuffix

func CreatedByHasSuffix(v string) predicate.PersonalAccessToken

CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...string) predicate.PersonalAccessToken

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByIsNil

func CreatedByIsNil() predicate.PersonalAccessToken

CreatedByIsNil applies the IsNil predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v string) predicate.PersonalAccessToken

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v string) predicate.PersonalAccessToken

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v string) predicate.PersonalAccessToken

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...string) predicate.PersonalAccessToken

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func CreatedByNotNil

func CreatedByNotNil() predicate.PersonalAccessToken

CreatedByNotNil applies the NotNil predicate on the "created_by" field.

func DeletedAt added in v0.2.3

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ added in v0.2.3

func DeletedAtEQ(v time.Time) predicate.PersonalAccessToken

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT added in v0.2.3

func DeletedAtGT(v time.Time) predicate.PersonalAccessToken

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE added in v0.2.3

func DeletedAtGTE(v time.Time) predicate.PersonalAccessToken

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn added in v0.2.3

func DeletedAtIn(vs ...time.Time) predicate.PersonalAccessToken

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil added in v0.2.3

func DeletedAtIsNil() predicate.PersonalAccessToken

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT added in v0.2.3

func DeletedAtLT(v time.Time) predicate.PersonalAccessToken

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE added in v0.2.3

func DeletedAtLTE(v time.Time) predicate.PersonalAccessToken

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ added in v0.2.3

func DeletedAtNEQ(v time.Time) predicate.PersonalAccessToken

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn added in v0.2.3

func DeletedAtNotIn(vs ...time.Time) predicate.PersonalAccessToken

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil added in v0.2.3

func DeletedAtNotNil() predicate.PersonalAccessToken

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func DeletedBy added in v0.2.3

DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.

func DeletedByContains added in v0.2.3

func DeletedByContains(v string) predicate.PersonalAccessToken

DeletedByContains applies the Contains predicate on the "deleted_by" field.

func DeletedByContainsFold added in v0.2.3

func DeletedByContainsFold(v string) predicate.PersonalAccessToken

DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field.

func DeletedByEQ added in v0.2.3

func DeletedByEQ(v string) predicate.PersonalAccessToken

DeletedByEQ applies the EQ predicate on the "deleted_by" field.

func DeletedByEqualFold added in v0.2.3

func DeletedByEqualFold(v string) predicate.PersonalAccessToken

DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field.

func DeletedByGT added in v0.2.3

func DeletedByGT(v string) predicate.PersonalAccessToken

DeletedByGT applies the GT predicate on the "deleted_by" field.

func DeletedByGTE added in v0.2.3

func DeletedByGTE(v string) predicate.PersonalAccessToken

DeletedByGTE applies the GTE predicate on the "deleted_by" field.

func DeletedByHasPrefix added in v0.2.3

func DeletedByHasPrefix(v string) predicate.PersonalAccessToken

DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field.

func DeletedByHasSuffix added in v0.2.3

func DeletedByHasSuffix(v string) predicate.PersonalAccessToken

DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field.

func DeletedByIn added in v0.2.3

func DeletedByIn(vs ...string) predicate.PersonalAccessToken

DeletedByIn applies the In predicate on the "deleted_by" field.

func DeletedByIsNil added in v0.2.3

func DeletedByIsNil() predicate.PersonalAccessToken

DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.

func DeletedByLT added in v0.2.3

func DeletedByLT(v string) predicate.PersonalAccessToken

DeletedByLT applies the LT predicate on the "deleted_by" field.

func DeletedByLTE added in v0.2.3

func DeletedByLTE(v string) predicate.PersonalAccessToken

DeletedByLTE applies the LTE predicate on the "deleted_by" field.

func DeletedByNEQ added in v0.2.3

func DeletedByNEQ(v string) predicate.PersonalAccessToken

DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.

func DeletedByNotIn added in v0.2.3

func DeletedByNotIn(vs ...string) predicate.PersonalAccessToken

DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.

func DeletedByNotNil added in v0.2.3

func DeletedByNotNil() predicate.PersonalAccessToken

DeletedByNotNil applies the NotNil predicate on the "deleted_by" field.

func Description

func Description(v string) predicate.PersonalAccessToken

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.PersonalAccessToken

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.PersonalAccessToken

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.PersonalAccessToken

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.PersonalAccessToken

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.PersonalAccessToken

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.PersonalAccessToken

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.PersonalAccessToken

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.PersonalAccessToken

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.PersonalAccessToken

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.PersonalAccessToken

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.PersonalAccessToken

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.PersonalAccessToken

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.PersonalAccessToken

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.PersonalAccessToken

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.PersonalAccessToken

DescriptionNotNil applies the NotNil predicate on the "description" field.

func ExpiresAt

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

func ExpiresAtEQ

func ExpiresAtEQ(v time.Time) predicate.PersonalAccessToken

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

func ExpiresAtGT

func ExpiresAtGT(v time.Time) predicate.PersonalAccessToken

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

func ExpiresAtGTE

func ExpiresAtGTE(v time.Time) predicate.PersonalAccessToken

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

func ExpiresAtIn

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

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

func ExpiresAtLT

func ExpiresAtLT(v time.Time) predicate.PersonalAccessToken

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

func ExpiresAtLTE

func ExpiresAtLTE(v time.Time) predicate.PersonalAccessToken

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

func ExpiresAtNEQ

func ExpiresAtNEQ(v time.Time) predicate.PersonalAccessToken

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

func ExpiresAtNotIn

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

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

func HasEvents added in v0.5.0

func HasEvents() predicate.PersonalAccessToken

HasEvents applies the HasEdge predicate on the "events" edge.

func HasEventsWith added in v0.5.0

func HasEventsWith(preds ...predicate.Event) predicate.PersonalAccessToken

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

func HasOrganizations added in v0.3.3

func HasOrganizations() predicate.PersonalAccessToken

HasOrganizations applies the HasEdge predicate on the "organizations" edge.

func HasOrganizationsWith added in v0.3.3

func HasOrganizationsWith(preds ...predicate.Organization) predicate.PersonalAccessToken

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

func HasOwner

func HasOwner() predicate.PersonalAccessToken

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.User) predicate.PersonalAccessToken

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

func ID

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.PersonalAccessToken

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.PersonalAccessToken

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.PersonalAccessToken

IDNotIn applies the NotIn predicate on the ID field.

func LastUsedAt

func LastUsedAt(v time.Time) predicate.PersonalAccessToken

LastUsedAt applies equality check predicate on the "last_used_at" field. It's identical to LastUsedAtEQ.

func LastUsedAtEQ

func LastUsedAtEQ(v time.Time) predicate.PersonalAccessToken

LastUsedAtEQ applies the EQ predicate on the "last_used_at" field.

func LastUsedAtGT

func LastUsedAtGT(v time.Time) predicate.PersonalAccessToken

LastUsedAtGT applies the GT predicate on the "last_used_at" field.

func LastUsedAtGTE

func LastUsedAtGTE(v time.Time) predicate.PersonalAccessToken

LastUsedAtGTE applies the GTE predicate on the "last_used_at" field.

func LastUsedAtIn

func LastUsedAtIn(vs ...time.Time) predicate.PersonalAccessToken

LastUsedAtIn applies the In predicate on the "last_used_at" field.

func LastUsedAtIsNil

func LastUsedAtIsNil() predicate.PersonalAccessToken

LastUsedAtIsNil applies the IsNil predicate on the "last_used_at" field.

func LastUsedAtLT

func LastUsedAtLT(v time.Time) predicate.PersonalAccessToken

LastUsedAtLT applies the LT predicate on the "last_used_at" field.

func LastUsedAtLTE

func LastUsedAtLTE(v time.Time) predicate.PersonalAccessToken

LastUsedAtLTE applies the LTE predicate on the "last_used_at" field.

func LastUsedAtNEQ

func LastUsedAtNEQ(v time.Time) predicate.PersonalAccessToken

LastUsedAtNEQ applies the NEQ predicate on the "last_used_at" field.

func LastUsedAtNotIn

func LastUsedAtNotIn(vs ...time.Time) predicate.PersonalAccessToken

LastUsedAtNotIn applies the NotIn predicate on the "last_used_at" field.

func LastUsedAtNotNil

func LastUsedAtNotNil() predicate.PersonalAccessToken

LastUsedAtNotNil applies the NotNil predicate on the "last_used_at" field.

func MappingID added in v0.5.0

MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ.

func MappingIDContains added in v0.5.0

func MappingIDContains(v string) predicate.PersonalAccessToken

MappingIDContains applies the Contains predicate on the "mapping_id" field.

func MappingIDContainsFold added in v0.5.0

func MappingIDContainsFold(v string) predicate.PersonalAccessToken

MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field.

func MappingIDEQ added in v0.5.0

func MappingIDEQ(v string) predicate.PersonalAccessToken

MappingIDEQ applies the EQ predicate on the "mapping_id" field.

func MappingIDEqualFold added in v0.5.0

func MappingIDEqualFold(v string) predicate.PersonalAccessToken

MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field.

func MappingIDGT added in v0.5.0

func MappingIDGT(v string) predicate.PersonalAccessToken

MappingIDGT applies the GT predicate on the "mapping_id" field.

func MappingIDGTE added in v0.5.0

func MappingIDGTE(v string) predicate.PersonalAccessToken

MappingIDGTE applies the GTE predicate on the "mapping_id" field.

func MappingIDHasPrefix added in v0.5.0

func MappingIDHasPrefix(v string) predicate.PersonalAccessToken

MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field.

func MappingIDHasSuffix added in v0.5.0

func MappingIDHasSuffix(v string) predicate.PersonalAccessToken

MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field.

func MappingIDIn added in v0.5.0

func MappingIDIn(vs ...string) predicate.PersonalAccessToken

MappingIDIn applies the In predicate on the "mapping_id" field.

func MappingIDLT added in v0.5.0

func MappingIDLT(v string) predicate.PersonalAccessToken

MappingIDLT applies the LT predicate on the "mapping_id" field.

func MappingIDLTE added in v0.5.0

func MappingIDLTE(v string) predicate.PersonalAccessToken

MappingIDLTE applies the LTE predicate on the "mapping_id" field.

func MappingIDNEQ added in v0.5.0

func MappingIDNEQ(v string) predicate.PersonalAccessToken

MappingIDNEQ applies the NEQ predicate on the "mapping_id" field.

func MappingIDNotIn added in v0.5.0

func MappingIDNotIn(vs ...string) predicate.PersonalAccessToken

MappingIDNotIn applies the NotIn predicate on the "mapping_id" field.

func Name

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.PersonalAccessToken

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.PersonalAccessToken

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.PersonalAccessToken

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

NameGT applies the GT predicate on the "name" field.

func NameGTE

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.PersonalAccessToken

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.PersonalAccessToken

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.PersonalAccessToken

NameIn applies the In predicate on the "name" field.

func NameLT

NameLT applies the LT predicate on the "name" field.

func NameLTE

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.PersonalAccessToken

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func OwnerID added in v0.2.4

OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.

func OwnerIDContains added in v0.2.4

func OwnerIDContains(v string) predicate.PersonalAccessToken

OwnerIDContains applies the Contains predicate on the "owner_id" field.

func OwnerIDContainsFold added in v0.2.4

func OwnerIDContainsFold(v string) predicate.PersonalAccessToken

OwnerIDContainsFold applies the ContainsFold predicate on the "owner_id" field.

func OwnerIDEQ added in v0.2.4

OwnerIDEQ applies the EQ predicate on the "owner_id" field.

func OwnerIDEqualFold added in v0.2.4

func OwnerIDEqualFold(v string) predicate.PersonalAccessToken

OwnerIDEqualFold applies the EqualFold predicate on the "owner_id" field.

func OwnerIDGT added in v0.2.4

OwnerIDGT applies the GT predicate on the "owner_id" field.

func OwnerIDGTE added in v0.2.4

func OwnerIDGTE(v string) predicate.PersonalAccessToken

OwnerIDGTE applies the GTE predicate on the "owner_id" field.

func OwnerIDHasPrefix added in v0.2.4

func OwnerIDHasPrefix(v string) predicate.PersonalAccessToken

OwnerIDHasPrefix applies the HasPrefix predicate on the "owner_id" field.

func OwnerIDHasSuffix added in v0.2.4

func OwnerIDHasSuffix(v string) predicate.PersonalAccessToken

OwnerIDHasSuffix applies the HasSuffix predicate on the "owner_id" field.

func OwnerIDIn added in v0.2.4

func OwnerIDIn(vs ...string) predicate.PersonalAccessToken

OwnerIDIn applies the In predicate on the "owner_id" field.

func OwnerIDLT added in v0.2.4

OwnerIDLT applies the LT predicate on the "owner_id" field.

func OwnerIDLTE added in v0.2.4

func OwnerIDLTE(v string) predicate.PersonalAccessToken

OwnerIDLTE applies the LTE predicate on the "owner_id" field.

func OwnerIDNEQ added in v0.2.4

func OwnerIDNEQ(v string) predicate.PersonalAccessToken

OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.

func OwnerIDNotIn added in v0.2.4

func OwnerIDNotIn(vs ...string) predicate.PersonalAccessToken

OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.

func ScopesIsNil added in v0.3.3

func ScopesIsNil() predicate.PersonalAccessToken

ScopesIsNil applies the IsNil predicate on the "scopes" field.

func ScopesNotNil added in v0.3.3

func ScopesNotNil() predicate.PersonalAccessToken

ScopesNotNil applies the NotNil predicate on the "scopes" field.

func TagsIsNil added in v0.5.2

func TagsIsNil() predicate.PersonalAccessToken

TagsIsNil applies the IsNil predicate on the "tags" field.

func TagsNotNil added in v0.5.2

func TagsNotNil() predicate.PersonalAccessToken

TagsNotNil applies the NotNil predicate on the "tags" field.

func Token

Token applies equality check predicate on the "token" field. It's identical to TokenEQ.

func TokenContains

func TokenContains(v string) predicate.PersonalAccessToken

TokenContains applies the Contains predicate on the "token" field.

func TokenContainsFold

func TokenContainsFold(v string) predicate.PersonalAccessToken

TokenContainsFold applies the ContainsFold predicate on the "token" field.

func TokenEQ

TokenEQ applies the EQ predicate on the "token" field.

func TokenEqualFold

func TokenEqualFold(v string) predicate.PersonalAccessToken

TokenEqualFold applies the EqualFold predicate on the "token" field.

func TokenGT

TokenGT applies the GT predicate on the "token" field.

func TokenGTE

TokenGTE applies the GTE predicate on the "token" field.

func TokenHasPrefix

func TokenHasPrefix(v string) predicate.PersonalAccessToken

TokenHasPrefix applies the HasPrefix predicate on the "token" field.

func TokenHasSuffix

func TokenHasSuffix(v string) predicate.PersonalAccessToken

TokenHasSuffix applies the HasSuffix predicate on the "token" field.

func TokenIn

func TokenIn(vs ...string) predicate.PersonalAccessToken

TokenIn applies the In predicate on the "token" field.

func TokenLT

TokenLT applies the LT predicate on the "token" field.

func TokenLTE

TokenLTE applies the LTE predicate on the "token" field.

func TokenNEQ

TokenNEQ applies the NEQ predicate on the "token" field.

func TokenNotIn

func TokenNotIn(vs ...string) predicate.PersonalAccessToken

TokenNotIn applies the NotIn predicate on the "token" field.

func UpdatedAt

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.PersonalAccessToken

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.PersonalAccessToken

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.PersonalAccessToken

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

func UpdatedAtIn

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

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

func UpdatedAtIsNil added in v0.3.4

func UpdatedAtIsNil() predicate.PersonalAccessToken

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.PersonalAccessToken

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.PersonalAccessToken

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.PersonalAccessToken

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

func UpdatedAtNotIn

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

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

func UpdatedAtNotNil added in v0.3.4

func UpdatedAtNotNil() predicate.PersonalAccessToken

UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.

func UpdatedBy

UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.

func UpdatedByContains

func UpdatedByContains(v string) predicate.PersonalAccessToken

UpdatedByContains applies the Contains predicate on the "updated_by" field.

func UpdatedByContainsFold

func UpdatedByContainsFold(v string) predicate.PersonalAccessToken

UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.

func UpdatedByEQ

func UpdatedByEQ(v string) predicate.PersonalAccessToken

UpdatedByEQ applies the EQ predicate on the "updated_by" field.

func UpdatedByEqualFold

func UpdatedByEqualFold(v string) predicate.PersonalAccessToken

UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.

func UpdatedByGT

func UpdatedByGT(v string) predicate.PersonalAccessToken

UpdatedByGT applies the GT predicate on the "updated_by" field.

func UpdatedByGTE

func UpdatedByGTE(v string) predicate.PersonalAccessToken

UpdatedByGTE applies the GTE predicate on the "updated_by" field.

func UpdatedByHasPrefix

func UpdatedByHasPrefix(v string) predicate.PersonalAccessToken

UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.

func UpdatedByHasSuffix

func UpdatedByHasSuffix(v string) predicate.PersonalAccessToken

UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.

func UpdatedByIn

func UpdatedByIn(vs ...string) predicate.PersonalAccessToken

UpdatedByIn applies the In predicate on the "updated_by" field.

func UpdatedByIsNil

func UpdatedByIsNil() predicate.PersonalAccessToken

UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.

func UpdatedByLT

func UpdatedByLT(v string) predicate.PersonalAccessToken

UpdatedByLT applies the LT predicate on the "updated_by" field.

func UpdatedByLTE

func UpdatedByLTE(v string) predicate.PersonalAccessToken

UpdatedByLTE applies the LTE predicate on the "updated_by" field.

func UpdatedByNEQ

func UpdatedByNEQ(v string) predicate.PersonalAccessToken

UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.

func UpdatedByNotIn

func UpdatedByNotIn(vs ...string) predicate.PersonalAccessToken

UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.

func UpdatedByNotNil

func UpdatedByNotNil() predicate.PersonalAccessToken

UpdatedByNotNil applies the NotNil predicate on the "updated_by" 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 PersonalAccessToken queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByCreatedBy

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

ByCreatedBy orders the results by the created_by field.

func ByDeletedAt added in v0.2.3

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

ByDeletedAt orders the results by the deleted_at field.

func ByDeletedBy added in v0.2.3

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

ByDeletedBy orders the results by the deleted_by field.

func ByDescription

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

ByDescription orders the results by the description field.

func ByEvents added in v0.5.0

func ByEvents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByEvents orders the results by events terms.

func ByEventsCount added in v0.5.0

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

ByEventsCount orders the results by events count.

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 ByLastUsedAt

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

ByLastUsedAt orders the results by the last_used_at field.

func ByMappingID added in v0.5.0

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

ByMappingID orders the results by the mapping_id field.

func ByName

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

ByName orders the results by the name field.

func ByOrganizations added in v0.3.3

func ByOrganizations(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByOrganizations orders the results by organizations terms.

func ByOrganizationsCount added in v0.3.3

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

ByOrganizationsCount orders the results by organizations count.

func ByOwnerField

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

ByOwnerField orders the results by owner field.

func ByOwnerID added in v0.2.4

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

ByOwnerID orders the results by the owner_id field.

func ByToken

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

ByToken orders the results by the token field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByUpdatedBy

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

ByUpdatedBy orders the results by the updated_by field.

Jump to

Keyboard shortcuts

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