connection

package
v0.0.0-...-8b6722b Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the connection type in the database.
	Label = "connection"
	// 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"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldAccessToken holds the string denoting the access_token field in the database.
	FieldAccessToken = "access_token"
	// FieldRefreshToken holds the string denoting the refresh_token field in the database.
	FieldRefreshToken = "refresh_token"
	// FieldAccountID holds the string denoting the account_id field in the database.
	FieldAccountID = "account_id"
	// FieldSourceID holds the string denoting the source_id field in the database.
	FieldSourceID = "source_id"
	// EdgeSource holds the string denoting the source edge name in mutations.
	EdgeSource = "source"
	// EdgeAccount holds the string denoting the account edge name in mutations.
	EdgeAccount = "account"
	// EdgePortfolios holds the string denoting the portfolios edge name in mutations.
	EdgePortfolios = "portfolios"
	// Table holds the table name of the connection in the database.
	Table = "connections"
	// SourceTable is the table that holds the source relation/edge.
	SourceTable = "connections"
	// SourceInverseTable is the table name for the Source entity.
	// It exists in this package in order to avoid circular dependency with the "source" package.
	SourceInverseTable = "sources"
	// SourceColumn is the table column denoting the source relation/edge.
	SourceColumn = "source_id"
	// AccountTable is the table that holds the account relation/edge.
	AccountTable = "connections"
	// AccountInverseTable is the table name for the Account entity.
	// It exists in this package in order to avoid circular dependency with the "account" package.
	AccountInverseTable = "accounts"
	// AccountColumn is the table column denoting the account relation/edge.
	AccountColumn = "account_id"
	// PortfoliosTable is the table that holds the portfolios relation/edge. The primary key declared below.
	PortfoliosTable = "portfolio_connections"
	// PortfoliosInverseTable is the table name for the Portfolio entity.
	// It exists in this package in order to avoid circular dependency with the "portfolio" package.
	PortfoliosInverseTable = "portfolios"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// UpdateDefaultDeletedAt holds the default value on update for the "deleted_at" field.
	UpdateDefaultDeletedAt func() time.Time
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// AccessTokenValidator is a validator for the "access_token" field. It is called by the builders before save.
	AccessTokenValidator func(string) error
	// RefreshTokenValidator is a validator for the "refresh_token" field. It is called by the builders before save.
	RefreshTokenValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() pulid.PULID
)

Columns holds all SQL columns for connection fields.

View Source
var (
	// PortfoliosPrimaryKey and PortfoliosColumn2 are the table columns denoting the
	// primary key for the portfolios relation (M2M).
	PortfoliosPrimaryKey = []string{"portfolio_id", "connection_id"}
)

Functions

func AccessToken

func AccessToken(v string) predicate.Connection

AccessToken applies equality check predicate on the "access_token" field. It's identical to AccessTokenEQ.

func AccessTokenContains

func AccessTokenContains(v string) predicate.Connection

AccessTokenContains applies the Contains predicate on the "access_token" field.

func AccessTokenContainsFold

func AccessTokenContainsFold(v string) predicate.Connection

AccessTokenContainsFold applies the ContainsFold predicate on the "access_token" field.

func AccessTokenEQ

func AccessTokenEQ(v string) predicate.Connection

AccessTokenEQ applies the EQ predicate on the "access_token" field.

func AccessTokenEqualFold

func AccessTokenEqualFold(v string) predicate.Connection

AccessTokenEqualFold applies the EqualFold predicate on the "access_token" field.

func AccessTokenGT

func AccessTokenGT(v string) predicate.Connection

AccessTokenGT applies the GT predicate on the "access_token" field.

func AccessTokenGTE

func AccessTokenGTE(v string) predicate.Connection

AccessTokenGTE applies the GTE predicate on the "access_token" field.

func AccessTokenHasPrefix

func AccessTokenHasPrefix(v string) predicate.Connection

AccessTokenHasPrefix applies the HasPrefix predicate on the "access_token" field.

func AccessTokenHasSuffix

func AccessTokenHasSuffix(v string) predicate.Connection

AccessTokenHasSuffix applies the HasSuffix predicate on the "access_token" field.

func AccessTokenIn

func AccessTokenIn(vs ...string) predicate.Connection

AccessTokenIn applies the In predicate on the "access_token" field.

func AccessTokenLT

func AccessTokenLT(v string) predicate.Connection

AccessTokenLT applies the LT predicate on the "access_token" field.

func AccessTokenLTE

func AccessTokenLTE(v string) predicate.Connection

AccessTokenLTE applies the LTE predicate on the "access_token" field.

func AccessTokenNEQ

func AccessTokenNEQ(v string) predicate.Connection

AccessTokenNEQ applies the NEQ predicate on the "access_token" field.

func AccessTokenNotIn

func AccessTokenNotIn(vs ...string) predicate.Connection

