Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.MultiWordSchema) predicate.MultiWordSchema
- func ID(id int) predicate.MultiWordSchema
- func IDEQ(id int) predicate.MultiWordSchema
- func IDGT(id int) predicate.MultiWordSchema
- func IDGTE(id int) predicate.MultiWordSchema
- func IDIn(ids ...int) predicate.MultiWordSchema
- func IDLT(id int) predicate.MultiWordSchema
- func IDLTE(id int) predicate.MultiWordSchema
- func IDNEQ(id int) predicate.MultiWordSchema
- func IDNotIn(ids ...int) predicate.MultiWordSchema
- func Not(p predicate.MultiWordSchema) predicate.MultiWordSchema
- func Or(predicates ...predicate.MultiWordSchema) predicate.MultiWordSchema
- func UnitEQ(v Unit) predicate.MultiWordSchema
- func UnitIn(vs ...Unit) predicate.MultiWordSchema
- func UnitNEQ(v Unit) predicate.MultiWordSchema
- func UnitNotIn(vs ...Unit) predicate.MultiWordSchema
- func UnitValidator(u Unit) error
- func ValidColumn(column string) bool
- type OrderOption
- type Unit
Constants ¶
const ( // Label holds the string label denoting the multiwordschema type in the database. Label = "multi_word_schema" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldUnit holds the string denoting the unit field in the database. FieldUnit = "unit" // Table holds the table name of the multiwordschema in the database. Table = "multi_word_schemas" )
const DefaultUnit = UnitM
UnitM is the default value of the Unit enum.
Variables ¶
var Columns = []string{ FieldID, FieldUnit, }
Columns holds all SQL columns for multiwordschema fields.
Functions ¶
func And ¶
func And(predicates ...predicate.MultiWordSchema) predicate.MultiWordSchema
And groups predicates with the AND operator between them.
func IDEQ ¶
func IDEQ(id int) predicate.MultiWordSchema
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.MultiWordSchema
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.MultiWordSchema
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.MultiWordSchema
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.MultiWordSchema
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.MultiWordSchema
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.MultiWordSchema
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.MultiWordSchema
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.MultiWordSchema) predicate.MultiWordSchema
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.MultiWordSchema) predicate.MultiWordSchema
Or groups predicates with the OR operator between them.
func UnitEQ ¶
func UnitEQ(v Unit) predicate.MultiWordSchema
UnitEQ applies the EQ predicate on the "unit" field.
func UnitIn ¶
func UnitIn(vs ...Unit) predicate.MultiWordSchema
UnitIn applies the In predicate on the "unit" field.
func UnitNEQ ¶
func UnitNEQ(v Unit) predicate.MultiWordSchema
UnitNEQ applies the NEQ predicate on the "unit" field.
func UnitNotIn ¶
func UnitNotIn(vs ...Unit) predicate.MultiWordSchema
UnitNotIn applies the NotIn predicate on the "unit" field.
func UnitValidator ¶
UnitValidator is a validator for the "unit" field enum values. It is called by the builders before save.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶ added in v0.4.1
OrderOption defines the ordering options for the MultiWordSchema queries.
func ByID ¶ added in v0.4.0
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByUnit ¶ added in v0.4.0
func ByUnit(opts ...sql.OrderTermOption) OrderOption
ByUnit orders the results by the unit field.