Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.TradeCondition) predicate.TradeCondition
- func Condition(v string) predicate.TradeCondition
- func ConditionContains(v string) predicate.TradeCondition
- func ConditionContainsFold(v string) predicate.TradeCondition
- func ConditionEQ(v string) predicate.TradeCondition
- func ConditionEqualFold(v string) predicate.TradeCondition
- func ConditionGT(v string) predicate.TradeCondition
- func ConditionGTE(v string) predicate.TradeCondition
- func ConditionHasPrefix(v string) predicate.TradeCondition
- func ConditionHasSuffix(v string) predicate.TradeCondition
- func ConditionIn(vs ...string) predicate.TradeCondition
- func ConditionLT(v string) predicate.TradeCondition
- func ConditionLTE(v string) predicate.TradeCondition
- func ConditionNEQ(v string) predicate.TradeCondition
- func ConditionNotIn(vs ...string) predicate.TradeCondition
- func HasRecord() predicate.TradeCondition
- func HasRecordWith(preds ...predicate.TradeRecord) predicate.TradeCondition
- func ID(id int) predicate.TradeCondition
- func IDEQ(id int) predicate.TradeCondition
- func IDGT(id int) predicate.TradeCondition
- func IDGTE(id int) predicate.TradeCondition
- func IDIn(ids ...int) predicate.TradeCondition
- func IDLT(id int) predicate.TradeCondition
- func IDLTE(id int) predicate.TradeCondition
- func IDNEQ(id int) predicate.TradeCondition
- func IDNotIn(ids ...int) predicate.TradeCondition
- func Not(p predicate.TradeCondition) predicate.TradeCondition
- func Or(predicates ...predicate.TradeCondition) predicate.TradeCondition
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the tradecondition type in the database. Label = "trade_condition" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCondition holds the string denoting the condition field in the database. FieldCondition = "condition" // EdgeRecord holds the string denoting the record edge name in mutations. EdgeRecord = "record" // Table holds the table name of the tradecondition in the database. Table = "trade_conditions" // RecordTable is the table that holds the record relation/edge. The primary key declared below. RecordTable = "trade_record_conditions" // RecordInverseTable is the table name for the TradeRecord entity. // It exists in this package in order to avoid circular dependency with the "traderecord" package. RecordInverseTable = "trade_records" )
Variables ¶
var Columns = []string{ FieldID, FieldCondition, }
Columns holds all SQL columns for tradecondition fields.
var ( // RecordPrimaryKey and RecordColumn2 are the table columns denoting the // primary key for the record relation (M2M). RecordPrimaryKey = []string{"trade_record_id", "trade_condition_id"} )
Functions ¶
func And ¶
func And(predicates ...predicate.TradeCondition) predicate.TradeCondition
And groups predicates with the AND operator between them.
func Condition ¶
func Condition(v string) predicate.TradeCondition
Condition applies equality check predicate on the "condition" field. It's identical to ConditionEQ.
func ConditionContains ¶
func ConditionContains(v string) predicate.TradeCondition
ConditionContains applies the Contains predicate on the "condition" field.
func ConditionContainsFold ¶
func ConditionContainsFold(v string) predicate.TradeCondition
ConditionContainsFold applies the ContainsFold predicate on the "condition" field.
func ConditionEQ ¶
func ConditionEQ(v string) predicate.TradeCondition
ConditionEQ applies the EQ predicate on the "condition" field.
func ConditionEqualFold ¶
func ConditionEqualFold(v string) predicate.TradeCondition
ConditionEqualFold applies the EqualFold predicate on the "condition" field.
func ConditionGT ¶
func ConditionGT(v string) predicate.TradeCondition
ConditionGT applies the GT predicate on the "condition" field.
func ConditionGTE ¶
func ConditionGTE(v string) predicate.TradeCondition
ConditionGTE applies the GTE predicate on the "condition" field.
func ConditionHasPrefix ¶
func ConditionHasPrefix(v string) predicate.TradeCondition
ConditionHasPrefix applies the HasPrefix predicate on the "condition" field.
func ConditionHasSuffix ¶
func ConditionHasSuffix(v string) predicate.TradeCondition
ConditionHasSuffix applies the HasSuffix predicate on the "condition" field.
func ConditionIn ¶
func ConditionIn(vs ...string) predicate.TradeCondition
ConditionIn applies the In predicate on the "condition" field.
func ConditionLT ¶
func ConditionLT(v string) predicate.TradeCondition
ConditionLT applies the LT predicate on the "condition" field.
func ConditionLTE ¶
func ConditionLTE(v string) predicate.TradeCondition
ConditionLTE applies the LTE predicate on the "condition" field.
func ConditionNEQ ¶
func ConditionNEQ(v string) predicate.TradeCondition
ConditionNEQ applies the NEQ predicate on the "condition" field.
func ConditionNotIn ¶
func ConditionNotIn(vs ...string) predicate.TradeCondition
ConditionNotIn applies the NotIn predicate on the "condition" field.
func HasRecord ¶
func HasRecord() predicate.TradeCondition
HasRecord applies the HasEdge predicate on the "record" edge.
func HasRecordWith ¶
func HasRecordWith(preds ...predicate.TradeRecord) predicate.TradeCondition
HasRecordWith applies the HasEdge predicate on the "record" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.TradeCondition
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.TradeCondition
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.TradeCondition
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.TradeCondition
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.TradeCondition
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.TradeCondition
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.TradeCondition
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.TradeCondition
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.TradeCondition) predicate.TradeCondition
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.TradeCondition) predicate.TradeCondition
Or groups predicates with the OR operator between them.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.