AccessTokenNotIn applies the NotIn predicate on the "access_token" field.

func AccountID

func AccountID(v pulid.PULID) predicate.Connection

AccountID applies equality check predicate on the "account_id" field. It's identical to AccountIDEQ.

func AccountIDContains

func AccountIDContains(v pulid.PULID) predicate.Connection

AccountIDContains applies the Contains predicate on the "account_id" field.

func AccountIDContainsFold

func AccountIDContainsFold(v pulid.PULID) predicate.Connection

AccountIDContainsFold applies the ContainsFold predicate on the "account_id" field.

func AccountIDEQ

func AccountIDEQ(v pulid.PULID) predicate.Connection

AccountIDEQ applies the EQ predicate on the "account_id" field.

func AccountIDEqualFold

func AccountIDEqualFold(v pulid.PULID) predicate.Connection

AccountIDEqualFold applies the EqualFold predicate on the "account_id" field.

func AccountIDGT

func AccountIDGT(v pulid.PULID) predicate.Connection

AccountIDGT applies the GT predicate on the "account_id" field.

func AccountIDGTE

func AccountIDGTE(v pulid.PULID) predicate.Connection

AccountIDGTE applies the GTE predicate on the "account_id" field.

func AccountIDHasPrefix

func AccountIDHasPrefix(v pulid.PULID) predicate.Connection

AccountIDHasPrefix applies the HasPrefix predicate on the "account_id" field.

func AccountIDHasSuffix

func AccountIDHasSuffix(v pulid.PULID) predicate.Connection

AccountIDHasSuffix applies the HasSuffix predicate on the "account_id" field.

func AccountIDIn

func AccountIDIn(vs ...pulid.PULID) predicate.Connection

AccountIDIn applies the In predicate on the "account_id" field.

func AccountIDLT

func AccountIDLT(v pulid.PULID) predicate.Connection

AccountIDLT applies the LT predicate on the "account_id" field.

func AccountIDLTE

func AccountIDLTE(v pulid.PULID) predicate.Connection

AccountIDLTE applies the LTE predicate on the "account_id" field.

func AccountIDNEQ

func AccountIDNEQ(v pulid.PULID) predicate.Connection

AccountIDNEQ applies the NEQ predicate on the "account_id" field.

func AccountIDNotIn

func AccountIDNotIn(vs ...pulid.PULID) predicate.Connection

AccountIDNotIn applies the NotIn predicate on the "account_id" field.

func And

func And(predicates ...predicate.Connection) predicate.Connection

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Connection

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Connection

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Connection

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Connection

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Connection

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Connection

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Connection

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.Connection

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

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Connection

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

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Connection

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

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Connection

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

func DeletedAtIn

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

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

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Connection

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

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Connection

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

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Connection

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

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Connection

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

func DeletedAtNotIn

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

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

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Connection

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

func HasAccount

func HasAccount() predicate.Connection

HasAccount applies the HasEdge predicate on the "account" edge.

func HasAccountWith

func HasAccountWith(preds ...predicate.Account) predicate.Connection

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

func HasPortfolios

func HasPortfolios() predicate.Connection

HasPortfolios applies the HasEdge predicate on the "portfolios" edge.

func HasPortfoliosWith

func HasPortfoliosWith(preds ...predicate.Portfolio) predicate.Connection

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

func HasSource

func HasSource() predicate.Connection

HasSource applies the HasEdge predicate on the "source" edge.

func HasSourceWith

func HasSourceWith(preds ...predicate.Source) predicate.Connection

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

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 pulid.PULID) predicate.Connection

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...pulid.PULID) predicate.Connection

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 pulid.PULID) predicate.Connection

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id pulid.PULID) predicate.Connection

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...pulid.PULID) predicate.Connection

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Connection

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

func NameContains

func NameContains(v string) predicate.Connection

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

func NameContainsFold

func NameContainsFold(v string) predicate.Connection

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

func NameEQ

func NameEQ(v string) predicate.Connection

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

func NameEqualFold

func NameEqualFold(v string) predicate.Connection

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

func NameGT

func NameGT(v string) predicate.Connection

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

func NameGTE

func NameGTE(v string) predicate.Connection

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Connection

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Connection

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Connection

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

func NameLTE

func NameLTE(v string) predicate.Connection

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

func NameNEQ

func NameNEQ(v string) predicate.Connection

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

func NameNotIn

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

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

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Connection) predicate.Connection

Or groups predicates with the OR operator between them.

func RefreshToken

func RefreshToken(v string) predicate.Connection

RefreshToken applies equality check predicate on the "refresh_token" field. It's identical to RefreshTokenEQ.

func RefreshTokenContains

func RefreshTokenContains(v string) predicate.Connection

RefreshTokenContains applies the Contains predicate on the "refresh_token" field.

func RefreshTokenContainsFold

func RefreshTokenContainsFold(v string) predicate.Connection

