sharelink

package
v2.19.2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the sharelink type in the database.
	Label = "share_link"
	// 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"
	// FieldUpdatedByImpersonator holds the string denoting the updated_by_impersonator field in the database.
	FieldUpdatedByImpersonator = "updated_by_impersonator"
	// 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"
	// 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"
	// FieldExpiresAt holds the string denoting the expires_at field in the database.
	FieldExpiresAt = "expires_at"
	// FieldMaxUses holds the string denoting the max_uses field in the database.
	FieldMaxUses = "max_uses"
	// FieldUseCount holds the string denoting the use_count field in the database.
	FieldUseCount = "use_count"
	// FieldRecipientEmails holds the string denoting the recipient_emails field in the database.
	FieldRecipientEmails = "recipient_emails"
	// FieldLandingPage holds the string denoting the landing_page field in the database.
	FieldLandingPage = "landing_page"
	// FieldRequireSession holds the string denoting the require_session field in the database.
	FieldRequireSession = "require_session"
	// FieldCodeHash holds the string denoting the code_hash field in the database.
	FieldCodeHash = "code_hash"
	// FieldCodeExpiresAt holds the string denoting the code_expires_at field in the database.
	FieldCodeExpiresAt = "code_expires_at"
	// FieldCodeAttempts holds the string denoting the code_attempts field in the database.
	FieldCodeAttempts = "code_attempts"
	// FieldRevokedAt holds the string denoting the revoked_at field in the database.
	FieldRevokedAt = "revoked_at"
	// FieldToken holds the string denoting the token field in the database.
	FieldToken = "token"
	// FieldSecret holds the string denoting the secret field in the database.
	FieldSecret = "secret"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// EdgeFiles holds the string denoting the files edge name in mutations.
	EdgeFiles = "files"
	// EdgeShareLinkAccessEvents holds the string denoting the share_link_access_events edge name in mutations.
	EdgeShareLinkAccessEvents = "share_link_access_events"
	// Table holds the table name of the sharelink in the database.
	Table = "share_links"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "share_links"
	// OwnerInverseTable is the table name for the Organization entity.
	// It exists in this package in order to avoid circular dependency with the "organization" package.
	OwnerInverseTable = "organizations"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "owner_id"
	// FilesTable is the table that holds the files relation/edge. The primary key declared below.
	FilesTable = "share_link_files"
	// FilesInverseTable is the table name for the File entity.
	// It exists in this package in order to avoid circular dependency with the "file" package.
	FilesInverseTable = "files"
	// ShareLinkAccessEventsTable is the table that holds the share_link_access_events relation/edge.
	ShareLinkAccessEventsTable = "share_link_access_events"
	// ShareLinkAccessEventsInverseTable is the table name for the ShareLinkAccessEvent entity.
	// It exists in this package in order to avoid circular dependency with the "sharelinkaccessevent" package.
	ShareLinkAccessEventsInverseTable = "share_link_access_events"
	// ShareLinkAccessEventsColumn is the table column denoting the share_link_access_events relation/edge.
	ShareLinkAccessEventsColumn = "share_link_id"
)

Variables

