chatoption

package
v0.0.0-...-1c65c5f Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the chatoption type in the database.
	Label = "chat_option"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldChatID holds the string denoting the chat_id field in the database.
	FieldChatID = "chat_id"
	// FieldKey holds the string denoting the key field in the database.
	FieldKey = "key"
	// FieldValue holds the string denoting the value field in the database.
	FieldValue = "value"
	// FieldCreateAt holds the string denoting the create_at field in the database.
	FieldCreateAt = "create_at"
	// FieldUpdateAt holds the string denoting the update_at field in the database.
	FieldUpdateAt = "update_at"
	// Table holds the table name of the chatoption in the database.
	Table = "chat_options"
)

Variables

View Source
var (
	// KeyValidator is a validator for the "key" field. It is called by the builders before save.
	KeyValidator func(string) error
	// DefaultValue holds the default value on creation for the "value" field.
	DefaultValue string
	// DefaultCreateAt holds the default value on creation for the "create_at" field.
	DefaultCreateAt func() time.Time
	// DefaultUpdateAt holds the default value on creation for the "update_at" field.
	DefaultUpdateAt func() time.Time
	// UpdateDefaultUpdateAt holds the default value on update for the "update_at" field.
	UpdateDefaultUpdateAt func() time.Time
)

Columns holds all SQL columns for chatoption fields.

Functions

func And

func And(predicates ...predicate.ChatOption) predicate.ChatOption

And groups predicates with the AND operator between them.

func ChatID

func ChatID(v int64) predicate.ChatOption

ChatID applies equality check predicate on the "chat_id" field. It's identical to ChatIDEQ.

func ChatIDEQ

func ChatIDEQ(v int64) predicate.ChatOption

ChatIDEQ applies the EQ predicate on the "chat_id" field.

func ChatIDGT

func ChatIDGT(v int64) predicate.ChatOption

ChatIDGT applies the GT predicate on the "chat_id" field.

func ChatIDGTE

func ChatIDGTE(v int64) predicate.ChatOption

ChatIDGTE applies the GTE predicate on the "chat_id" field.

func ChatIDIn

func ChatIDIn(vs ...int64) predicate.ChatOption

ChatIDIn applies the In predicate on the "chat_id" field.

func ChatIDLT

func ChatIDLT(v int64) predicate.ChatOption

ChatIDLT applies the LT predicate on the "chat_id" field.

func ChatIDLTE

func ChatIDLTE(v int64) predicate.ChatOption

ChatIDLTE applies the LTE predicate on the "chat_id" field.

func ChatIDNEQ

func ChatIDNEQ(v int64) predicate.ChatOption

ChatIDNEQ applies the NEQ predicate on the "chat_id" field.

func ChatIDNotIn

func ChatIDNotIn(vs ...int64) predicate.ChatOption

ChatIDNotIn applies the NotIn predicate on the "chat_id" field.

func CreateAt

func CreateAt(v time.Time) predicate.ChatOption

CreateAt applies equality check predicate on the "create_at" field. It's identical to CreateAtEQ.

func CreateAtEQ

func CreateAtEQ(v time.Time) predicate.ChatOption

CreateAtEQ applies the EQ predicate on the "create_at" field.

func CreateAtGT

func CreateAtGT(v time.Time) predicate.ChatOption

CreateAtGT applies the GT predicate on the "create_at" field.

func CreateAtGTE

func CreateAtGTE(v time.Time) predicate.ChatOption

CreateAtGTE applies the GTE predicate on the "create_at" field.

func CreateAtIn

func CreateAtIn(vs ...time.Time) predicate.ChatOption

CreateAtIn applies the In predicate on the "create_at" field.

func CreateAtLT

func CreateAtLT(v time.Time) predicate.ChatOption

CreateAtLT applies the LT predicate on the "create_at" field.

func CreateAtLTE

func CreateAtLTE(v time.Time) predicate.ChatOption

CreateAtLTE applies the LTE predicate on the "create_at" field.

func CreateAtNEQ

func CreateAtNEQ(v time.Time) predicate.ChatOption

CreateAtNEQ applies the NEQ predicate on the "create_at" field.

func CreateAtNotIn

func CreateAtNotIn(vs ...time.Time) predicate.ChatOption

CreateAtNotIn applies the NotIn predicate on the "create_at" field.

func ID

func ID(id int64) predicate.ChatOption

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.ChatOption

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.ChatOption

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.ChatOption

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.ChatOption

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.ChatOption

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.ChatOption

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.ChatOption

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.ChatOption

IDNotIn applies the NotIn predicate on the ID field.

func Key

Key applies equality check predicate on the "key" field. It's identical to KeyEQ.

func KeyContains

func KeyContains(v string) predicate.ChatOption

KeyContains applies the Contains predicate on the "key" field.

func KeyContainsFold

func KeyContainsFold(v string) predicate.ChatOption

KeyContainsFold applies the ContainsFold predicate on the "key" field.

func KeyEQ

func KeyEQ(v string) predicate.ChatOption

KeyEQ applies the EQ predicate on the "key" field.

func KeyEqualFold

func KeyEqualFold(v string) predicate.ChatOption

KeyEqualFold applies the EqualFold predicate on the "key" field.

func KeyGT

func KeyGT(v string) predicate.ChatOption

KeyGT applies the GT predicate on the "key" field.

func KeyGTE

func KeyGTE(v string) predicate.ChatOption

KeyGTE applies the GTE predicate on the "key" field.

func KeyHasPrefix

func KeyHasPrefix(v string) predicate.ChatOption

KeyHasPrefix applies the HasPrefix predicate on the "key" field.

func KeyHasSuffix

func KeyHasSuffix(v string) predicate.ChatOption

KeyHasSuffix applies the HasSuffix predicate on the "key" field.

func KeyIn

func KeyIn(vs ...string) predicate.ChatOption

KeyIn applies the In predicate on the "key" field.

func KeyLT

func KeyLT(v string) predicate.ChatOption

KeyLT applies the LT predicate on the "key" field.

func KeyLTE

func KeyLTE(v string) predicate.ChatOption

KeyLTE applies the LTE predicate on the "key" field.

func KeyNEQ

func KeyNEQ(v string) predicate.ChatOption

KeyNEQ applies the NEQ predicate on the "key" field.

func KeyNotIn

func KeyNotIn(vs ...string) predicate.ChatOption

KeyNotIn applies the NotIn predicate on the "key" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.ChatOption) predicate.ChatOption

Or groups predicates with the OR operator between them.

func UpdateAt

func UpdateAt(v time.Time) predicate.ChatOption

UpdateAt applies equality check predicate on the "update_at" field. It's identical to UpdateAtEQ.

func UpdateAtEQ

func UpdateAtEQ(v time.Time) predicate.ChatOption

UpdateAtEQ applies the EQ predicate on the "update_at" field.

func UpdateAtGT

func UpdateAtGT(v time.Time) predicate.ChatOption

UpdateAtGT applies the GT predicate on the "update_at" field.

func UpdateAtGTE

func UpdateAtGTE(v time.Time) predicate.ChatOption

UpdateAtGTE applies the GTE predicate on the "update_at" field.

func UpdateAtIn

func UpdateAtIn(vs ...time.Time) predicate.ChatOption

UpdateAtIn applies the In predicate on the "update_at" field.

func UpdateAtLT

func UpdateAtLT(v time.Time) predicate.ChatOption

UpdateAtLT applies the LT predicate on the "update_at" field.

func UpdateAtLTE

func UpdateAtLTE(v time.Time) predicate.ChatOption

UpdateAtLTE applies the LTE predicate on the "update_at" field.

func UpdateAtNEQ

func UpdateAtNEQ(v time.Time) predicate.ChatOption

UpdateAtNEQ applies the NEQ predicate on the "update_at" field.

func UpdateAtNotIn

func UpdateAtNotIn(vs ...time.Time) predicate.ChatOption

UpdateAtNotIn applies the NotIn predicate on the "update_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func Value

func Value(v string) predicate.ChatOption

Value applies equality check predicate on the "value" field. It's identical to ValueEQ.

func ValueContains

func ValueContains(v string) predicate.ChatOption

ValueContains applies the Contains predicate on the "value" field.

func ValueContainsFold

func ValueContainsFold(v string) predicate.ChatOption

ValueContainsFold applies the ContainsFold predicate on the "value" field.

func ValueEQ

func ValueEQ(v string) predicate.ChatOption

ValueEQ applies the EQ predicate on the "value" field.

func ValueEqualFold

func ValueEqualFold(v string) predicate.ChatOption

ValueEqualFold applies the EqualFold predicate on the "value" field.

func ValueGT

func ValueGT(v string) predicate.ChatOption

ValueGT applies the GT predicate on the "value" field.

func ValueGTE

func ValueGTE(v string) predicate.ChatOption

ValueGTE applies the GTE predicate on the "value" field.

func ValueHasPrefix

func ValueHasPrefix(v string) predicate.ChatOption

ValueHasPrefix applies the HasPrefix predicate on the "value" field.

func ValueHasSuffix

func ValueHasSuffix(v string) predicate.ChatOption

ValueHasSuffix applies the HasSuffix predicate on the "value" field.

func ValueIn

func ValueIn(vs ...string) predicate.ChatOption

ValueIn applies the In predicate on the "value" field.

func ValueLT

func ValueLT(v string) predicate.ChatOption

ValueLT applies the LT predicate on the "value" field.

func ValueLTE

func ValueLTE(v string) predicate.ChatOption

ValueLTE applies the LTE predicate on the "value" field.

func ValueNEQ

func ValueNEQ(v string) predicate.ChatOption

ValueNEQ applies the NEQ predicate on the "value" field.

func ValueNotIn

func ValueNotIn(vs ...string) predicate.ChatOption

ValueNotIn applies the NotIn predicate on the "value" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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