Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Exchange) predicate.Exchange
- func Code(v string) predicate.Exchange
- func CodeContains(v string) predicate.Exchange
- func CodeContainsFold(v string) predicate.Exchange
- func CodeEQ(v string) predicate.Exchange
- func CodeEqualFold(v string) predicate.Exchange
- func CodeGT(v string) predicate.Exchange
- func CodeGTE(v string) predicate.Exchange
- func CodeHasPrefix(v string) predicate.Exchange
- func CodeHasSuffix(v string) predicate.Exchange
- func CodeIn(vs ...string) predicate.Exchange
- func CodeLT(v string) predicate.Exchange
- func CodeLTE(v string) predicate.Exchange
- func CodeNEQ(v string) predicate.Exchange
- func CodeNotIn(vs ...string) predicate.Exchange
- func HasStocks() predicate.Exchange
- func HasStocksWith(preds ...predicate.Entity) predicate.Exchange
- func ID(id int) predicate.Exchange
- func IDEQ(id int) predicate.Exchange
- func IDGT(id int) predicate.Exchange
- func IDGTE(id int) predicate.Exchange
- func IDIn(ids ...int) predicate.Exchange
- func IDLT(id int) predicate.Exchange
- func IDLTE(id int) predicate.Exchange
- func IDNEQ(id int) predicate.Exchange
- func IDNotIn(ids ...int) predicate.Exchange
- func Name(v string) predicate.Exchange
- func NameContains(v string) predicate.Exchange
- func NameContainsFold(v string) predicate.Exchange
- func NameEQ(v string) predicate.Exchange
- func NameEqualFold(v string) predicate.Exchange
- func NameGT(v string) predicate.Exchange
- func NameGTE(v string) predicate.Exchange
- func NameHasPrefix(v string) predicate.Exchange
- func NameHasSuffix(v string) predicate.Exchange
- func NameIn(vs ...string) predicate.Exchange
- func NameLT(v string) predicate.Exchange
- func NameLTE(v string) predicate.Exchange
- func NameNEQ(v string) predicate.Exchange
- func NameNotIn(vs ...string) predicate.Exchange
- func Not(p predicate.Exchange) predicate.Exchange
- func Or(predicates ...predicate.Exchange) predicate.Exchange
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the exchange type in the database. Label = "exchange" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCode holds the string denoting the code field in the database. FieldCode = "code" // FieldName holds the string denoting the name field in the database. FieldName = "name" // EdgeStocks holds the string denoting the stocks edge name in mutations. EdgeStocks = "stocks" // Table holds the table name of the exchange in the database. Table = "exchanges" // StocksTable is the table that holds the stocks relation/edge. The primary key declared below. StocksTable = "entity_exchanges" // StocksInverseTable is the table name for the Entity entity. // It exists in this package in order to avoid circular dependency with the "entity" package. StocksInverseTable = "entities" )
Variables ¶
var Columns = []string{ FieldID, FieldCode, FieldName, }
Columns holds all SQL columns for exchange fields.
var ForeignKeys = []string{
"trade_record_exchange",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "exchanges" table and are not defined as standalone fields in the schema.
var ( // StocksPrimaryKey and StocksColumn2 are the table columns denoting the // primary key for the stocks relation (M2M). StocksPrimaryKey = []string{"entity_id", "exchange_id"} )
Functions ¶
func CodeContains ¶
CodeContains applies the Contains predicate on the "code" field.
func CodeContainsFold ¶
CodeContainsFold applies the ContainsFold predicate on the "code" field.
func CodeEqualFold ¶
CodeEqualFold applies the EqualFold predicate on the "code" field.
func CodeHasPrefix ¶
CodeHasPrefix applies the HasPrefix predicate on the "code" field.
func CodeHasSuffix ¶
CodeHasSuffix applies the HasSuffix predicate on the "code" field.
func HasStocksWith ¶
HasStocksWith applies the HasEdge predicate on the "stocks" edge with a given conditions (other predicates).
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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.