View Source
var (
	Hooks        [7]ent.Hook
	Interceptors [4]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
	// OwnerIDValidator is a validator for the "owner_id" field. It is called by the builders before save.
	OwnerIDValidator func(string) error
	// DefaultExpiresAt holds the default value on creation for the "expires_at" field.
	DefaultExpiresAt func() time.Time
	// DefaultMaxUses holds the default value on creation for the "max_uses" field.
	DefaultMaxUses int
	// MaxUsesValidator is a validator for the "max_uses" field. It is called by the builders before save.
	MaxUsesValidator func(int) error
	// DefaultUseCount holds the default value on creation for the "use_count" field.
	DefaultUseCount int
	// DefaultLandingPage holds the default value on creation for the "landing_page" field.
	DefaultLandingPage bool
	// DefaultRequireSession holds the default value on creation for the "require_session" field.
	DefaultRequireSession bool
	// DefaultCodeAttempts holds the default value on creation for the "code_attempts" field.
	DefaultCodeAttempts int
	// 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/theopenlane/core/v2/internal/ent/generated/runtime"

Columns holds all SQL columns for sharelink fields.

View Source
var (
	// FilesPrimaryKey and FilesColumn2 are the table columns denoting the
	// primary key for the files relation (M2M).
	FilesPrimaryKey = []string{"share_link_id", "file_id"}
)

Functions

func And

func And(predicates ...predicate.ShareLink) predicate.ShareLink

And groups predicates with the AND operator between them.

func CodeAttempts

func CodeAttempts(v int) predicate.ShareLink

CodeAttempts applies equality check predicate on the "code_attempts" field. It's identical to CodeAttemptsEQ.

func CodeAttemptsEQ

func CodeAttemptsEQ(v int) predicate.ShareLink

CodeAttemptsEQ applies the EQ predicate on the "code_attempts" field.

func CodeAttemptsGT

func CodeAttemptsGT(v int) predicate.ShareLink

CodeAttemptsGT applies the GT predicate on the "code_attempts" field.

func CodeAttemptsGTE

func CodeAttemptsGTE(v int) predicate.ShareLink

CodeAttemptsGTE applies the GTE predicate on the "code_attempts" field.

func CodeAttemptsIn

func CodeAttemptsIn(vs ...int) predicate.ShareLink

CodeAttemptsIn applies the In predicate on the "code_attempts" field.

func CodeAttemptsLT

func CodeAttemptsLT(v int) predicate.ShareLink

CodeAttemptsLT applies the LT predicate on the "code_attempts" field.

func CodeAttemptsLTE

func CodeAttemptsLTE(v int) predicate.ShareLink

CodeAttemptsLTE applies the LTE predicate on the "code_attempts" field.

func CodeAttemptsNEQ

func CodeAttemptsNEQ(v int) predicate.ShareLink

CodeAttemptsNEQ applies the NEQ predicate on the "code_attempts" field.

func CodeAttemptsNotIn

func CodeAttemptsNotIn(vs ...int) predicate.ShareLink

CodeAttemptsNotIn applies the NotIn predicate on the "code_attempts" field.

func CodeExpiresAt

func CodeExpiresAt(v time.Time) predicate.ShareLink

CodeExpiresAt applies equality check predicate on the "code_expires_at" field. It's identical to CodeExpiresAtEQ.

func CodeExpiresAtEQ

func CodeExpiresAtEQ(v time.Time) predicate.ShareLink

CodeExpiresAtEQ applies the EQ predicate on the "code_expires_at" field.

func CodeExpiresAtGT

func CodeExpiresAtGT(v time.Time) predicate.ShareLink

CodeExpiresAtGT applies the GT predicate on the "code_expires_at" field.

func CodeExpiresAtGTE

func CodeExpiresAtGTE(v time.Time) predicate.ShareLink

CodeExpiresAtGTE applies the GTE predicate on the "code_expires_at" field.

func CodeExpiresAtIn

func CodeExpiresAtIn(vs ...time.Time) predicate.ShareLink

CodeExpiresAtIn applies the In predicate on the "code_expires_at" field.

func CodeExpiresAtIsNil

func CodeExpiresAtIsNil() predicate.ShareLink

CodeExpiresAtIsNil applies the IsNil predicate on the "code_expires_at" field.

func CodeExpiresAtLT

func CodeExpiresAtLT(v time.Time) predicate.ShareLink

CodeExpiresAtLT applies the LT predicate on the "code_expires_at" field.

func CodeExpiresAtLTE

func CodeExpiresAtLTE(v time.Time) predicate.ShareLink

CodeExpiresAtLTE applies the LTE predicate on the "code_expires_at" field.

func CodeExpiresAtNEQ

func CodeExpiresAtNEQ(v time.Time) predicate.ShareLink

CodeExpiresAtNEQ applies the NEQ predicate on the "code_expires_at" field.

func CodeExpiresAtNotIn

func CodeExpiresAtNotIn(vs ...time.Time) predicate.ShareLink

CodeExpiresAtNotIn applies the NotIn predicate on the "code_expires_at" field.

func CodeExpiresAtNotNil

func CodeExpiresAtNotNil() predicate.ShareLink

CodeExpiresAtNotNil applies the NotNil predicate on the "code_expires_at" field.

func CodeHash

func CodeHash(v []byte) predicate.ShareLink

CodeHash applies equality check predicate on the "code_hash" field. It's identical to CodeHashEQ.

func CodeHashEQ

func CodeHashEQ(v []byte) predicate.ShareLink

CodeHashEQ applies the EQ predicate on the "code_hash" field.

func CodeHashGT

func CodeHashGT(v []byte) predicate.ShareLink

CodeHashGT applies the GT predicate on the "code_hash" field.

func CodeHashGTE

func CodeHashGTE(v []byte) predicate.ShareLink

CodeHashGTE applies the GTE predicate on the "code_hash" field.

func CodeHashIn

func CodeHashIn(vs ...[]byte) predicate.ShareLink

CodeHashIn applies the In predicate on the "code_hash" field.

func CodeHashIsNil

func CodeHashIsNil() predicate.ShareLink

CodeHashIsNil applies the IsNil predicate on the "code_hash" field.

func CodeHashLT

func CodeHashLT(v []byte) predicate.ShareLink

CodeHashLT applies the LT predicate on the "code_hash" field.

func CodeHashLTE

func CodeHashLTE(v []byte) predicate.ShareLink

CodeHashLTE applies the LTE predicate on the "code_hash" field.

func CodeHashNEQ

func CodeHashNEQ(v []byte) predicate.ShareLink

CodeHashNEQ applies the NEQ predicate on the "code_hash" field.

func CodeHashNotIn

func CodeHashNotIn(vs ...[]byte) predicate.ShareLink

CodeHashNotIn applies the NotIn predicate on the "code_hash" field.

func CodeHashNotNil

func CodeHashNotNil() predicate.ShareLink

CodeHashNotNil applies the NotNil predicate on the "code_hash" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.ShareLink

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.ShareLink

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.ShareLink

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.ShareLink

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

func CreatedAtIn

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

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

func CreatedAtIsNil

func CreatedAtIsNil() predicate.ShareLink

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.ShareLink

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.ShareLink

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.ShareLink

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

func CreatedAtNotIn

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

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

func CreatedAtNotNil

func CreatedAtNotNil() predicate.ShareLink

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

func CreatedBy

func CreatedBy(v string) predicate.ShareLink

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

func CreatedByContains

func CreatedByContains(v string) predicate.ShareLink

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

func CreatedByContainsFold

func CreatedByContainsFold(v string) predicate.ShareLink

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

func CreatedByEQ

func CreatedByEQ(v string) predicate.ShareLink

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

func CreatedByEqualFold

func CreatedByEqualFold(v string) predicate.ShareLink

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

func CreatedByGT

func CreatedByGT(v string) predicate.ShareLink

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

func CreatedByGTE

func CreatedByGTE(v string) predicate.ShareLink

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

func CreatedByHasPrefix

func CreatedByHasPrefix(v string) predicate.ShareLink

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

func CreatedByHasSuffix

func CreatedByHasSuffix(v string) predicate.ShareLink

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

func CreatedByIn

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

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

func CreatedByIsNil

func CreatedByIsNil() predicate.ShareLink

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

func CreatedByLT

func CreatedByLT(v string) predicate.ShareLink

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

func CreatedByLTE

func CreatedByLTE(v string) predicate.ShareLink

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

func CreatedByNEQ

func CreatedByNEQ(v string) predicate.ShareLink

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

func CreatedByNotIn

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

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

func CreatedByNotNil

func CreatedByNotNil() predicate.ShareLink

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

func DeletedAt

func DeletedAt(v time.Time) predicate.ShareLink

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

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.ShareLink

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

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.ShareLink

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

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.ShareLink

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

func DeletedAtIn

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

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

func DeletedAtIsNil

func DeletedAtIsNil() predicate.ShareLink

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

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.ShareLink

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

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.ShareLink

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

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.ShareLink

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

func DeletedAtNotIn

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

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

func DeletedAtNotNil

func DeletedAtNotNil() predicate.ShareLink

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

func DeletedBy

func DeletedBy(v string) predicate.ShareLink

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

func DeletedByContains

func DeletedByContains(v string) predicate.ShareLink

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

func DeletedByContainsFold

func DeletedByContainsFold(v string) predicate.ShareLink

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

func DeletedByEQ

func DeletedByEQ(v string) predicate.ShareLink

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

func DeletedByEqualFold

func DeletedByEqualFold(v string) predicate.ShareLink

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

func DeletedByGT

func DeletedByGT(v string) predicate.ShareLink

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

func DeletedByGTE

func DeletedByGTE(v string) predicate.ShareLink

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

func DeletedByHasPrefix

func DeletedByHasPrefix(v string) predicate.ShareLink

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

func DeletedByHasSuffix

func DeletedByHasSuffix(v string) predicate.ShareLink

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

func DeletedByIn

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

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

func DeletedByIsNil

func DeletedByIsNil() predicate.ShareLink

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

func DeletedByLT

func DeletedByLT(v string) predicate.ShareLink

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

func DeletedByLTE

func DeletedByLTE(v string) predicate.ShareLink

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

func DeletedByNEQ

func DeletedByNEQ(v string) predicate.ShareLink

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

func DeletedByNotIn

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

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

func DeletedByNotNil

func DeletedByNotNil() predicate.ShareLink

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

func ExpiresAt

func ExpiresAt(v time.Time) predicate.ShareLink

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

func ExpiresAtEQ

func ExpiresAtEQ(v time.Time) predicate.ShareLink

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

func ExpiresAtGT

func ExpiresAtGT(v time.Time) predicate.ShareLink

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

func ExpiresAtGTE

func ExpiresAtGTE(v time.Time) predicate.ShareLink

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

func ExpiresAtIn

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

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

func ExpiresAtIsNil

func ExpiresAtIsNil() predicate.ShareLink

ExpiresAtIsNil applies the IsNil predicate on the "expires_at" field.

func ExpiresAtLT

func ExpiresAtLT(v time.Time) predicate.ShareLink

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

func ExpiresAtLTE

func ExpiresAtLTE(v time.Time) predicate.ShareLink

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

func ExpiresAtNEQ

func ExpiresAtNEQ(v time.Time) predicate.ShareLink

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

func ExpiresAtNotIn

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

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

func ExpiresAtNotNil

func ExpiresAtNotNil() predicate.ShareLink

ExpiresAtNotNil applies the NotNil predicate on the "expires_at" field.

func HasFiles

func HasFiles() predicate.ShareLink

HasFiles applies the HasEdge predicate on the "files" edge.

func HasFilesWith

func HasFilesWith(preds ...predicate.File) predicate.ShareLink

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

func HasOwner

func HasOwner() predicate.ShareLink

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

func HasOwnerWith

func HasOwnerWith(preds ...predicate.Organization) predicate.ShareLink

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

func HasShareLinkAccessEvents

func HasShareLinkAccessEvents() predicate.ShareLink

HasShareLinkAccessEvents applies the HasEdge predicate on the "share_link_access_events" edge.

func HasShareLinkAccessEventsWith

func HasShareLinkAccessEventsWith(preds ...predicate.ShareLinkAccessEvent) predicate.ShareLink

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

func ID

func ID(id string) predicate.ShareLink

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.ShareLink

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.ShareLink

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.ShareLink

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.ShareLink

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.ShareLink

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.ShareLink

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.ShareLink

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.ShareLink

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.ShareLink

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LandingPage

func LandingPage(v bool) predicate.ShareLink

LandingPage applies equality check predicate on the "landing_page" field. It's identical to LandingPageEQ.

func LandingPageEQ

func LandingPageEQ(v bool) predicate.ShareLink

LandingPageEQ applies the EQ predicate on the "landing_page" field.

func LandingPageIsNil

func LandingPageIsNil() predicate.ShareLink

LandingPageIsNil applies the IsNil predicate on the "landing_page" field.

func LandingPageNEQ

func LandingPageNEQ(v bool) predicate.ShareLink

LandingPageNEQ applies the NEQ predicate on the "landing_page" field.

func LandingPageNotNil

func LandingPageNotNil() predicate.ShareLink

LandingPageNotNil applies the NotNil predicate on the "landing_page" field.

func MaxUses

func MaxUses(v int) predicate.ShareLink

MaxUses applies equality check predicate on the "max_uses" field. It's identical to MaxUsesEQ.

func MaxUsesEQ

func MaxUsesEQ(v int) predicate.ShareLink

MaxUsesEQ applies the EQ predicate on the "max_uses" field.

func MaxUsesGT

func MaxUsesGT(v int) predicate.ShareLink

MaxUsesGT applies the GT predicate on the "max_uses" field.

func MaxUsesGTE

func MaxUsesGTE(v int) predicate.ShareLink

MaxUsesGTE applies the GTE predicate on the "max_uses" field.

func MaxUsesIn

func MaxUsesIn(vs ...int) predicate.ShareLink

MaxUsesIn applies the In predicate on the "max_uses" field.

func MaxUsesIsNil

func MaxUsesIsNil() predicate.ShareLink

MaxUsesIsNil applies the IsNil predicate on the "max_uses" field.

func MaxUsesLT

func MaxUsesLT(v int) predicate.ShareLink

MaxUsesLT applies the LT predicate on the "max_uses" field.

func MaxUsesLTE

func MaxUsesLTE(v int) predicate.ShareLink

MaxUsesLTE applies the LTE predicate on the "max_uses" field.

func MaxUsesNEQ

func MaxUsesNEQ(v int) predicate.ShareLink

MaxUsesNEQ applies the NEQ predicate on the "max_uses" field.

func MaxUsesNotIn

func MaxUsesNotIn(vs ...int) predicate.ShareLink

MaxUsesNotIn applies the NotIn predicate on the "max_uses" field.

func MaxUsesNotNil

func MaxUsesNotNil() predicate.ShareLink

MaxUsesNotNil applies the NotNil predicate on the "max_uses" field.

func Name

func Name(v string) predicate.ShareLink

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

func NameContains

func NameContains(v string) predicate.ShareLink

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

func NameContainsFold

func NameContainsFold(v string) predicate.ShareLink

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

func NameEQ

func NameEQ(v string) predicate.ShareLink

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

func NameEqualFold

func NameEqualFold(v string) predicate.ShareLink

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

func NameGT

func NameGT(v string) predicate.ShareLink

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

func NameGTE

func NameGTE(v string) predicate.ShareLink

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.ShareLink

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.ShareLink

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

func NameIn

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

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

func NameIsNil

func NameIsNil() predicate.ShareLink

NameIsNil applies the IsNil predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.ShareLink

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

func NameLTE

func NameLTE(v string) predicate.ShareLink

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

func NameNEQ

func NameNEQ(v string) predicate.ShareLink

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

func NameNotIn

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

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

func NameNotNil

func NameNotNil() predicate.ShareLink

NameNotNil applies the NotNil predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.ShareLink) predicate.ShareLink

