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 EnumWithSpecialCharactersEQ(v EnumWithSpecialCharacters) predicate.MessageWithEnum
- func EnumWithSpecialCharactersIn(vs ...EnumWithSpecialCharacters) predicate.MessageWithEnum
- func EnumWithSpecialCharactersNEQ(v EnumWithSpecialCharacters) predicate.MessageWithEnum
- func EnumWithSpecialCharactersNotIn(vs ...EnumWithSpecialCharacters) predicate.MessageWithEnum
- func EnumWithSpecialCharactersValidator(ewsc EnumWithSpecialCharacters) 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 EnumWithSpecialCharacters
- type EnumWithoutDefault
- type OrderOption
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" // FieldEnumWithSpecialCharacters holds the string denoting the enum_with_special_characters field in the database. FieldEnumWithSpecialCharacters = "enum_with_special_characters" // 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, FieldEnumWithSpecialCharacters, }
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 EnumWithSpecialCharactersEQ ¶ added in v0.5.0
func EnumWithSpecialCharactersEQ(v EnumWithSpecialCharacters) predicate.MessageWithEnum
EnumWithSpecialCharactersEQ applies the EQ predicate on the "enum_with_special_characters" field.
func EnumWithSpecialCharactersIn ¶ added in v0.5.0
func EnumWithSpecialCharactersIn(vs ...EnumWithSpecialCharacters) predicate.MessageWithEnum
EnumWithSpecialCharactersIn applies the In predicate on the "enum_with_special_characters" field.
func EnumWithSpecialCharactersNEQ ¶ added in v0.5.0
func EnumWithSpecialCharactersNEQ(v EnumWithSpecialCharacters) predicate.MessageWithEnum
EnumWithSpecialCharactersNEQ applies the NEQ predicate on the "enum_with_special_characters" field.
func EnumWithSpecialCharactersNotIn ¶ added in v0.5.0
func EnumWithSpecialCharactersNotIn(vs ...EnumWithSpecialCharacters) predicate.MessageWithEnum
EnumWithSpecialCharactersNotIn applies the NotIn predicate on the "enum_with_special_characters" field.
func EnumWithSpecialCharactersValidator ¶ added in v0.5.0
func EnumWithSpecialCharactersValidator(ewsc EnumWithSpecialCharacters) error
EnumWithSpecialCharactersValidator is a validator for the "enum_with_special_characters" 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 EnumWithSpecialCharacters ¶ added in v0.5.0
type EnumWithSpecialCharacters string
EnumWithSpecialCharacters defines the type for the "enum_with_special_characters" enum field.
const ( EnumWithSpecialCharactersJpeg EnumWithSpecialCharacters = "image/jpeg" EnumWithSpecialCharactersPng EnumWithSpecialCharacters = "image/png" )
EnumWithSpecialCharacters values.
func (EnumWithSpecialCharacters) String ¶ added in v0.5.0
func (ewsc EnumWithSpecialCharacters) String() string
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
type OrderOption ¶ added in v0.4.1
OrderOption defines the ordering options for the MessageWithEnum queries.
func ByEnumType ¶ added in v0.4.0
func ByEnumType(opts ...sql.OrderTermOption) OrderOption
ByEnumType orders the results by the enum_type field.
func ByEnumWithSpecialCharacters ¶ added in v0.5.0
func ByEnumWithSpecialCharacters(opts ...sql.OrderTermOption) OrderOption
ByEnumWithSpecialCharacters orders the results by the enum_with_special_characters field.
func ByEnumWithoutDefault ¶ added in v0.4.0
func ByEnumWithoutDefault(opts ...sql.OrderTermOption) OrderOption
ByEnumWithoutDefault orders the results by the enum_without_default field.
func ByID ¶ added in v0.4.0
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.