messagewithenum

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 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"
	// 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 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 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

Jump to

Keyboard shortcuts

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