Or groups predicates with the OR operator between them.

func OwnerID

func OwnerID(v string) predicate.ShareLink

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

func OwnerIDContains

func OwnerIDContains(v string) predicate.ShareLink

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

func OwnerIDContainsFold

func OwnerIDContainsFold(v string) predicate.ShareLink

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

func OwnerIDEQ

func OwnerIDEQ(v string) predicate.ShareLink

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

func OwnerIDEqualFold

func OwnerIDEqualFold(v string) predicate.ShareLink

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

func OwnerIDGT

func OwnerIDGT(v string) predicate.ShareLink

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

func OwnerIDGTE

func OwnerIDGTE(v string) predicate.ShareLink

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

func OwnerIDHasPrefix

func OwnerIDHasPrefix(v string) predicate.ShareLink

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

func OwnerIDHasSuffix

func OwnerIDHasSuffix(v string) predicate.ShareLink

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

func OwnerIDIn

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

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

func OwnerIDIsNil

func OwnerIDIsNil() predicate.ShareLink

OwnerIDIsNil applies the IsNil predicate on the "owner_id" field.

func OwnerIDLT

func OwnerIDLT(v string) predicate.ShareLink

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

func OwnerIDLTE

func OwnerIDLTE(v string) predicate.ShareLink

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

func OwnerIDNEQ

func OwnerIDNEQ(v string) predicate.ShareLink

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

func OwnerIDNotIn

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

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

func OwnerIDNotNil

func OwnerIDNotNil() predicate.ShareLink

OwnerIDNotNil applies the NotNil predicate on the "owner_id" field.

func RecipientEmailsIsNil

func RecipientEmailsIsNil() predicate.ShareLink

RecipientEmailsIsNil applies the IsNil predicate on the "recipient_emails" field.

func RecipientEmailsNotNil

func RecipientEmailsNotNil() predicate.ShareLink

RecipientEmailsNotNil applies the NotNil predicate on the "recipient_emails" field.

func RequireSession

func RequireSession(v bool) predicate.ShareLink

RequireSession applies equality check predicate on the "require_session" field. It's identical to RequireSessionEQ.

func RequireSessionEQ

func RequireSessionEQ(v bool) predicate.ShareLink

RequireSessionEQ applies the EQ predicate on the "require_session" field.

func RequireSessionIsNil

func RequireSessionIsNil() predicate.ShareLink

RequireSessionIsNil applies the IsNil predicate on the "require_session" field.

func RequireSessionNEQ

func RequireSessionNEQ(v bool) predicate.ShareLink

RequireSessionNEQ applies the NEQ predicate on the "require_session" field.

