split

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: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the split type in the database.
	Label = "split"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldExecutionDate holds the string denoting the execution_date field in the database.
	FieldExecutionDate = "execution_date"
	// FieldFrom holds the string denoting the from field in the database.
	FieldFrom = "from"
	// FieldTo holds the string denoting the to field in the database.
	FieldTo = "to"
	// EdgeStock holds the string denoting the stock edge name in mutations.
	EdgeStock = "stock"
	// Table holds the table name of the split in the database.
	Table = "splits"
	// StockTable is the table that holds the stock relation/edge.
	StockTable = "splits"
	// StockInverseTable is the table name for the Entity entity.
	// It exists in this package in order to avoid circular dependency with the "entity" package.
	StockInverseTable = "entities"
	// StockColumn is the table column denoting the stock relation/edge.
	StockColumn = "entity_splits"
)

Variables

Columns holds all SQL columns for split fields.

View Source
var ForeignKeys = []string{
	"entity_splits",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "splits" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Split) predicate.Split

And groups predicates with the AND operator between them.

func ExecutionDate

func ExecutionDate(v time.Time) predicate.Split

ExecutionDate applies equality check predicate on the "execution_date" field. It's identical to ExecutionDateEQ.

func ExecutionDateEQ

func ExecutionDateEQ(v time.Time) predicate.Split

ExecutionDateEQ applies the EQ predicate on the "execution_date" field.

func ExecutionDateGT

func ExecutionDateGT(v time.Time) predicate.Split

ExecutionDateGT applies the GT predicate on the "execution_date" field.

func ExecutionDateGTE

func ExecutionDateGTE(v time.Time) predicate.Split

ExecutionDateGTE applies the GTE predicate on the "execution_date" field.

func ExecutionDateIn

func ExecutionDateIn(vs ...time.Time) predicate.Split

ExecutionDateIn applies the In predicate on the "execution_date" field.

func ExecutionDateLT

func ExecutionDateLT(v time.Time) predicate.Split

ExecutionDateLT applies the LT predicate on the "execution_date" field.

func ExecutionDateLTE

func ExecutionDateLTE(v time.Time) predicate.Split

ExecutionDateLTE applies the LTE predicate on the "execution_date" field.

func ExecutionDateNEQ

func ExecutionDateNEQ(v time.Time) predicate.Split

ExecutionDateNEQ applies the NEQ predicate on the "execution_date" field.

func ExecutionDateNotIn

func ExecutionDateNotIn(vs ...time.Time) predicate.Split

ExecutionDateNotIn applies the NotIn predicate on the "execution_date" field.

func From

func From(v float64) predicate.Split

From applies equality check predicate on the "from" field. It's identical to FromEQ.

func FromEQ

func FromEQ(v float64) predicate.Split

FromEQ applies the EQ predicate on the "from" field.

func FromGT

func FromGT(v float64) predicate.Split

FromGT applies the GT predicate on the "from" field.

func FromGTE

func FromGTE(v float64) predicate.Split

FromGTE applies the GTE predicate on the "from" field.

func FromIn

func FromIn(vs ...float64) predicate.Split

FromIn applies the In predicate on the "from" field.

func FromLT

func FromLT(v float64) predicate.Split

FromLT applies the LT predicate on the "from" field.

func FromLTE

func FromLTE(v float64) predicate.Split

FromLTE applies the LTE predicate on the "from" field.

func FromNEQ

func FromNEQ(v float64) predicate.Split

FromNEQ applies the NEQ predicate on the "from" field.

func FromNotIn

func FromNotIn(vs ...float64) predicate.Split

FromNotIn applies the NotIn predicate on the "from" field.

func HasStock

func HasStock() predicate.Split

HasStock applies the HasEdge predicate on the "stock" edge.

func HasStockWith

func HasStockWith(preds ...predicate.Entity) predicate.Split

HasStockWith applies the HasEdge predicate on the "stock" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Split

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Split

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Split

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Split

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Split

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Split

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Split

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Split

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Split

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Split) predicate.Split

Or groups predicates with the OR operator between them.

func To

func To(v float64) predicate.Split

To applies equality check predicate on the "to" field. It's identical to ToEQ.

func ToEQ

func ToEQ(v float64) predicate.Split

ToEQ applies the EQ predicate on the "to" field.

func ToGT

func ToGT(v float64) predicate.Split

ToGT applies the GT predicate on the "to" field.

func ToGTE

func ToGTE(v float64) predicate.Split

ToGTE applies the GTE predicate on the "to" field.

func ToIn

func ToIn(vs ...float64) predicate.Split

ToIn applies the In predicate on the "to" field.

func ToLT

func ToLT(v float64) predicate.Split

ToLT applies the LT predicate on the "to" field.

func ToLTE

func ToLTE(v float64) predicate.Split

ToLTE applies the LTE predicate on the "to" field.

func ToNEQ

func ToNEQ(v float64) predicate.Split

ToNEQ applies the NEQ predicate on the "to" field.

func ToNotIn

func ToNotIn(vs ...float64) predicate.Split

ToNotIn applies the NotIn predicate on the "to" field.

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