Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.MessageWithEnum) predicate.MessageWithEnum
- func EnumTypeEQ(v EnumType) predicate.MessageWithEnum
- func EnumTypeIn(vs ...EnumType) predicate.MessageWithEnum
- func EnumTypeNEQ(v EnumType) predicate.MessageWithEnum
- func EnumTypeNotIn(vs ...EnumType) predicate.MessageWithEnum
- func EnumTypeValidator(et EnumType) error
- func EnumWithoutDefaultEQ(v EnumWithoutDefault) predicate.MessageWithEnum
- func EnumWithoutDefaultIn(vs ...EnumWithoutDefault) predicate.MessageWithEnum
- func EnumWithoutDefaultNEQ(v EnumWithoutDefault) predicate.MessageWithEnum
- func EnumWithoutDefaultNotIn(vs ...EnumWithoutDefault) predicate.MessageWithEnum
- func EnumWithoutDefaultValidator(ewd EnumWithoutDefault) error
- func ID(id int) predicate.MessageWithEnum
- func IDEQ(id int) predicate.MessageWithEnum
- func IDGT(id int) predicate.MessageWithEnum
- func IDGTE(id int) predicate.MessageWithEnum
- func IDIn(ids ...int) predicate.MessageWithEnum
- func IDLT(id int) predicate.MessageWithEnum
- func IDLTE(id int) predicate.MessageWithEnum
- func IDNEQ(id int) predicate.MessageWithEnum
- func IDNotIn(ids ...int) predicate.MessageWithEnum
- func Not(p predicate.MessageWithEnum) predicate.MessageWithEnum
- func Or(predicates ...predicate.MessageWithEnum) predicate.MessageWithEnum
- func ValidColumn(column string) bool
- type EnumType
- type EnumWithoutDefault
Constants ¶
const ( // Label holds the string label denoting the messagewithenum type in the database. Label = "message_with_enum" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldEnumType holds the string denoting the enum_type field in the database. FieldEnumType = "enum_type" // FieldEnumWithoutDefault holds the string denoting the enum_without_default field in the database. FieldEnumWithoutDefault = "enum_without_default" // Table holds the table name of the messagewithenum in the database. Table = "message_with_enums" )
const DefaultEnumType = EnumTypePending
EnumTypePending is the default value of the EnumType enum.
Variables ¶
var Columns = []string{ FieldID, FieldEnumType, FieldEnumWithoutDefault, }
Columns holds all SQL columns for messagewithenum fields.
Functions ¶
func And ¶
func And(predicates ...predicate.MessageWithEnum) predicate.MessageWithEnum
And groups predicates with the AND operator between them.
func EnumTypeEQ ¶
func EnumTypeEQ(v EnumType) predicate.MessageWithEnum
EnumTypeEQ applies the EQ predicate on the "enum_type" field.
func EnumTypeIn ¶
func EnumTypeIn(vs ...EnumType) predicate.MessageWithEnum
EnumTypeIn applies the In predicate on the "enum_type" field.
func EnumTypeNEQ ¶
func EnumTypeNEQ(v EnumType) predicate.MessageWithEnum
EnumTypeNEQ applies the NEQ predicate on the "enum_type" field.
func EnumTypeNotIn ¶
func EnumTypeNotIn(vs ...EnumType) predicate.MessageWithEnum
EnumTypeNotIn applies the NotIn predicate on the "enum_type" field.
func EnumTypeValidator ¶
EnumTypeValidator is a validator for the "enum_type" field enum values. It is called by the builders before save.
func EnumWithoutDefaultEQ ¶
func EnumWithoutDefaultEQ(v EnumWithoutDefault) predicate.MessageWithEnum
EnumWithoutDefaultEQ applies the EQ predicate on the "enum_without_default" field.
func EnumWithoutDefaultIn ¶
func EnumWithoutDefaultIn(vs ...EnumWithoutDefault) predicate.MessageWithEnum
EnumWithoutDefaultIn applies the In predicate on the "enum_without_default" field.
func EnumWithoutDefaultNEQ ¶
func EnumWithoutDefaultNEQ(v EnumWithoutDefault) predicate.MessageWithEnum
EnumWithoutDefaultNEQ applies the NEQ predicate on the "enum_without_default" field.
func EnumWithoutDefaultNotIn ¶
func EnumWithoutDefaultNotIn(vs ...EnumWithoutDefault) predicate.MessageWithEnum
EnumWithoutDefaultNotIn applies the NotIn predicate on the "enum_without_default" field.
func EnumWithoutDefaultValidator ¶
func EnumWithoutDefaultValidator(ewd EnumWithoutDefault) error
EnumWithoutDefaultValidator is a validator for the "enum_without_default" field enum values. It is called by the builders before save.
func IDEQ ¶
func IDEQ(id int) predicate.MessageWithEnum
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.MessageWithEnum
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.MessageWithEnum
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.MessageWithEnum
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.MessageWithEnum
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.MessageWithEnum
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.MessageWithEnum
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.MessageWithEnum
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.MessageWithEnum) predicate.MessageWithEnum
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.MessageWithEnum) predicate.MessageWithEnum
Or groups predicates with the OR operator between them.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type EnumType ¶
type EnumType string
EnumType defines the type for the "enum_type" enum field.
type EnumWithoutDefault ¶
type EnumWithoutDefault string
EnumWithoutDefault defines the type for the "enum_without_default" enum field.
const ( EnumWithoutDefaultFirst EnumWithoutDefault = "first" EnumWithoutDefaultSecond EnumWithoutDefault = "second" )
EnumWithoutDefault values.
func (EnumWithoutDefault) String ¶
func (ewd EnumWithoutDefault) String() string