dividend

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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

Columns holds all SQL columns for dividend fields.

View Source
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 And

func And(predicates ...predicate.Dividend) predicate.Dividend

And groups predicates with the AND operator between them.

func CashAmount

func CashAmount(v float64) predicate.Dividend

CashAmount applies equality check predicate on the "cash_amount" field. It's identical to CashAmountEQ.

func CashAmountEQ

func CashAmountEQ(v float64) predicate.Dividend

CashAmountEQ applies the EQ predicate on the "cash_amount" field.

func CashAmountGT

func CashAmountGT(v float64) predicate.Dividend

CashAmountGT applies the GT predicate on the "cash_amount" field.

func CashAmountGTE

func CashAmountGTE(v float64) predicate.Dividend

CashAmountGTE applies the GTE predicate on the "cash_amount" field.

func CashAmountIn

func CashAmountIn(vs ...float64) predicate.Dividend

CashAmountIn applies the In predicate on the "cash_amount" field.

func CashAmountLT

func CashAmountLT(v float64) predicate.Dividend

CashAmountLT applies the LT predicate on the "cash_amount" field.

func CashAmountLTE

func CashAmountLTE(v float64) predicate.Dividend

CashAmountLTE applies the LTE predicate on the "cash_amount" field.

func CashAmountNEQ

func CashAmountNEQ(v float64) predicate.Dividend

CashAmountNEQ applies the NEQ predicate on the "cash_amount" field.

func CashAmountNotIn

func CashAmountNotIn(vs ...float64) predicate.Dividend

CashAmountNotIn applies the NotIn predicate on the "cash_amount" field.

func DeclarationDate

func DeclarationDate(v time.Time) predicate.Dividend

DeclarationDate applies equality check predicate on the "declaration_date" field. It's identical to DeclarationDateEQ.

func DeclarationDateEQ

func DeclarationDateEQ(v time.Time) predicate.Dividend

DeclarationDateEQ applies the EQ predicate on the "declaration_date" field.

func DeclarationDateGT

func DeclarationDateGT(v time.Time) predicate.Dividend

DeclarationDateGT applies the GT predicate on the "declaration_date" field.

func DeclarationDateGTE

func DeclarationDateGTE(v time.Time) predicate.Dividend

DeclarationDateGTE applies the GTE predicate on the "declaration_date" field.

func DeclarationDateIn

func DeclarationDateIn(vs ...time.Time) predicate.Dividend

DeclarationDateIn applies the In predicate on the "declaration_date" field.

func DeclarationDateLT

func DeclarationDateLT(v time.Time) predicate.Dividend

DeclarationDateLT applies the LT predicate on the "declaration_date" field.

func DeclarationDateLTE

func DeclarationDateLTE(v time.Time) predicate.Dividend

DeclarationDateLTE applies the LTE predicate on the "declaration_date" field.

func DeclarationDateNEQ

func DeclarationDateNEQ(v time.Time) predicate.Dividend

DeclarationDateNEQ applies the NEQ predicate on the "declaration_date" field.

func DeclarationDateNotIn

func DeclarationDateNotIn(vs ...time.Time) predicate.Dividend

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

func ExDividendDate(v time.Time) predicate.Dividend

ExDividendDate applies equality check predicate on the "ex_dividend_date" field. It's identical to ExDividendDateEQ.

func ExDividendDateEQ

func ExDividendDateEQ(v time.Time) predicate.Dividend

ExDividendDateEQ applies the EQ predicate on the "ex_dividend_date" field.

func ExDividendDateGT

func ExDividendDateGT(v time.Time) predicate.Dividend

ExDividendDateGT applies the GT predicate on the "ex_dividend_date" field.

func ExDividendDateGTE

func ExDividendDateGTE(v time.Time) predicate.Dividend

ExDividendDateGTE applies the GTE predicate on the "ex_dividend_date" field.

func ExDividendDateIn

func ExDividendDateIn(vs ...time.Time) predicate.Dividend

ExDividendDateIn applies the In predicate on the "ex_dividend_date" field.

func ExDividendDateLT

func ExDividendDateLT(v time.Time) predicate.Dividend

ExDividendDateLT applies the LT predicate on the "ex_dividend_date" field.

func ExDividendDateLTE

func ExDividendDateLTE(v time.Time) predicate.Dividend

ExDividendDateLTE applies the LTE predicate on the "ex_dividend_date" field.

func ExDividendDateNEQ

func ExDividendDateNEQ(v time.Time) predicate.Dividend

ExDividendDateNEQ applies the NEQ predicate on the "ex_dividend_date" field.

func ExDividendDateNotIn

func ExDividendDateNotIn(vs ...time.Time) predicate.Dividend

ExDividendDateNotIn applies the NotIn predicate on the "ex_dividend_date" field.

func Frequency

func Frequency(v int) predicate.Dividend

Frequency applies equality check predicate on the "frequency" field. It's identical to FrequencyEQ.

func FrequencyEQ

func FrequencyEQ(v int) predicate.Dividend

FrequencyEQ applies the EQ predicate on the "frequency" field.

func FrequencyGT

func FrequencyGT(v int) predicate.Dividend

FrequencyGT applies the GT predicate on the "frequency" field.

func FrequencyGTE

func FrequencyGTE(v int) predicate.Dividend

FrequencyGTE applies the GTE predicate on the "frequency" field.

func FrequencyIn

func FrequencyIn(vs ...int) predicate.Dividend

FrequencyIn applies the In predicate on the "frequency" field.

func FrequencyLT

func FrequencyLT(v int) predicate.Dividend

FrequencyLT applies the LT predicate on the "frequency" field.

func FrequencyLTE

func FrequencyLTE(v int) predicate.Dividend

FrequencyLTE applies the LTE predicate on the "frequency" field.

func FrequencyNEQ

func FrequencyNEQ(v int) predicate.Dividend

FrequencyNEQ applies the NEQ predicate on the "frequency" field.

func FrequencyNotIn

func FrequencyNotIn(vs ...int) predicate.Dividend

FrequencyNotIn applies the NotIn predicate on the "frequency" field.

func HasStock

func HasStock() predicate.Dividend

HasStock applies the HasEdge predicate on the "stock" edge.

func HasStockWith

func HasStockWith(preds ...predicate.Entity) predicate.Dividend

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

func ID

func ID(id int) predicate.Dividend

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Dividend

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Dividend

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Dividend

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Dividend

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Dividend

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Dividend

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Dividend

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Dividend

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Dividend) predicate.Dividend

Or groups predicates with the OR operator between them.

func PayDate

func PayDate(v time.Time) predicate.Dividend

PayDate applies equality check predicate on the "pay_date" field. It's identical to PayDateEQ.

func PayDateEQ

func PayDateEQ(v time.Time) predicate.Dividend

PayDateEQ applies the EQ predicate on the "pay_date" field.

func PayDateGT

func PayDateGT(v time.Time) predicate.Dividend

PayDateGT applies the GT predicate on the "pay_date" field.

func PayDateGTE

func PayDateGTE(v time.Time) predicate.Dividend

PayDateGTE applies the GTE predicate on the "pay_date" field.

func PayDateIn

func PayDateIn(vs ...time.Time) predicate.Dividend

PayDateIn applies the In predicate on the "pay_date" field.

func PayDateLT

func PayDateLT(v time.Time) predicate.Dividend

PayDateLT applies the LT predicate on the "pay_date" field.

func PayDateLTE

func PayDateLTE(v time.Time) predicate.Dividend

PayDateLTE applies the LTE predicate on the "pay_date" field.

func PayDateNEQ

func PayDateNEQ(v time.Time) predicate.Dividend

PayDateNEQ applies the NEQ predicate on the "pay_date" field.

func PayDateNotIn

func PayDateNotIn(vs ...time.Time) predicate.Dividend

PayDateNotIn applies the NotIn predicate on the "pay_date" field.

func RecordDate

func RecordDate(v time.Time) predicate.Dividend

RecordDate applies equality check predicate on the "record_date" field. It's identical to RecordDateEQ.

func RecordDateEQ

func RecordDateEQ(v time.Time) predicate.Dividend

RecordDateEQ applies the EQ predicate on the "record_date" field.

func RecordDateGT

func RecordDateGT(v time.Time) predicate.Dividend

RecordDateGT applies the GT predicate on the "record_date" field.

func RecordDateGTE

func RecordDateGTE(v time.Time) predicate.Dividend

RecordDateGTE applies the GTE predicate on the "record_date" field.

func RecordDateIn

func RecordDateIn(vs ...time.Time) predicate.Dividend

RecordDateIn applies the In predicate on the "record_date" field.

func RecordDateLT

func RecordDateLT(v time.Time) predicate.Dividend

RecordDateLT applies the LT predicate on the "record_date" field.

func RecordDateLTE

func RecordDateLTE(v time.Time) predicate.Dividend

RecordDateLTE applies the LTE predicate on the "record_date" field.

func RecordDateNEQ

func RecordDateNEQ(v time.Time) predicate.Dividend

RecordDateNEQ applies the NEQ predicate on the "record_date" field.

func RecordDateNotIn

func RecordDateNotIn(vs ...time.Time) predicate.Dividend

RecordDateNotIn applies the NotIn predicate on the "record_date" field.

func ValidColumn

func ValidColumn(column string) bool

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

Jump to

Keyboard shortcuts

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