Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Balance) predicate.Balance
- func AvailableAmount(v float64) predicate.Balance
- func AvailableAmountEQ(v float64) predicate.Balance
- func AvailableAmountGT(v float64) predicate.Balance
- func AvailableAmountGTE(v float64) predicate.Balance
- func AvailableAmountIn(vs ...float64) predicate.Balance
- func AvailableAmountLT(v float64) predicate.Balance
- func AvailableAmountLTE(v float64) predicate.Balance
- func AvailableAmountNEQ(v float64) predicate.Balance
- func AvailableAmountNotIn(vs ...float64) predicate.Balance
- func CreatedAt(v time.Time) predicate.Balance
- func CreatedAtEQ(v time.Time) predicate.Balance
- func CreatedAtGT(v time.Time) predicate.Balance
- func CreatedAtGTE(v time.Time) predicate.Balance
- func CreatedAtIn(vs ...time.Time) predicate.Balance
- func CreatedAtLT(v time.Time) predicate.Balance
- func CreatedAtLTE(v time.Time) predicate.Balance
- func CreatedAtNEQ(v time.Time) predicate.Balance
- func CreatedAtNotIn(vs ...time.Time) predicate.Balance
- func EntityID(v uuid.UUID) predicate.Balance
- func EntityIDEQ(v uuid.UUID) predicate.Balance
- func EntityIDGT(v uuid.UUID) predicate.Balance
- func EntityIDGTE(v uuid.UUID) predicate.Balance
- func EntityIDIn(vs ...uuid.UUID) predicate.Balance
- func EntityIDLT(v uuid.UUID) predicate.Balance
- func EntityIDLTE(v uuid.UUID) predicate.Balance
- func EntityIDNEQ(v uuid.UUID) predicate.Balance
- func EntityIDNotIn(vs ...uuid.UUID) predicate.Balance
- func HasInvestor() predicate.Balance
- func HasInvestorWith(preds ...predicate.Investor) predicate.Balance
- func HasIssuer() predicate.Balance
- func HasIssuerWith(preds ...predicate.Issuer) predicate.Balance
- func ID(id uuid.UUID) predicate.Balance
- func IDEQ(id uuid.UUID) predicate.Balance
- func IDGT(id uuid.UUID) predicate.Balance
- func IDGTE(id uuid.UUID) predicate.Balance
- func IDIn(ids ...uuid.UUID) predicate.Balance
- func IDLT(id uuid.UUID) predicate.Balance
- func IDLTE(id uuid.UUID) predicate.Balance
- func IDNEQ(id uuid.UUID) predicate.Balance
- func IDNotIn(ids ...uuid.UUID) predicate.Balance
- func Not(p predicate.Balance) predicate.Balance
- func Or(predicates ...predicate.Balance) predicate.Balance
- func TotalAmount(v float64) predicate.Balance
- func TotalAmountEQ(v float64) predicate.Balance
- func TotalAmountGT(v float64) predicate.Balance
- func TotalAmountGTE(v float64) predicate.Balance
- func TotalAmountIn(vs ...float64) predicate.Balance
- func TotalAmountLT(v float64) predicate.Balance
- func TotalAmountLTE(v float64) predicate.Balance
- func TotalAmountNEQ(v float64) predicate.Balance
- func TotalAmountNotIn(vs ...float64) predicate.Balance
- func UpdatedAt(v time.Time) predicate.Balance
- func UpdatedAtEQ(v time.Time) predicate.Balance
- func UpdatedAtGT(v time.Time) predicate.Balance
- func UpdatedAtGTE(v time.Time) predicate.Balance
- func UpdatedAtIn(vs ...time.Time) predicate.Balance
- func UpdatedAtLT(v time.Time) predicate.Balance
- func UpdatedAtLTE(v time.Time) predicate.Balance
- func UpdatedAtNEQ(v time.Time) predicate.Balance
- func UpdatedAtNotIn(vs ...time.Time) predicate.Balance
- func ValidColumn(column string) bool
- type OrderOption
- func ByAvailableAmount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEntityID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInvestor(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByInvestorCount(opts ...sql.OrderTermOption) OrderOption
- func ByIssuer(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByIssuerCount(opts ...sql.OrderTermOption) OrderOption
- func ByTotalAmount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the balance type in the database. Label = "balance" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTotalAmount holds the string denoting the total_amount field in the database. FieldTotalAmount = "total_amount" // FieldAvailableAmount holds the string denoting the available_amount field in the database. FieldAvailableAmount = "available_amount" // FieldEntityID holds the string denoting the entity_id field in the database. FieldEntityID = "entity_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" // EdgeInvestor holds the string denoting the investor edge name in mutations. EdgeInvestor = "investor" // EdgeIssuer holds the string denoting the issuer edge name in mutations. EdgeIssuer = "issuer" // Table holds the table name of the balance in the database. Table = "balances" // InvestorTable is the table that holds the investor relation/edge. InvestorTable = "investors" // InvestorInverseTable is the table name for the Investor entity. // It exists in this package in order to avoid circular dependency with the "investor" package. InvestorInverseTable = "investors" // InvestorColumn is the table column denoting the investor relation/edge. InvestorColumn = "investor_balance" // IssuerTable is the table that holds the issuer relation/edge. IssuerTable = "issuers" // IssuerInverseTable is the table name for the Issuer entity. // It exists in this package in order to avoid circular dependency with the "issuer" package. IssuerInverseTable = "issuers" // IssuerColumn is the table column denoting the issuer relation/edge. IssuerColumn = "issuer_balance" )
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 // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldTotalAmount, FieldAvailableAmount, FieldEntityID, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for balance fields.
Functions ¶
func AvailableAmount ¶
AvailableAmount applies equality check predicate on the "available_amount" field. It's identical to AvailableAmountEQ.
func AvailableAmountEQ ¶
AvailableAmountEQ applies the EQ predicate on the "available_amount" field.
func AvailableAmountGT ¶
AvailableAmountGT applies the GT predicate on the "available_amount" field.
func AvailableAmountGTE ¶
AvailableAmountGTE applies the GTE predicate on the "available_amount" field.
func AvailableAmountIn ¶
AvailableAmountIn applies the In predicate on the "available_amount" field.
func AvailableAmountLT ¶
AvailableAmountLT applies the LT predicate on the "available_amount" field.
func AvailableAmountLTE ¶
AvailableAmountLTE applies the LTE predicate on the "available_amount" field.
func AvailableAmountNEQ ¶
AvailableAmountNEQ applies the NEQ predicate on the "available_amount" field.
func AvailableAmountNotIn ¶
AvailableAmountNotIn applies the NotIn predicate on the "available_amount" 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 EntityID ¶
EntityID applies equality check predicate on the "entity_id" field. It's identical to EntityIDEQ.
func EntityIDEQ ¶
EntityIDEQ applies the EQ predicate on the "entity_id" field.
func EntityIDGT ¶
EntityIDGT applies the GT predicate on the "entity_id" field.
func EntityIDGTE ¶
EntityIDGTE applies the GTE predicate on the "entity_id" field.
func EntityIDIn ¶
EntityIDIn applies the In predicate on the "entity_id" field.
func EntityIDLT ¶
EntityIDLT applies the LT predicate on the "entity_id" field.
func EntityIDLTE ¶
EntityIDLTE applies the LTE predicate on the "entity_id" field.
func EntityIDNEQ ¶
EntityIDNEQ applies the NEQ predicate on the "entity_id" field.
func EntityIDNotIn ¶
EntityIDNotIn applies the NotIn predicate on the "entity_id" field.
func HasInvestor ¶
HasInvestor applies the HasEdge predicate on the "investor" edge.
func HasInvestorWith ¶
HasInvestorWith applies the HasEdge predicate on the "investor" edge with a given conditions (other predicates).
func HasIssuerWith ¶
HasIssuerWith applies the HasEdge predicate on the "issuer" edge with a given conditions (other predicates).
func TotalAmount ¶
TotalAmount applies equality check predicate on the "total_amount" field. It's identical to TotalAmountEQ.
func TotalAmountEQ ¶
TotalAmountEQ applies the EQ predicate on the "total_amount" field.
func TotalAmountGT ¶
TotalAmountGT applies the GT predicate on the "total_amount" field.
func TotalAmountGTE ¶
TotalAmountGTE applies the GTE predicate on the "total_amount" field.
func TotalAmountIn ¶
TotalAmountIn applies the In predicate on the "total_amount" field.
func TotalAmountLT ¶
TotalAmountLT applies the LT predicate on the "total_amount" field.
func TotalAmountLTE ¶
TotalAmountLTE applies the LTE predicate on the "total_amount" field.
func TotalAmountNEQ ¶
TotalAmountNEQ applies the NEQ predicate on the "total_amount" field.
func TotalAmountNotIn ¶
TotalAmountNotIn applies the NotIn predicate on the "total_amount" 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 ¶
type OrderOption ¶
OrderOption defines the ordering options for the Balance queries.
func ByAvailableAmount ¶
func ByAvailableAmount(opts ...sql.OrderTermOption) OrderOption
ByAvailableAmount orders the results by the available_amount field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByEntityID ¶
func ByEntityID(opts ...sql.OrderTermOption) OrderOption
ByEntityID orders the results by the entity_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByInvestor ¶
func ByInvestor(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByInvestor orders the results by investor terms.
func ByInvestorCount ¶
func ByInvestorCount(opts ...sql.OrderTermOption) OrderOption
ByInvestorCount orders the results by investor count.
func ByIssuer ¶
func ByIssuer(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByIssuer orders the results by issuer terms.
func ByIssuerCount ¶
func ByIssuerCount(opts ...sql.OrderTermOption) OrderOption
ByIssuerCount orders the results by issuer count.
func ByTotalAmount ¶
func ByTotalAmount(opts ...sql.OrderTermOption) OrderOption
ByTotalAmount orders the results by the total_amount field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.