equipment

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the equipment type in the database.
	Label = "equipment"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// FieldUpdateTime holds the string denoting the update_time field in the database.
	FieldUpdateTime = "update_time"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldCondition holds the string denoting the condition field in the database.
	FieldCondition = "condition"
	// Table holds the table name of the equipment in the database.
	Table = "equipment"
)

Variables

View Source
var (
	// DefaultCreateTime holds the default value on creation for the "create_time" field.
	DefaultCreateTime func() time.Time
	// DefaultUpdateTime holds the default value on creation for the "update_time" field.
	DefaultUpdateTime func() time.Time
	// UpdateDefaultUpdateTime holds the default value on update for the "update_time" field.
	UpdateDefaultUpdateTime func() time.Time
	// ConditionValidator is a validator for the "condition" field. It is called by the builders before save.
	ConditionValidator func(string) error
)

Columns holds all SQL columns for equipment fields.

Functions

func And

func And(predicates ...predicate.Equipment) predicate.Equipment

And groups predicates with the AND operator between them.

func Condition

func Condition(v string) predicate.Equipment

Condition applies equality check predicate on the "condition" field. It's identical to ConditionEQ.

func ConditionContains added in v0.4.0

func ConditionContains(v string) predicate.Equipment

ConditionContains applies the Contains predicate on the "condition" field.

func ConditionContainsFold added in v0.4.0

func ConditionContainsFold(v string) predicate.Equipment

ConditionContainsFold applies the ContainsFold predicate on the "condition" field.

func ConditionEQ

func ConditionEQ(v string) predicate.Equipment

ConditionEQ applies the EQ predicate on the "condition" field.

func ConditionEqualFold added in v0.4.0

func ConditionEqualFold(v string) predicate.Equipment

ConditionEqualFold applies the EqualFold predicate on the "condition" field.

func ConditionGT added in v0.4.0

func ConditionGT(v string) predicate.Equipment

ConditionGT applies the GT predicate on the "condition" field.

func ConditionGTE added in v0.4.0

func ConditionGTE(v string) predicate.Equipment

ConditionGTE applies the GTE predicate on the "condition" field.

func ConditionHasPrefix added in v0.4.0

func ConditionHasPrefix(v string) predicate.Equipment

ConditionHasPrefix applies the HasPrefix predicate on the "condition" field.

func ConditionHasSuffix added in v0.4.0

func ConditionHasSuffix(v string) predicate.Equipment

ConditionHasSuffix applies the HasSuffix predicate on the "condition" field.

func ConditionIn

func ConditionIn(vs ...string) predicate.Equipment

ConditionIn applies the In predicate on the "condition" field.

func ConditionLT added in v0.4.0

func ConditionLT(v string) predicate.Equipment

ConditionLT applies the LT predicate on the "condition" field.

func ConditionLTE added in v0.4.0

func ConditionLTE(v string) predicate.Equipment

ConditionLTE applies the LTE predicate on the "condition" field.

func ConditionNEQ

func ConditionNEQ(v string) predicate.Equipment

ConditionNEQ applies the NEQ predicate on the "condition" field.

func ConditionNotIn

func ConditionNotIn(vs ...string) predicate.Equipment

ConditionNotIn applies the NotIn predicate on the "condition" field.

func CreateTime added in v0.3.0

func CreateTime(v time.Time) predicate.Equipment

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ added in v0.3.0

func CreateTimeEQ(v time.Time) predicate.Equipment

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT added in v0.3.0

func CreateTimeGT(v time.Time) predicate.Equipment

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE added in v0.3.0

func CreateTimeGTE(v time.Time) predicate.Equipment

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn added in v0.3.0

func CreateTimeIn(vs ...time.Time) predicate.Equipment

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT added in v0.3.0

func CreateTimeLT(v time.Time) predicate.Equipment

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE added in v0.3.0

func CreateTimeLTE(v time.Time) predicate.Equipment

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ added in v0.3.0

func CreateTimeNEQ(v time.Time) predicate.Equipment

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn added in v0.3.0

func CreateTimeNotIn(vs ...time.Time) predicate.Equipment

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func ID

func ID(id int) predicate.Equipment

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Equipment

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Equipment

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Equipment

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Equipment

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Equipment

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Equipment

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Equipment

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Equipment

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Equipment

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Equipment

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Equipment

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Equipment

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Equipment

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Equipment

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Equipment

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Equipment

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Equipment

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Equipment

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Equipment

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Equipment

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Equipment) predicate.Equipment

Or groups predicates with the OR operator between them.

func UpdateTime added in v0.3.0

func UpdateTime(v time.Time) predicate.Equipment

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ added in v0.3.0

func UpdateTimeEQ(v time.Time) predicate.Equipment

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT added in v0.3.0

func UpdateTimeGT(v time.Time) predicate.Equipment

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE added in v0.3.0

func UpdateTimeGTE(v time.Time) predicate.Equipment

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn added in v0.3.0

func UpdateTimeIn(vs ...time.Time) predicate.Equipment

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT added in v0.3.0

func UpdateTimeLT(v time.Time) predicate.Equipment

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE added in v0.3.0

func UpdateTimeLTE(v time.Time) predicate.Equipment

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ added in v0.3.0

func UpdateTimeNEQ(v time.Time) predicate.Equipment

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn added in v0.3.0

func UpdateTimeNotIn(vs ...time.Time) predicate.Equipment

UpdateTimeNotIn applies the NotIn predicate on the "update_time" 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