Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.TradeCorrection) predicate.TradeCorrection
- func Correction(v string) predicate.TradeCorrection
- func CorrectionContains(v string) predicate.TradeCorrection
- func CorrectionContainsFold(v string) predicate.TradeCorrection
- func CorrectionEQ(v string) predicate.TradeCorrection
- func CorrectionEqualFold(v string) predicate.TradeCorrection
- func CorrectionGT(v string) predicate.TradeCorrection
- func CorrectionGTE(v string) predicate.TradeCorrection
- func CorrectionHasPrefix(v string) predicate.TradeCorrection
- func CorrectionHasSuffix(v string) predicate.TradeCorrection
- func CorrectionIn(vs ...string) predicate.TradeCorrection
- func CorrectionLT(v string) predicate.TradeCorrection
- func CorrectionLTE(v string) predicate.TradeCorrection
- func CorrectionNEQ(v string) predicate.TradeCorrection
- func CorrectionNotIn(vs ...string) predicate.TradeCorrection
- func HasRecord() predicate.TradeCorrection
- func HasRecordWith(preds ...predicate.TradeRecord) predicate.TradeCorrection
- func ID(id int) predicate.TradeCorrection
- func IDEQ(id int) predicate.TradeCorrection
- func IDGT(id int) predicate.TradeCorrection
- func IDGTE(id int) predicate.TradeCorrection
- func IDIn(ids ...int) predicate.TradeCorrection
- func IDLT(id int) predicate.TradeCorrection
- func IDLTE(id int) predicate.TradeCorrection
- func IDNEQ(id int) predicate.TradeCorrection
- func IDNotIn(ids ...int) predicate.TradeCorrection
- func Not(p predicate.TradeCorrection) predicate.TradeCorrection
- func Or(predicates ...predicate.TradeCorrection) predicate.TradeCorrection
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the tradecorrection type in the database. Label = "trade_correction" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCorrection holds the string denoting the correction field in the database. FieldCorrection = "correction" // EdgeRecord holds the string denoting the record edge name in mutations. EdgeRecord = "record" // Table holds the table name of the tradecorrection in the database. Table = "trade_corrections" // RecordTable is the table that holds the record relation/edge. The primary key declared below. RecordTable = "trade_record_correction" // 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, FieldCorrection, }
Columns holds all SQL columns for tradecorrection fields.
var ( // RecordPrimaryKey and RecordColumn2 are the table columns denoting the // primary key for the record relation (M2M). RecordPrimaryKey = []string{"trade_record_id", "trade_correction_id"} )
Functions ¶
func And ¶
func And(predicates ...predicate.TradeCorrection) predicate.TradeCorrection
And groups predicates with the AND operator between them.
func Correction ¶
func Correction(v string) predicate.TradeCorrection
Correction applies equality check predicate on the "correction" field. It's identical to CorrectionEQ.
func CorrectionContains ¶
func CorrectionContains(v string) predicate.TradeCorrection
CorrectionContains applies the Contains predicate on the "correction" field.
func CorrectionContainsFold ¶
func CorrectionContainsFold(v string) predicate.TradeCorrection
CorrectionContainsFold applies the ContainsFold predicate on the "correction" field.
func CorrectionEQ ¶
func CorrectionEQ(v string) predicate.TradeCorrection
CorrectionEQ applies the EQ predicate on the "correction" field.
func CorrectionEqualFold ¶
func CorrectionEqualFold(v string) predicate.TradeCorrection
CorrectionEqualFold applies the EqualFold predicate on the "correction" field.
func CorrectionGT ¶
func CorrectionGT(v string) predicate.TradeCorrection
CorrectionGT applies the GT predicate on the "correction" field.
func CorrectionGTE ¶
func CorrectionGTE(v string) predicate.TradeCorrection
CorrectionGTE applies the GTE predicate on the "correction" field.
func CorrectionHasPrefix ¶
func CorrectionHasPrefix(v string) predicate.TradeCorrection
CorrectionHasPrefix applies the HasPrefix predicate on the "correction" field.
func CorrectionHasSuffix ¶
func CorrectionHasSuffix(v string) predicate.TradeCorrection
CorrectionHasSuffix applies the HasSuffix predicate on the "correction" field.
func CorrectionIn ¶
func CorrectionIn(vs ...string) predicate.TradeCorrection
CorrectionIn applies the In predicate on the "correction" field.
func CorrectionLT ¶
func CorrectionLT(v string) predicate.TradeCorrection
CorrectionLT applies the LT predicate on the "correction" field.
func CorrectionLTE ¶
func CorrectionLTE(v string) predicate.TradeCorrection
CorrectionLTE applies the LTE predicate on the "correction" field.
func CorrectionNEQ ¶
func CorrectionNEQ(v string) predicate.TradeCorrection
CorrectionNEQ applies the NEQ predicate on the "correction" field.
func CorrectionNotIn ¶
func CorrectionNotIn(vs ...string) predicate.TradeCorrection
CorrectionNotIn applies the NotIn predicate on the "correction" field.
func HasRecord ¶
func HasRecord() predicate.TradeCorrection
HasRecord applies the HasEdge predicate on the "record" edge.
func HasRecordWith ¶
func HasRecordWith(preds ...predicate.TradeRecord) predicate.TradeCorrection
HasRecordWith applies the HasEdge predicate on the "record" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.TradeCorrection
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.TradeCorrection
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.TradeCorrection
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.TradeCorrection
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.TradeCorrection
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.TradeCorrection
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.TradeCorrection
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.TradeCorrection
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.TradeCorrection) predicate.TradeCorrection
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.TradeCorrection) predicate.TradeCorrection
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.