tradecondition

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

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

Columns holds all SQL columns for tradecondition 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_condition_id"}
)

Functions

func And

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 ID

ID filters vertices based on their ID field.

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

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