func RequireSessionNotNil

func RequireSessionNotNil() predicate.ShareLink

RequireSessionNotNil applies the NotNil predicate on the "require_session" field.

func RevokedAt

func RevokedAt(v time.Time) predicate.ShareLink

RevokedAt applies equality check predicate on the "revoked_at" field. It's identical to RevokedAtEQ.

func RevokedAtEQ

func RevokedAtEQ(v time.Time) predicate.ShareLink

RevokedAtEQ applies the EQ predicate on the "revoked_at" field.

func RevokedAtGT

func RevokedAtGT(v time.Time) predicate.ShareLink

RevokedAtGT applies the GT predicate on the "revoked_at" field.

func RevokedAtGTE

func RevokedAtGTE(v time.Time) predicate.ShareLink

RevokedAtGTE applies the GTE predicate on the "revoked_at" field.

func RevokedAtIn

func RevokedAtIn(vs ...time.Time) predicate.ShareLink

RevokedAtIn applies the In predicate on the "revoked_at" field.

func RevokedAtIsNil

func RevokedAtIsNil() predicate.ShareLink

RevokedAtIsNil applies the IsNil predicate on the "revoked_at" field.

func RevokedAtLT

func RevokedAtLT(v time.Time) predicate.ShareLink

RevokedAtLT applies the LT predicate on the "revoked_at" field.

