bfpdatapoint

package
v0.0.0-...-5d3e565 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the bfpdatapoint type in the database.
	Label = "bfp_data_point"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldFatPercentage holds the string denoting the fat_percentage field in the database.
	FieldFatPercentage = "fat_percentage"
	// FieldTotalWeight holds the string denoting the total_weight field in the database.
	FieldTotalWeight = "total_weight"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// Table holds the table name of the bfpdatapoint in the database.
	Table = "bfp_data_points"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "bfp_data_points"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_bf_ps"
)

Variables

View Source
var (
	// FatPercentageValidator is a validator for the "fat_percentage" field. It is called by the builders before save.
	FatPercentageValidator func(float64) error
	// TotalWeightValidator is a validator for the "total_weight" field. It is called by the builders before save.
	TotalWeightValidator func(int) error
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt time.Time
)

Columns holds all SQL columns for bfpdatapoint fields.

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

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

Functions

func And

func And(predicates ...predicate.BFPDataPoint) predicate.BFPDataPoint

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.BFPDataPoint

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.BFPDataPoint

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.BFPDataPoint

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.BFPDataPoint

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.BFPDataPoint

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.BFPDataPoint

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.BFPDataPoint

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.BFPDataPoint

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.BFPDataPoint

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func FatPercentage

func FatPercentage(v float64) predicate.BFPDataPoint

FatPercentage applies equality check predicate on the "fat_percentage" field. It's identical to FatPercentageEQ.

func FatPercentageEQ

func FatPercentageEQ(v float64) predicate.BFPDataPoint

FatPercentageEQ applies the EQ predicate on the "fat_percentage" field.

func FatPercentageGT

func FatPercentageGT(v float64) predicate.BFPDataPoint

FatPercentageGT applies the GT predicate on the "fat_percentage" field.

func FatPercentageGTE

func FatPercentageGTE(v float64) predicate.BFPDataPoint

FatPercentageGTE applies the GTE predicate on the "fat_percentage" field.

func FatPercentageIn

func FatPercentageIn(vs ...float64) predicate.BFPDataPoint

FatPercentageIn applies the In predicate on the "fat_percentage" field.

func FatPercentageLT

func FatPercentageLT(v float64) predicate.BFPDataPoint

FatPercentageLT applies the LT predicate on the "fat_percentage" field.

func FatPercentageLTE

func FatPercentageLTE(v float64) predicate.BFPDataPoint

FatPercentageLTE applies the LTE predicate on the "fat_percentage" field.

func FatPercentageNEQ

func FatPercentageNEQ(v float64) predicate.BFPDataPoint

FatPercentageNEQ applies the NEQ predicate on the "fat_percentage" field.

func FatPercentageNotIn

func FatPercentageNotIn(vs ...float64) predicate.BFPDataPoint

FatPercentageNotIn applies the NotIn predicate on the "fat_percentage" field.

func HasUser

func HasUser() predicate.BFPDataPoint

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.BFPDataPoint

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

func ID

func ID(id int) predicate.BFPDataPoint

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.BFPDataPoint

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.BFPDataPoint

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.BFPDataPoint

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.BFPDataPoint

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.BFPDataPoint

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.BFPDataPoint

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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.BFPDataPoint) predicate.BFPDataPoint

Or groups predicates with the OR operator between them.

func TotalWeight

func TotalWeight(v int) predicate.BFPDataPoint

TotalWeight applies equality check predicate on the "total_weight" field. It's identical to TotalWeightEQ.

func TotalWeightEQ

func TotalWeightEQ(v int) predicate.BFPDataPoint

TotalWeightEQ applies the EQ predicate on the "total_weight" field.

func TotalWeightGT

func TotalWeightGT(v int) predicate.BFPDataPoint

TotalWeightGT applies the GT predicate on the "total_weight" field.

func TotalWeightGTE

func TotalWeightGTE(v int) predicate.BFPDataPoint

TotalWeightGTE applies the GTE predicate on the "total_weight" field.

func TotalWeightIn

func TotalWeightIn(vs ...int) predicate.BFPDataPoint

TotalWeightIn applies the In predicate on the "total_weight" field.

func TotalWeightLT

func TotalWeightLT(v int) predicate.BFPDataPoint

TotalWeightLT applies the LT predicate on the "total_weight" field.

func TotalWeightLTE

func TotalWeightLTE(v int) predicate.BFPDataPoint

TotalWeightLTE applies the LTE predicate on the "total_weight" field.

func TotalWeightNEQ

func TotalWeightNEQ(v int) predicate.BFPDataPoint

TotalWeightNEQ applies the NEQ predicate on the "total_weight" field.

func TotalWeightNotIn

func TotalWeightNotIn(vs ...int) predicate.BFPDataPoint

TotalWeightNotIn applies the NotIn predicate on the "total_weight" 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