Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Financial) predicate.Financial
- func HasStock() predicate.Financial
- func HasStockWith(preds ...predicate.Entity) predicate.Financial
- func ID(id int) predicate.Financial
- func IDEQ(id int) predicate.Financial
- func IDGT(id int) predicate.Financial
- func IDGTE(id int) predicate.Financial
- func IDIn(ids ...int) predicate.Financial
- func IDLT(id int) predicate.Financial
- func IDLTE(id int) predicate.Financial
- func IDNEQ(id int) predicate.Financial
- func IDNotIn(ids ...int) predicate.Financial
- func Not(p predicate.Financial) predicate.Financial
- func Or(predicates ...predicate.Financial) predicate.Financial
- func ValidColumn(column string) bool
Constants ¶
View Source
const ( // Label holds the string label denoting the financial type in the database. Label = "financial" // FieldID holds the string denoting the id field in the database. FieldID = "id" // EdgeStock holds the string denoting the stock edge name in mutations. EdgeStock = "stock" // Table holds the table name of the financial in the database. Table = "financials" // StockTable is the table that holds the stock relation/edge. The primary key declared below. StockTable = "entity_financials" // 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 ¶
View Source
var Columns = []string{ FieldID, }
Columns holds all SQL columns for financial fields.
View Source
var ( // StockPrimaryKey and StockColumn2 are the table columns denoting the // primary key for the stock relation (M2M). StockPrimaryKey = []string{"entity_id", "financial_id"} )
Functions ¶
func HasStockWith ¶
HasStockWith applies the HasEdge predicate on the "stock" edge with a given conditions (other predicates).
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.