RefreshTokenContainsFold applies the ContainsFold predicate on the "refresh_token" field.

func RefreshTokenEQ

func RefreshTokenEQ(v string) predicate.Connection

RefreshTokenEQ applies the EQ predicate on the "refresh_token" field.

func RefreshTokenEqualFold

func RefreshTokenEqualFold(v string) predicate.Connection

RefreshTokenEqualFold applies the EqualFold predicate on the "refresh_token" field.

func RefreshTokenGT

func RefreshTokenGT(v string) predicate.Connection

RefreshTokenGT applies the GT predicate on the "refresh_token" field.

func RefreshTokenGTE

func RefreshTokenGTE(v string) predicate.Connection

RefreshTokenGTE applies the GTE predicate on the "refresh_token" field.

func RefreshTokenHasPrefix

func RefreshTokenHasPrefix(v string) predicate.Connection

RefreshTokenHasPrefix applies the HasPrefix predicate on the "refresh_token" field.

func RefreshTokenHasSuffix

func RefreshTokenHasSuffix(v string) predicate.Connection

RefreshTokenHasSuffix applies the HasSuffix predicate on the "refresh_token" field.

func RefreshTokenIn

func RefreshTokenIn(vs ...string) predicate.Connection

RefreshTokenIn applies the In predicate on the "refresh_token" field.

func RefreshTokenIsNil

func RefreshTokenIsNil() predicate.Connection

RefreshTokenIsNil applies the IsNil predicate on the "refresh_token" field.

func RefreshTokenLT

func RefreshTokenLT(v string) predicate.Connection

RefreshTokenLT applies the LT predicate on the "refresh_token" field.

func RefreshTokenLTE

func RefreshTokenLTE(v string) predicate.Connection

RefreshTokenLTE applies the LTE predicate on the "refresh_token" field.

func RefreshTokenNEQ

func RefreshTokenNEQ(v string) predicate.Connection

RefreshTokenNEQ applies the NEQ predicate on the "refresh_token" field.

func RefreshTokenNotIn

func RefreshTokenNotIn(vs ...string) predicate.Connection

RefreshTokenNotIn applies the NotIn predicate on the "refresh_token" field.

func RefreshTokenNotNil

func RefreshTokenNotNil() predicate.Connection

RefreshTokenNotNil applies the NotNil predicate on the "refresh_token" field.

func SourceID

func SourceID(v pulid.PULID) predicate.Connection

SourceID applies equality check predicate on the "source_id" field. It's identical to SourceIDEQ.

func SourceIDContains

func SourceIDContains(v pulid.PULID) predicate.Connection

SourceIDContains applies the Contains predicate on the "source_id" field.

func SourceIDContainsFold

func SourceIDContainsFold(v pulid.PULID) predicate.Connection

SourceIDContainsFold applies the ContainsFold predicate on the "source_id" field.

func SourceIDEQ

func SourceIDEQ(v pulid.PULID) predicate.Connection

SourceIDEQ applies the EQ predicate on the "source_id" field.

func SourceIDEqualFold

func SourceIDEqualFold(v pulid.PULID) predicate.Connection

SourceIDEqualFold applies the EqualFold predicate on the "source_id" field.

func SourceIDGT

func SourceIDGT(v pulid.PULID) predicate.Connection

SourceIDGT applies the GT predicate on the "source_id" field.

func SourceIDGTE

func SourceIDGTE(v pulid.PULID) predicate.Connection

SourceIDGTE applies the GTE predicate on the "source_id" field.

func SourceIDHasPrefix

func SourceIDHasPrefix(v pulid.PULID) predicate.Connection

SourceIDHasPrefix applies the HasPrefix predicate on the "source_id" field.

func SourceIDHasSuffix

func SourceIDHasSuffix(v pulid.PULID) predicate.Connection

SourceIDHasSuffix applies the HasSuffix predicate on the "source_id" field.

func SourceIDIn

func SourceIDIn(vs ...pulid.PULID) predicate.Connection

SourceIDIn applies the In predicate on the "source_id" field.

func SourceIDLT

func SourceIDLT(v pulid.PULID) predicate.Connection

SourceIDLT applies the LT predicate on the "source_id" field.

func SourceIDLTE

func SourceIDLTE(v pulid.PULID) predicate.Connection

SourceIDLTE applies the LTE predicate on the "source_id" field.

func SourceIDNEQ

func SourceIDNEQ(v pulid.PULID) predicate.Connection

SourceIDNEQ applies the NEQ predicate on the "source_id" field.

func SourceIDNotIn

func SourceIDNotIn(vs ...pulid.PULID) predicate.Connection

SourceIDNotIn applies the NotIn predicate on the "source_id" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Connection

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Connection

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Connection

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Connection

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Connection

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Connection

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Connection

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

func UpdatedAtNotIn

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

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

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

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