Documentation ¶
Index ¶
- Constants
- Variables
- func AccountID(v pulid.PULID) predicate.Portfolio
- func AccountIDContains(v pulid.PULID) predicate.Portfolio
- func AccountIDContainsFold(v pulid.PULID) predicate.Portfolio
- func AccountIDEQ(v pulid.PULID) predicate.Portfolio
- func AccountIDEqualFold(v pulid.PULID) predicate.Portfolio
- func AccountIDGT(v pulid.PULID) predicate.Portfolio
- func AccountIDGTE(v pulid.PULID) predicate.Portfolio
- func AccountIDHasPrefix(v pulid.PULID) predicate.Portfolio
- func AccountIDHasSuffix(v pulid.PULID) predicate.Portfolio
- func AccountIDIn(vs ...pulid.PULID) predicate.Portfolio
- func AccountIDLT(v pulid.PULID) predicate.Portfolio
- func AccountIDLTE(v pulid.PULID) predicate.Portfolio
- func AccountIDNEQ(v pulid.PULID) predicate.Portfolio
- func AccountIDNotIn(vs ...pulid.PULID) predicate.Portfolio
- func And(predicates ...predicate.Portfolio) predicate.Portfolio
- func CreatedAt(v time.Time) predicate.Portfolio
- func CreatedAtEQ(v time.Time) predicate.Portfolio
- func CreatedAtGT(v time.Time) predicate.Portfolio
- func CreatedAtGTE(v time.Time) predicate.Portfolio
- func CreatedAtIn(vs ...time.Time) predicate.Portfolio
- func CreatedAtLT(v time.Time) predicate.Portfolio
- func CreatedAtLTE(v time.Time) predicate.Portfolio
- func CreatedAtNEQ(v time.Time) predicate.Portfolio
- func CreatedAtNotIn(vs ...time.Time) predicate.Portfolio
- func DeletedAt(v time.Time) predicate.Portfolio
- func DeletedAtEQ(v time.Time) predicate.Portfolio
- func DeletedAtGT(v time.Time) predicate.Portfolio
- func DeletedAtGTE(v time.Time) predicate.Portfolio
- func DeletedAtIn(vs ...time.Time) predicate.Portfolio
- func DeletedAtIsNil() predicate.Portfolio
- func DeletedAtLT(v time.Time) predicate.Portfolio
- func DeletedAtLTE(v time.Time) predicate.Portfolio
- func DeletedAtNEQ(v time.Time) predicate.Portfolio
- func DeletedAtNotIn(vs ...time.Time) predicate.Portfolio
- func DeletedAtNotNil() predicate.Portfolio
- func HasAccount() predicate.Portfolio
- func HasAccountWith(preds ...predicate.Account) predicate.Portfolio
- func HasConnections() predicate.Portfolio
- func HasConnectionsWith(preds ...predicate.Connection) predicate.Portfolio
- func HasTransactions() predicate.Portfolio
- func HasTransactionsWith(preds ...predicate.Transaction) predicate.Portfolio
- func ID(id pulid.PULID) predicate.Portfolio
- func IDEQ(id pulid.PULID) predicate.Portfolio
- func IDGT(id pulid.PULID) predicate.Portfolio
- func IDGTE(id pulid.PULID) predicate.Portfolio
- func IDIn(ids ...pulid.PULID) predicate.Portfolio
- func IDLT(id pulid.PULID) predicate.Portfolio
- func IDLTE(id pulid.PULID) predicate.Portfolio
- func IDNEQ(id pulid.PULID) predicate.Portfolio
- func IDNotIn(ids ...pulid.PULID) predicate.Portfolio
- func IsPublic(v bool) predicate.Portfolio
- func IsPublicEQ(v bool) predicate.Portfolio
- func IsPublicNEQ(v bool) predicate.Portfolio
- func IsVisible(v bool) predicate.Portfolio
- func IsVisibleEQ(v bool) predicate.Portfolio
- func IsVisibleNEQ(v bool) predicate.Portfolio
- func Name(v string) predicate.Portfolio
- func NameContains(v string) predicate.Portfolio
- func NameContainsFold(v string) predicate.Portfolio
- func NameEQ(v string) predicate.Portfolio
- func NameEqualFold(v string) predicate.Portfolio
- func NameGT(v string) predicate.Portfolio
- func NameGTE(v string) predicate.Portfolio
- func NameHasPrefix(v string) predicate.Portfolio
- func NameHasSuffix(v string) predicate.Portfolio
- func NameIn(vs ...string) predicate.Portfolio
- func NameLT(v string) predicate.Portfolio
- func NameLTE(v string) predicate.Portfolio
- func NameNEQ(v string) predicate.Portfolio
- func NameNotIn(vs ...string) predicate.Portfolio
- func Not(p predicate.Portfolio) predicate.Portfolio
- func Or(predicates ...predicate.Portfolio) predicate.Portfolio
- func UpdatedAt(v time.Time) predicate.Portfolio
- func UpdatedAtEQ(v time.Time) predicate.Portfolio
- func UpdatedAtGT(v time.Time) predicate.Portfolio
- func UpdatedAtGTE(v time.Time) predicate.Portfolio
- func UpdatedAtIn(vs ...time.Time) predicate.Portfolio
- func UpdatedAtLT(v time.Time) predicate.Portfolio
- func UpdatedAtLTE(v time.Time) predicate.Portfolio
- func UpdatedAtNEQ(v time.Time) predicate.Portfolio
- func UpdatedAtNotIn(vs ...time.Time) predicate.Portfolio
- func ValidColumn(column string) bool
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldName, FieldIsPublic, FieldIsVisible, FieldAccountID, }
Columns holds all SQL columns for portfolio fields.
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 ¶
AccountID applies equality check predicate on the "account_id" field. It's identical to AccountIDEQ.
func AccountIDContains ¶
AccountIDContains applies the Contains predicate on the "account_id" field.
func AccountIDContainsFold ¶
AccountIDContainsFold applies the ContainsFold predicate on the "account_id" field.
func AccountIDEQ ¶
AccountIDEQ applies the EQ predicate on the "account_id" field.
func AccountIDEqualFold ¶
AccountIDEqualFold applies the EqualFold predicate on the "account_id" field.
func AccountIDGT ¶
AccountIDGT applies the GT predicate on the "account_id" field.
func AccountIDGTE ¶
AccountIDGTE applies the GTE predicate on the "account_id" field.
func AccountIDHasPrefix ¶
AccountIDHasPrefix applies the HasPrefix predicate on the "account_id" field.
func AccountIDHasSuffix ¶
AccountIDHasSuffix applies the HasSuffix predicate on the "account_id" field.
func AccountIDIn ¶
AccountIDIn applies the In predicate on the "account_id" field.
func AccountIDLT ¶
AccountIDLT applies the LT predicate on the "account_id" field.
func AccountIDLTE ¶
AccountIDLTE applies the LTE predicate on the "account_id" field.
func AccountIDNEQ ¶
AccountIDNEQ applies the NEQ predicate on the "account_id" field.
func AccountIDNotIn ¶
AccountIDNotIn applies the NotIn predicate on the "account_id" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func HasAccount ¶
HasAccount applies the HasEdge predicate on the "account" edge.
func HasAccountWith ¶
HasAccountWith applies the HasEdge predicate on the "account" edge with a given conditions (other predicates).
func HasConnections ¶
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 ¶
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 IsPublic ¶
IsPublic applies equality check predicate on the "is_public" field. It's identical to IsPublicEQ.
func IsPublicEQ ¶
IsPublicEQ applies the EQ predicate on the "is_public" field.
func IsPublicNEQ ¶
IsPublicNEQ applies the NEQ predicate on the "is_public" field.
func IsVisible ¶
IsVisible applies equality check predicate on the "is_visible" field. It's identical to IsVisibleEQ.
func IsVisibleEQ ¶
IsVisibleEQ applies the EQ predicate on the "is_visible" field.
func IsVisibleNEQ ¶
IsVisibleNEQ applies the NEQ predicate on the "is_visible" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.