messagewithenum

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const DefaultEnumType = EnumTypePending

EnumTypePending is the default value of the EnumType enum.

Variables

Columns holds all SQL columns for messagewithenum fields.

Functions

func And

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

func EnumTypeValidator(et EnumType) error

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 ID

ID filters vertices based on their ID field.

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

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

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.

const (
	EnumTypePending   EnumType = "pending"
	EnumTypeActive    EnumType = "active"
	EnumTypeSuspended EnumType = "suspended"
	EnumTypeDeleted   EnumType = "deleted"
)

EnumType values.

func (EnumType) String

func (et EnumType) String() string

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

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL