Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Dividend) predicate.Dividend
- func CashAmount(v float64) predicate.Dividend
- func CashAmountEQ(v float64) predicate.Dividend
- func CashAmountGT(v float64) predicate.Dividend
- func CashAmountGTE(v float64) predicate.Dividend
- func CashAmountIn(vs ...float64) predicate.Dividend
- func CashAmountLT(v float64) predicate.Dividend
- func CashAmountLTE(v float64) predicate.Dividend
- func CashAmountNEQ(v float64) predicate.Dividend
- func CashAmountNotIn(vs ...float64) predicate.Dividend
- func DeclarationDate(v time.Time) predicate.Dividend
- func DeclarationDateEQ(v time.Time) predicate.Dividend
- func DeclarationDateGT(v time.Time) predicate.Dividend
- func DeclarationDateGTE(v time.Time) predicate.Dividend
- func DeclarationDateIn(vs ...time.Time) predicate.Dividend
- func DeclarationDateLT(v time.Time) predicate.Dividend
- func DeclarationDateLTE(v time.Time) predicate.Dividend
- func DeclarationDateNEQ(v time.Time) predicate.Dividend
- func DeclarationDateNotIn(vs ...time.Time) predicate.Dividend
- func DividendTypeEQ(v DividendType) predicate.Dividend
- func DividendTypeIn(vs ...DividendType) predicate.Dividend
- func DividendTypeNEQ(v DividendType) predicate.Dividend
- func DividendTypeNotIn(vs ...DividendType) predicate.Dividend
- func DividendTypeValidator(dt DividendType) error
- func ExDividendDate(v time.Time) predicate.Dividend
- func ExDividendDateEQ(v time.Time) predicate.Dividend
- func ExDividendDateGT(v time.Time) predicate.Dividend
- func ExDividendDateGTE(v time.Time) predicate.Dividend
- func ExDividendDateIn(vs ...time.Time) predicate.Dividend
- func ExDividendDateLT(v time.Time) predicate.Dividend
- func ExDividendDateLTE(v time.Time) predicate.Dividend
- func ExDividendDateNEQ(v time.Time) predicate.Dividend
- func ExDividendDateNotIn(vs ...time.Time) predicate.Dividend
- func Frequency(v int) predicate.Dividend
- func FrequencyEQ(v int) predicate.Dividend
- func FrequencyGT(v int) predicate.Dividend
- func FrequencyGTE(v int) predicate.Dividend
- func FrequencyIn(vs ...int) predicate.Dividend
- func FrequencyLT(v int) predicate.Dividend
- func FrequencyLTE(v int) predicate.Dividend
- func FrequencyNEQ(v int) predicate.Dividend
- func FrequencyNotIn(vs ...int) predicate.Dividend
- func HasStock() predicate.Dividend
- func HasStockWith(preds ...predicate.Entity) predicate.Dividend
- func ID(id int) predicate.Dividend
- func IDEQ(id int) predicate.Dividend
- func IDGT(id int) predicate.Dividend
- func IDGTE(id int) predicate.Dividend
- func IDIn(ids ...int) predicate.Dividend
- func IDLT(id int) predicate.Dividend
- func IDLTE(id int) predicate.Dividend
- func IDNEQ(id int) predicate.Dividend
- func IDNotIn(ids ...int) predicate.Dividend
- func Not(p predicate.Dividend) predicate.Dividend
- func Or(predicates ...predicate.Dividend) predicate.Dividend
- func PayDate(v time.Time) predicate.Dividend
- func PayDateEQ(v time.Time) predicate.Dividend
- func PayDateGT(v time.Time) predicate.Dividend
- func PayDateGTE(v time.Time) predicate.Dividend
- func PayDateIn(vs ...time.Time) predicate.Dividend
- func PayDateLT(v time.Time) predicate.Dividend
- func PayDateLTE(v time.Time) predicate.Dividend
- func PayDateNEQ(v time.Time) predicate.Dividend
- func PayDateNotIn(vs ...time.Time) predicate.Dividend
- func RecordDate(v time.Time) predicate.Dividend
- func RecordDateEQ(v time.Time) predicate.Dividend
- func RecordDateGT(v time.Time) predicate.Dividend
- func RecordDateGTE(v time.Time) predicate.Dividend
- func RecordDateIn(vs ...time.Time) predicate.Dividend
- func RecordDateLT(v time.Time) predicate.Dividend
- func RecordDateLTE(v time.Time) predicate.Dividend
- func RecordDateNEQ(v time.Time) predicate.Dividend
- func RecordDateNotIn(vs ...time.Time) predicate.Dividend
- func ValidColumn(column string) bool
- type DividendType
Constants ¶
const ( // Label holds the string label denoting the dividend type in the database. Label = "dividend" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCashAmount holds the string denoting the cash_amount field in the database. FieldCashAmount = "cash_amount" // FieldDeclarationDate holds the string denoting the declaration_date field in the database. FieldDeclarationDate = "declaration_date" // FieldDividendType holds the string denoting the dividend_type field in the database. FieldDividendType = "dividend_type" // FieldExDividendDate holds the string denoting the ex_dividend_date field in the database. FieldExDividendDate = "ex_dividend_date" // FieldFrequency holds the string denoting the frequency field in the database. FieldFrequency = "frequency" // FieldRecordDate holds the string denoting the record_date field in the database. FieldRecordDate = "record_date" // FieldPayDate holds the string denoting the pay_date field in the database. FieldPayDate = "pay_date" // EdgeStock holds the string denoting the stock edge name in mutations. EdgeStock = "stock" // Table holds the table name of the dividend in the database. Table = "dividends" // StockTable is the table that holds the stock relation/edge. The primary key declared below. StockTable = "entity_dividends" // StockInverseTable is the table name for the Entity entity. // It exists in this package in order to avoid circular dependency with the "entity" package. StockInverseTable = "entities" )
Variables ¶
var Columns = []string{ FieldID, FieldCashAmount, FieldDeclarationDate, FieldDividendType, FieldExDividendDate, FieldFrequency, FieldRecordDate, FieldPayDate, }
Columns holds all SQL columns for dividend fields.
var ( // StockPrimaryKey and StockColumn2 are the table columns denoting the // primary key for the stock relation (M2M). StockPrimaryKey = []string{"entity_id", "dividend_id"} )
Functions ¶
func CashAmount ¶
CashAmount applies equality check predicate on the "cash_amount" field. It's identical to CashAmountEQ.
func CashAmountEQ ¶
CashAmountEQ applies the EQ predicate on the "cash_amount" field.
func CashAmountGT ¶
CashAmountGT applies the GT predicate on the "cash_amount" field.
func CashAmountGTE ¶
CashAmountGTE applies the GTE predicate on the "cash_amount" field.
func CashAmountIn ¶
CashAmountIn applies the In predicate on the "cash_amount" field.
func CashAmountLT ¶
CashAmountLT applies the LT predicate on the "cash_amount" field.
func CashAmountLTE ¶
CashAmountLTE applies the LTE predicate on the "cash_amount" field.
func CashAmountNEQ ¶
CashAmountNEQ applies the NEQ predicate on the "cash_amount" field.
func CashAmountNotIn ¶
CashAmountNotIn applies the NotIn predicate on the "cash_amount" field.
func DeclarationDate ¶
DeclarationDate applies equality check predicate on the "declaration_date" field. It's identical to DeclarationDateEQ.
func DeclarationDateEQ ¶
DeclarationDateEQ applies the EQ predicate on the "declaration_date" field.
func DeclarationDateGT ¶
DeclarationDateGT applies the GT predicate on the "declaration_date" field.
func DeclarationDateGTE ¶
DeclarationDateGTE applies the GTE predicate on the "declaration_date" field.
func DeclarationDateIn ¶
DeclarationDateIn applies the In predicate on the "declaration_date" field.
func DeclarationDateLT ¶
DeclarationDateLT applies the LT predicate on the "declaration_date" field.
func DeclarationDateLTE ¶
DeclarationDateLTE applies the LTE predicate on the "declaration_date" field.
func DeclarationDateNEQ ¶
DeclarationDateNEQ applies the NEQ predicate on the "declaration_date" field.
func DeclarationDateNotIn ¶
DeclarationDateNotIn applies the NotIn predicate on the "declaration_date" field.
func DividendTypeEQ ¶
func DividendTypeEQ(v DividendType) predicate.Dividend
DividendTypeEQ applies the EQ predicate on the "dividend_type" field.
func DividendTypeIn ¶
func DividendTypeIn(vs ...DividendType) predicate.Dividend
DividendTypeIn applies the In predicate on the "dividend_type" field.
func DividendTypeNEQ ¶
func DividendTypeNEQ(v DividendType) predicate.Dividend
DividendTypeNEQ applies the NEQ predicate on the "dividend_type" field.
func DividendTypeNotIn ¶
func DividendTypeNotIn(vs ...DividendType) predicate.Dividend
DividendTypeNotIn applies the NotIn predicate on the "dividend_type" field.
func DividendTypeValidator ¶
func DividendTypeValidator(dt DividendType) error
DividendTypeValidator is a validator for the "dividend_type" field enum values. It is called by the builders before save.
func ExDividendDate ¶
ExDividendDate applies equality check predicate on the "ex_dividend_date" field. It's identical to ExDividendDateEQ.
func ExDividendDateEQ ¶
ExDividendDateEQ applies the EQ predicate on the "ex_dividend_date" field.
func ExDividendDateGT ¶
ExDividendDateGT applies the GT predicate on the "ex_dividend_date" field.
func ExDividendDateGTE ¶
ExDividendDateGTE applies the GTE predicate on the "ex_dividend_date" field.
func ExDividendDateIn ¶
ExDividendDateIn applies the In predicate on the "ex_dividend_date" field.
func ExDividendDateLT ¶
ExDividendDateLT applies the LT predicate on the "ex_dividend_date" field.
func ExDividendDateLTE ¶
ExDividendDateLTE applies the LTE predicate on the "ex_dividend_date" field.
func ExDividendDateNEQ ¶
ExDividendDateNEQ applies the NEQ predicate on the "ex_dividend_date" field.
func ExDividendDateNotIn ¶
ExDividendDateNotIn applies the NotIn predicate on the "ex_dividend_date" field.
func Frequency ¶
Frequency applies equality check predicate on the "frequency" field. It's identical to FrequencyEQ.
func FrequencyEQ ¶
FrequencyEQ applies the EQ predicate on the "frequency" field.
func FrequencyGT ¶
FrequencyGT applies the GT predicate on the "frequency" field.
func FrequencyGTE ¶
FrequencyGTE applies the GTE predicate on the "frequency" field.
func FrequencyIn ¶
FrequencyIn applies the In predicate on the "frequency" field.
func FrequencyLT ¶
FrequencyLT applies the LT predicate on the "frequency" field.
func FrequencyLTE ¶
FrequencyLTE applies the LTE predicate on the "frequency" field.
func FrequencyNEQ ¶
FrequencyNEQ applies the NEQ predicate on the "frequency" field.
func FrequencyNotIn ¶
FrequencyNotIn applies the NotIn predicate on the "frequency" field.
func HasStockWith ¶
HasStockWith applies the HasEdge predicate on the "stock" edge with a given conditions (other predicates).
func PayDate ¶
PayDate applies equality check predicate on the "pay_date" field. It's identical to PayDateEQ.
func PayDateGTE ¶
PayDateGTE applies the GTE predicate on the "pay_date" field.
func PayDateLTE ¶
PayDateLTE applies the LTE predicate on the "pay_date" field.
func PayDateNEQ ¶
PayDateNEQ applies the NEQ predicate on the "pay_date" field.
func PayDateNotIn ¶
PayDateNotIn applies the NotIn predicate on the "pay_date" field.
func RecordDate ¶
RecordDate applies equality check predicate on the "record_date" field. It's identical to RecordDateEQ.
func RecordDateEQ ¶
RecordDateEQ applies the EQ predicate on the "record_date" field.
func RecordDateGT ¶
RecordDateGT applies the GT predicate on the "record_date" field.
func RecordDateGTE ¶
RecordDateGTE applies the GTE predicate on the "record_date" field.
func RecordDateIn ¶
RecordDateIn applies the In predicate on the "record_date" field.
func RecordDateLT ¶
RecordDateLT applies the LT predicate on the "record_date" field.
func RecordDateLTE ¶
RecordDateLTE applies the LTE predicate on the "record_date" field.
func RecordDateNEQ ¶
RecordDateNEQ applies the NEQ predicate on the "record_date" field.
func RecordDateNotIn ¶
RecordDateNotIn applies the NotIn predicate on the "record_date" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type DividendType ¶
type DividendType string
DividendType defines the type for the "dividend_type" enum field.
const ( DividendTypeCD DividendType = "CD" DividendTypeSC DividendType = "SC" DividendTypeLT DividendType = "LT" DividendTypeST DividendType = "ST" )
DividendType values.
func (DividendType) String ¶
func (dt DividendType) String() string