func RevokedAtLTE

func RevokedAtLTE(v time.Time) predicate.ShareLink

RevokedAtLTE applies the LTE predicate on the "revoked_at" field.

func RevokedAtNEQ

func RevokedAtNEQ(v time.Time) predicate.ShareLink

RevokedAtNEQ applies the NEQ predicate on the "revoked_at" field.

func RevokedAtNotIn

func RevokedAtNotIn(vs ...time.Time) predicate.ShareLink

RevokedAtNotIn applies the NotIn predicate on the "revoked_at" field.

func RevokedAtNotNil

func RevokedAtNotNil() predicate.ShareLink

RevokedAtNotNil applies the NotNil predicate on the "revoked_at" field.

func Secret

func Secret(v []byte) predicate.ShareLink

Secret applies equality check predicate on the "secret" field. It's identical to SecretEQ.

func SecretEQ

func SecretEQ(v []byte) predicate.ShareLink

SecretEQ applies the EQ predicate on the "secret" field.

func SecretGT

func SecretGT(v []byte) predicate.ShareLink

SecretGT applies the GT predicate on the "secret" field.

func SecretGTE

func SecretGTE(v []byte) predicate.ShareLink

SecretGTE applies the GTE predicate on the "secret" field.

func SecretIn

func SecretIn(vs ...[]byte) predicate.ShareLink

SecretIn applies the In predicate on the "secret" field.

func SecretIsNil

func SecretIsNil() predicate.ShareLink

SecretIsNil applies the IsNil predicate on the "secret" field.

func SecretLT

func SecretLT(v []byte) predicate.ShareLink

SecretLT applies the LT predicate on the "secret" field.

func SecretLTE

func SecretLTE(v []byte) predicate.ShareLink

SecretLTE applies the LTE predicate on the "secret" field.

func SecretNEQ

func SecretNEQ(v []byte) predicate.ShareLink

SecretNEQ applies the NEQ predicate on the "secret" field.

func SecretNotIn

func SecretNotIn(vs ...[]byte) predicate.ShareLink

SecretNotIn applies the NotIn predicate on the "secret" field.

func SecretNotNil

func SecretNotNil() predicate.ShareLink

SecretNotNil applies the NotNil predicate on the "secret" field.

func Token

func Token(v string) predicate.ShareLink

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

func TokenContains

func TokenContains(v string) predicate.ShareLink

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

func TokenContainsFold

func TokenContainsFold(v string) predicate.ShareLink

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

func TokenEQ

func TokenEQ(v string) predicate.ShareLink

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

func TokenEqualFold

func TokenEqualFold(v string) predicate.ShareLink

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

func TokenGT

func TokenGT(v string) predicate.ShareLink

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

func TokenGTE

func TokenGTE(v string) predicate.ShareLink

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

