tradecorrection

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
var Columns = []string{
	FieldID,
	FieldCorrection,
}

Columns holds all SQL columns for tradecorrection fields.

View Source
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

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 ID

ID filters vertices based on their ID field.

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

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL