portfolio

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 portfolio type in the database.
	Label = "portfolio"
	// 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"
	// FieldIsPublic holds the string denoting the is_public field in the database.
	FieldIsPublic = "is_public"
	// FieldIsVisible holds the string denoting the is_visible field in the database.
	FieldIsVisible = "is_visible"
	// FieldAccountID holds the string denoting the account_id field in the database.
	FieldAccountID = "account_id"
	// EdgeAccount holds the string denoting the account edge name in mutations.
	EdgeAccount = "account"
	// EdgeTransactions holds the string denoting the transactions edge name in mutations.
	EdgeTransactions = "transactions"
	// EdgeConnections holds the string denoting the connections edge name in mutations.
	EdgeConnections = "connections"
	// Table holds the table name of the portfolio in the database.
	Table = "portfolios"
	// AccountTable is the table that holds the account relation/edge.
	AccountTable = "portfolios"
	// 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"
	// TransactionsTable is the table that holds the transactions relation/edge.
	TransactionsTable = "transactions"
	// TransactionsInverseTable is the table name for the Transaction entity.
	// It exists in this package in order to avoid circular dependency with the "transaction" package.
	TransactionsInverseTable = "transactions"
	// TransactionsColumn is the table column denoting the transactions relation/edge.
	TransactionsColumn = "portfolio_id"
	// ConnectionsTable is the table that holds the connections relation/edge. The primary key declared below.
	ConnectionsTable = "portfolio_connections"
	// ConnectionsInverseTable is the table name for the Connection entity.
	// It exists in this package in order to avoid circular dependency with the "connection" package.
	ConnectionsInverseTable = "connections"
)

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
	// DefaultIsPublic holds the default value on creation for the "is_public" field.
	DefaultIsPublic bool
	// DefaultIsVisible holds the default value on creation for the "is_visible" field.
	DefaultIsVisible bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() pulid.PULID
)

Columns holds all SQL columns for portfolio fields.

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

Functions

func AccountID

func AccountID(v pulid.PULID) predicate.Portfolio

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

func AccountIDContains

func AccountIDContains(v pulid.PULID) predicate.Portfolio

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

func AccountIDContainsFold

func AccountIDContainsFold(v pulid.PULID) predicate.Portfolio

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

func AccountIDEQ

func AccountIDEQ(v pulid.PULID) predicate.Portfolio

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

func AccountIDEqualFold

func AccountIDEqualFold(v pulid.PULID) predicate.Portfolio

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

func AccountIDGT

func AccountIDGT(v pulid.PULID) predicate.Portfolio

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

func AccountIDGTE

func AccountIDGTE(v pulid.PULID) predicate.Portfolio

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

func AccountIDHasPrefix

func AccountIDHasPrefix(v pulid.PULID) predicate.Portfolio

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

func AccountIDHasSuffix

func AccountIDHasSuffix(v pulid.PULID) predicate.Portfolio

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

func AccountIDIn

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

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

func AccountIDLT

func AccountIDLT(v pulid.PULID) predicate.Portfolio

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

func AccountIDLTE

func AccountIDLTE(v pulid.PULID) predicate.Portfolio

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

func AccountIDNEQ

func AccountIDNEQ(v pulid.PULID) predicate.Portfolio

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

func AccountIDNotIn

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

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

func And

func And(predicates ...predicate.Portfolio) predicate.Portfolio

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Portfolio

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Portfolio

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Portfolio

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Portfolio

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Portfolio

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Portfolio

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Portfolio

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.Portfolio

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

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Portfolio

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

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Portfolio

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

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Portfolio

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

func DeletedAtIn

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

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

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Portfolio

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

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Portfolio

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

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Portfolio

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

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Portfolio

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

func DeletedAtNotIn

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

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

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Portfolio

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

func HasAccount

func HasAccount() predicate.Portfolio

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

func HasAccountWith

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

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

func HasConnections

func HasConnections() predicate.Portfolio

HasConnections applies the HasEdge predicate on the "connections" edge.

func HasConnectionsWith

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

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

func HasTransactions

func HasTransactions() predicate.Portfolio

HasTransactions applies the HasEdge predicate on the "transactions" edge.

func HasTransactionsWith

func HasTransactionsWith(preds ...predicate.Transaction) predicate.Portfolio

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id pulid.PULID) predicate.Portfolio

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id pulid.PULID) predicate.Portfolio

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id pulid.PULID) predicate.Portfolio

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id pulid.PULID) predicate.Portfolio

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id pulid.PULID) predicate.Portfolio

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id pulid.PULID) predicate.Portfolio

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IsPublic

func IsPublic(v bool) predicate.Portfolio

IsPublic applies equality check predicate on the "is_public" field. It's identical to IsPublicEQ.

func IsPublicEQ

func IsPublicEQ(v bool) predicate.Portfolio

IsPublicEQ applies the EQ predicate on the "is_public" field.

func IsPublicNEQ

func IsPublicNEQ(v bool) predicate.Portfolio

IsPublicNEQ applies the NEQ predicate on the "is_public" field.

func IsVisible

func IsVisible(v bool) predicate.Portfolio

IsVisible applies equality check predicate on the "is_visible" field. It's identical to IsVisibleEQ.

func IsVisibleEQ

func IsVisibleEQ(v bool) predicate.Portfolio

IsVisibleEQ applies the EQ predicate on the "is_visible" field.

func IsVisibleNEQ

func IsVisibleNEQ(v bool) predicate.Portfolio

IsVisibleNEQ applies the NEQ predicate on the "is_visible" field.

func Name

func Name(v string) predicate.Portfolio

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

func NameContains

func NameContains(v string) predicate.Portfolio

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

func NameContainsFold

func NameContainsFold(v string) predicate.Portfolio

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

func NameEQ

func NameEQ(v string) predicate.Portfolio

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

func NameEqualFold

func NameEqualFold(v string) predicate.Portfolio

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

func NameGT

func NameGT(v string) predicate.Portfolio

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

func NameGTE

func NameGTE(v string) predicate.Portfolio

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Portfolio

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Portfolio

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Portfolio

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

func NameLTE

func NameLTE(v string) predicate.Portfolio

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

func NameNEQ

func NameNEQ(v string) predicate.Portfolio

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

func NameNotIn

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

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

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Portfolio

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Portfolio

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Portfolio

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Portfolio

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Portfolio

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Portfolio

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Portfolio

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

func UpdatedAtNotIn

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

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