func TokenHasPrefix

func TokenHasPrefix(v string) predicate.ShareLink

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

func TokenHasSuffix

func TokenHasSuffix(v string) predicate.ShareLink

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

func TokenIn

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

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

func TokenLT

func TokenLT(v string) predicate.ShareLink

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

func TokenLTE

func TokenLTE(v string) predicate.ShareLink

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

func TokenNEQ

func TokenNEQ(v string) predicate.ShareLink

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

func TokenNotIn

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

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.ShareLink

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.ShareLink

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.ShareLink

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.ShareLink

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

func UpdatedAtIn

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

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

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.ShareLink

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.ShareLink

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.ShareLink

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.ShareLink

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

func UpdatedAtNotIn

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

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

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.ShareLink

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

func UpdatedBy

func UpdatedBy(v string) predicate.ShareLink

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

func UpdatedByContains

func UpdatedByContains(v string) predicate.ShareLink

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

func UpdatedByContainsFold

func UpdatedByContainsFold(v string) predicate.ShareLink

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

func UpdatedByEQ

func UpdatedByEQ(v string) predicate.ShareLink

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

func UpdatedByEqualFold

func UpdatedByEqualFold(v string) predicate.ShareLink

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

func UpdatedByGT

func UpdatedByGT(v string) predicate.ShareLink

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

func UpdatedByGTE

func UpdatedByGTE(v string) predicate.ShareLink

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

func UpdatedByHasPrefix

func UpdatedByHasPrefix(v string) predicate.ShareLink

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

func UpdatedByHasSuffix

func UpdatedByHasSuffix(v string) predicate.ShareLink

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

func UpdatedByImpersonator

func UpdatedByImpersonator(v string) predicate.ShareLink

UpdatedByImpersonator applies equality check predicate on the "updated_by_impersonator" field. It's identical to UpdatedByImpersonatorEQ.

func UpdatedByImpersonatorContains

func UpdatedByImpersonatorContains(v string) predicate.ShareLink

UpdatedByImpersonatorContains applies the Contains predicate on the "updated_by_impersonator" field.

func UpdatedByImpersonatorContainsFold

func UpdatedByImpersonatorContainsFold(v string) predicate.ShareLink

UpdatedByImpersonatorContainsFold applies the ContainsFold predicate on the "updated_by_impersonator" field.

func UpdatedByImpersonatorEQ

func UpdatedByImpersonatorEQ(v string) predicate.ShareLink

UpdatedByImpersonatorEQ applies the EQ predicate on the "updated_by_impersonator" field.

func UpdatedByImpersonatorEqualFold

func UpdatedByImpersonatorEqualFold(v string) predicate.ShareLink

UpdatedByImpersonatorEqualFold applies the EqualFold predicate on the "updated_by_impersonator" field.

func UpdatedByImpersonatorGT

func UpdatedByImpersonatorGT(v string) predicate.ShareLink

UpdatedByImpersonatorGT applies the GT predicate on the "updated_by_impersonator" field.

func UpdatedByImpersonatorGTE

func UpdatedByImpersonatorGTE(v string) predicate.ShareLink

UpdatedByImpersonatorGTE applies the GTE predicate on the "updated_by_impersonator" field.

func UpdatedByImpersonatorHasPrefix

func UpdatedByImpersonatorHasPrefix(v string) predicate.ShareLink

UpdatedByImpersonatorHasPrefix applies the HasPrefix predicate on the "updated_by_impersonator" field.

func UpdatedByImpersonatorHasSuffix

func UpdatedByImpersonatorHasSuffix(v string) predicate.ShareLink

UpdatedByImpersonatorHasSuffix applies the HasSuffix predicate on the "updated_by_impersonator" field.

func UpdatedByImpersonatorIn

func UpdatedByImpersonatorIn(vs ...string) predicate.ShareLink

UpdatedByImpersonatorIn applies the In predicate on the "updated_by_impersonator" field.

func UpdatedByImpersonatorIsNil

func UpdatedByImpersonatorIsNil() predicate.ShareLink

UpdatedByImpersonatorIsNil applies the IsNil predicate on the "updated_by_impersonator" field.

func UpdatedByImpersonatorLT

func UpdatedByImpersonatorLT(v string) predicate.ShareLink

UpdatedByImpersonatorLT applies the LT predicate on the "updated_by_impersonator" field.

