Documentation ¶
Index ¶
- Constants
- Variables
- func Active(v bool) predicate.Entity
- func ActiveEQ(v bool) predicate.Entity
- func ActiveNEQ(v bool) predicate.Entity
- func And(predicates ...predicate.Entity) predicate.Entity
- func Delisted(v time.Time) predicate.Entity
- func DelistedEQ(v time.Time) predicate.Entity
- func DelistedGT(v time.Time) predicate.Entity
- func DelistedGTE(v time.Time) predicate.Entity
- func DelistedIn(vs ...time.Time) predicate.Entity
- func DelistedIsNil() predicate.Entity
- func DelistedLT(v time.Time) predicate.Entity
- func DelistedLTE(v time.Time) predicate.Entity
- func DelistedNEQ(v time.Time) predicate.Entity
- func DelistedNotIn(vs ...time.Time) predicate.Entity
- func DelistedNotNil() predicate.Entity
- func Description(v string) predicate.Entity
- func DescriptionContains(v string) predicate.Entity
- func DescriptionContainsFold(v string) predicate.Entity
- func DescriptionEQ(v string) predicate.Entity
- func DescriptionEqualFold(v string) predicate.Entity
- func DescriptionGT(v string) predicate.Entity
- func DescriptionGTE(v string) predicate.Entity
- func DescriptionHasPrefix(v string) predicate.Entity
- func DescriptionHasSuffix(v string) predicate.Entity
- func DescriptionIn(vs ...string) predicate.Entity
- func DescriptionLT(v string) predicate.Entity
- func DescriptionLTE(v string) predicate.Entity
- func DescriptionNEQ(v string) predicate.Entity
- func DescriptionNotIn(vs ...string) predicate.Entity
- func HasDividends() predicate.Entity
- func HasDividendsWith(preds ...predicate.Dividend) predicate.Entity
- func HasExchanges() predicate.Entity
- func HasExchangesWith(preds ...predicate.Exchange) predicate.Entity
- func HasFinancials() predicate.Entity
- func HasFinancialsWith(preds ...predicate.Financial) predicate.Entity
- func HasIntervals() predicate.Entity
- func HasIntervalsWith(preds ...predicate.Interval) predicate.Entity
- func HasSplits() predicate.Entity
- func HasSplitsWith(preds ...predicate.Split) predicate.Entity
- func ID(id int) predicate.Entity
- func IDEQ(id int) predicate.Entity
- func IDGT(id int) predicate.Entity
- func IDGTE(id int) predicate.Entity
- func IDIn(ids ...int) predicate.Entity
- func IDLT(id int) predicate.Entity
- func IDLTE(id int) predicate.Entity
- func IDNEQ(id int) predicate.Entity
- func IDNotIn(ids ...int) predicate.Entity
- func ListDate(v time.Time) predicate.Entity
- func ListDateEQ(v time.Time) predicate.Entity
- func ListDateGT(v time.Time) predicate.Entity
- func ListDateGTE(v time.Time) predicate.Entity
- func ListDateIn(vs ...time.Time) predicate.Entity
- func ListDateLT(v time.Time) predicate.Entity
- func ListDateLTE(v time.Time) predicate.Entity
- func ListDateNEQ(v time.Time) predicate.Entity
- func ListDateNotIn(vs ...time.Time) predicate.Entity
- func Name(v string) predicate.Entity
- func NameContains(v string) predicate.Entity
- func NameContainsFold(v string) predicate.Entity
- func NameEQ(v string) predicate.Entity
- func NameEqualFold(v string) predicate.Entity
- func NameGT(v string) predicate.Entity
- func NameGTE(v string) predicate.Entity
- func NameHasPrefix(v string) predicate.Entity
- func NameHasSuffix(v string) predicate.Entity
- func NameIn(vs ...string) predicate.Entity
- func NameLT(v string) predicate.Entity
- func NameLTE(v string) predicate.Entity
- func NameNEQ(v string) predicate.Entity
- func NameNotIn(vs ...string) predicate.Entity
- func Not(p predicate.Entity) predicate.Entity
- func Or(predicates ...predicate.Entity) predicate.Entity
- func Ticker(v string) predicate.Entity
- func TickerContains(v string) predicate.Entity
- func TickerContainsFold(v string) predicate.Entity
- func TickerEQ(v string) predicate.Entity
- func TickerEqualFold(v string) predicate.Entity
- func TickerGT(v string) predicate.Entity
- func TickerGTE(v string) predicate.Entity
- func TickerHasPrefix(v string) predicate.Entity
- func TickerHasSuffix(v string) predicate.Entity
- func TickerIn(vs ...string) predicate.Entity
- func TickerLT(v string) predicate.Entity
- func TickerLTE(v string) predicate.Entity
- func TickerNEQ(v string) predicate.Entity
- func TickerNotIn(vs ...string) predicate.Entity
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the entity type in the database. Label = "entity" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldActive holds the string denoting the active field in the database. FieldActive = "active" // FieldTicker holds the string denoting the ticker field in the database. FieldTicker = "ticker" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldListDate holds the string denoting the list_date field in the database. FieldListDate = "list_date" // FieldDelisted holds the string denoting the delisted field in the database. FieldDelisted = "delisted" // EdgeExchanges holds the string denoting the exchanges edge name in mutations. EdgeExchanges = "exchanges" // EdgeIntervals holds the string denoting the intervals edge name in mutations. EdgeIntervals = "intervals" // EdgeDividends holds the string denoting the dividends edge name in mutations. EdgeDividends = "dividends" // EdgeSplits holds the string denoting the splits edge name in mutations. EdgeSplits = "splits" // EdgeFinancials holds the string denoting the financials edge name in mutations. EdgeFinancials = "financials" // Table holds the table name of the entity in the database. Table = "entities" // ExchangesTable is the table that holds the exchanges relation/edge. The primary key declared below. ExchangesTable = "entity_exchanges" // ExchangesInverseTable is the table name for the Exchange entity. // It exists in this package in order to avoid circular dependency with the "exchange" package. ExchangesInverseTable = "exchanges" // IntervalsTable is the table that holds the intervals relation/edge. IntervalsTable = "intervals" // IntervalsInverseTable is the table name for the Interval entity. // It exists in this package in order to avoid circular dependency with the "interval" package. IntervalsInverseTable = "intervals" // IntervalsColumn is the table column denoting the intervals relation/edge. IntervalsColumn = "stock_id" // DividendsTable is the table that holds the dividends relation/edge. The primary key declared below. DividendsTable = "entity_dividends" // DividendsInverseTable is the table name for the Dividend entity. // It exists in this package in order to avoid circular dependency with the "dividend" package. DividendsInverseTable = "dividends" // SplitsTable is the table that holds the splits relation/edge. SplitsTable = "splits" // SplitsInverseTable is the table name for the Split entity. // It exists in this package in order to avoid circular dependency with the "split" package. SplitsInverseTable = "splits" // SplitsColumn is the table column denoting the splits relation/edge. SplitsColumn = "entity_splits" // FinancialsTable is the table that holds the financials relation/edge. The primary key declared below. FinancialsTable = "entity_financials" // FinancialsInverseTable is the table name for the Financial entity. // It exists in this package in order to avoid circular dependency with the "financial" package. FinancialsInverseTable = "financials" )
Variables ¶
var ( // ExchangesPrimaryKey and ExchangesColumn2 are the table columns denoting the // primary key for the exchanges relation (M2M). ExchangesPrimaryKey = []string{"entity_id", "exchange_id"} // DividendsPrimaryKey and DividendsColumn2 are the table columns denoting the // primary key for the dividends relation (M2M). DividendsPrimaryKey = []string{"entity_id", "dividend_id"} // FinancialsPrimaryKey and FinancialsColumn2 are the table columns denoting the // primary key for the financials relation (M2M). FinancialsPrimaryKey = []string{"entity_id", "financial_id"} )
var ( // TickerValidator is a validator for the "ticker" field. It is called by the builders before save. TickerValidator func(string) error // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DescriptionValidator is a validator for the "description" field. It is called by the builders before save. DescriptionValidator func(string) error )
var Columns = []string{ FieldID, FieldActive, FieldTicker, FieldName, FieldDescription, FieldListDate, FieldDelisted, }
Columns holds all SQL columns for entity fields.
Functions ¶
func Active ¶
Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.
func Delisted ¶
Delisted applies equality check predicate on the "delisted" field. It's identical to DelistedEQ.
func DelistedEQ ¶
DelistedEQ applies the EQ predicate on the "delisted" field.
func DelistedGT ¶
DelistedGT applies the GT predicate on the "delisted" field.
func DelistedGTE ¶
DelistedGTE applies the GTE predicate on the "delisted" field.
func DelistedIn ¶
DelistedIn applies the In predicate on the "delisted" field.
func DelistedIsNil ¶
DelistedIsNil applies the IsNil predicate on the "delisted" field.
func DelistedLT ¶
DelistedLT applies the LT predicate on the "delisted" field.
func DelistedLTE ¶
DelistedLTE applies the LTE predicate on the "delisted" field.
func DelistedNEQ ¶
DelistedNEQ applies the NEQ predicate on the "delisted" field.
func DelistedNotIn ¶
DelistedNotIn applies the NotIn predicate on the "delisted" field.
func DelistedNotNil ¶
DelistedNotNil applies the NotNil predicate on the "delisted" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func HasDividends ¶
HasDividends applies the HasEdge predicate on the "dividends" edge.
func HasDividendsWith ¶
HasDividendsWith applies the HasEdge predicate on the "dividends" edge with a given conditions (other predicates).
func HasExchanges ¶
HasExchanges applies the HasEdge predicate on the "exchanges" edge.
func HasExchangesWith ¶
HasExchangesWith applies the HasEdge predicate on the "exchanges" edge with a given conditions (other predicates).
func HasFinancials ¶
HasFinancials applies the HasEdge predicate on the "financials" edge.
func HasFinancialsWith ¶
HasFinancialsWith applies the HasEdge predicate on the "financials" edge with a given conditions (other predicates).
func HasIntervals ¶
HasIntervals applies the HasEdge predicate on the "intervals" edge.
func HasIntervalsWith ¶
HasIntervalsWith applies the HasEdge predicate on the "intervals" edge with a given conditions (other predicates).
func HasSplitsWith ¶
HasSplitsWith applies the HasEdge predicate on the "splits" edge with a given conditions (other predicates).
func ListDate ¶
ListDate applies equality check predicate on the "list_date" field. It's identical to ListDateEQ.
func ListDateEQ ¶
ListDateEQ applies the EQ predicate on the "list_date" field.
func ListDateGT ¶
ListDateGT applies the GT predicate on the "list_date" field.
func ListDateGTE ¶
ListDateGTE applies the GTE predicate on the "list_date" field.
func ListDateIn ¶
ListDateIn applies the In predicate on the "list_date" field.
func ListDateLT ¶
ListDateLT applies the LT predicate on the "list_date" field.
func ListDateLTE ¶
ListDateLTE applies the LTE predicate on the "list_date" field.
func ListDateNEQ ¶
ListDateNEQ applies the NEQ predicate on the "list_date" field.
func ListDateNotIn ¶
ListDateNotIn applies the NotIn predicate on the "list_date" 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 Ticker ¶
Ticker applies equality check predicate on the "ticker" field. It's identical to TickerEQ.
func TickerContains ¶
TickerContains applies the Contains predicate on the "ticker" field.
func TickerContainsFold ¶
TickerContainsFold applies the ContainsFold predicate on the "ticker" field.
func TickerEqualFold ¶
TickerEqualFold applies the EqualFold predicate on the "ticker" field.
func TickerHasPrefix ¶
TickerHasPrefix applies the HasPrefix predicate on the "ticker" field.
func TickerHasSuffix ¶
TickerHasSuffix applies the HasSuffix predicate on the "ticker" field.
func TickerNotIn ¶
TickerNotIn applies the NotIn predicate on the "ticker" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.