func UpdatedByImpersonatorLTE

func UpdatedByImpersonatorLTE(v string) predicate.ShareLink

UpdatedByImpersonatorLTE applies the LTE predicate on the "updated_by_impersonator" field.

func UpdatedByImpersonatorNEQ

func UpdatedByImpersonatorNEQ(v string) predicate.ShareLink

UpdatedByImpersonatorNEQ applies the NEQ predicate on the "updated_by_impersonator" field.

func UpdatedByImpersonatorNotIn

func UpdatedByImpersonatorNotIn(vs ...string) predicate.ShareLink

UpdatedByImpersonatorNotIn applies the NotIn predicate on the "updated_by_impersonator" field.

func UpdatedByImpersonatorNotNil

func UpdatedByImpersonatorNotNil() predicate.ShareLink

UpdatedByImpersonatorNotNil applies the NotNil predicate on the "updated_by_impersonator" field.

func UpdatedByIn

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

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

func UpdatedByIsNil

func UpdatedByIsNil() predicate.ShareLink

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

func UpdatedByLT

func UpdatedByLT(v string) predicate.ShareLink

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

func UpdatedByLTE

func UpdatedByLTE(v string) predicate.ShareLink

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

func UpdatedByNEQ

func UpdatedByNEQ(v string) predicate.ShareLink

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

func UpdatedByNotIn

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

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

func UpdatedByNotNil

func UpdatedByNotNil() predicate.ShareLink

UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.

func UseCount

func UseCount(v int) predicate.ShareLink

UseCount applies equality check predicate on the "use_count" field. It's identical to UseCountEQ.

func UseCountEQ

func UseCountEQ(v int) predicate.ShareLink

UseCountEQ applies the EQ predicate on the "use_count" field.

func UseCountGT

func UseCountGT(v int) predicate.ShareLink

UseCountGT applies the GT predicate on the "use_count" field.

func UseCountGTE

func UseCountGTE(v int) predicate.ShareLink

UseCountGTE applies the GTE predicate on the "use_count" field.

func UseCountIn

func UseCountIn(vs ...int) predicate.ShareLink

UseCountIn applies the In predicate on the "use_count" field.

func UseCountLT

func UseCountLT(v int) predicate.ShareLink

UseCountLT applies the LT predicate on the "use_count" field.

func UseCountLTE

func UseCountLTE(v int) predicate.ShareLink

UseCountLTE applies the LTE predicate on the "use_count" field.

func UseCountNEQ

func UseCountNEQ(v int) predicate.ShareLink

UseCountNEQ applies the NEQ predicate on the "use_count" field.

func UseCountNotIn

func UseCountNotIn(vs ...int) predicate.ShareLink

UseCountNotIn applies the NotIn predicate on the "use_count" 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 ShareLink queries.

func ByCodeAttempts

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

ByCodeAttempts orders the results by the code_attempts field.

func ByCodeExpiresAt

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

ByCodeExpiresAt orders the results by the code_expires_at field.

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

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

ByDeletedAt orders the results by the deleted_at field.

func ByDeletedBy

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

ByDeletedBy orders the results by the deleted_by field.

func ByExpiresAt

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

ByExpiresAt orders the results by the expires_at field.

func ByFiles

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

ByFiles orders the results by files terms.

func ByFilesCount

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

ByFilesCount orders the results by files count.

func ByID

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

ByID orders the results by the id field.

func ByLandingPage

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

ByLandingPage orders the results by the landing_page field.

func ByMaxUses

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

ByMaxUses orders the results by the max_uses field.

func ByName

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

ByName orders the results by the name field.

func ByOwnerField

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

ByOwnerField orders the results by owner field.

func ByOwnerID

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

ByOwnerID orders the results by the owner_id field.

func ByRequireSession

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

ByRequireSession orders the results by the require_session field.

func ByRevokedAt

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

ByRevokedAt orders the results by the revoked_at field.

func ByShareLinkAccessEvents

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

ByShareLinkAccessEvents orders the results by share_link_access_events terms.

func ByShareLinkAccessEventsCount

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

ByShareLinkAccessEventsCount orders the results by share_link_access_events count.

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.

func ByUpdatedByImpersonator

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

ByUpdatedByImpersonator orders the results by the updated_by_impersonator field.

func ByUseCount

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

ByUseCount orders the results by the use_count field.

Jump to

Keyboard shortcuts

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