dialog

package
v0.0.0-...-2de19fb Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the dialog type in the database.
	Label = "dialog"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// FieldUpdateTime holds the string denoting the update_time field in the database.
	FieldUpdateTime = "update_time"
	// FieldMeta holds the string denoting the meta field in the database.
	FieldMeta = "meta"

	// EdgeMessage holds the string denoting the message edge name in mutations.
	EdgeMessage = "message"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"

	// Table holds the table name of the dialog in the database.
	Table = "dialogs"
	// MessageTable is the table the holds the message relation/edge.
	MessageTable = "messages"
	// MessageInverseTable is the table name for the Message entity.
	// It exists in this package in order to avoid circular dependency with the "message" package.
	MessageInverseTable = "messages"
	// MessageColumn is the table column denoting the message relation/edge.
	MessageColumn = "dialog_message"
	// UserTable is the table the holds the user relation/edge.
	UserTable = "dialogs"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_dialog"
)

Variables

View Source
var (
	// DefaultCreateTime holds the default value on creation for the create_time field.
	DefaultCreateTime func() time.Time
	// DefaultUpdateTime holds the default value on creation for the update_time field.
	DefaultUpdateTime func() time.Time
	// UpdateDefaultUpdateTime holds the default value on update for the update_time field.
	UpdateDefaultUpdateTime func() time.Time
)

Columns holds all SQL columns for dialog fields.

View Source
var ForeignKeys = []string{
	"user_dialog",
}

ForeignKeys holds the SQL foreign-keys that are owned by the Dialog type.

Functions

func And

func And(predicates ...predicate.Dialog) predicate.Dialog

And groups list of predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.Dialog

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Dialog

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Dialog

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Dialog

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.Dialog

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Dialog

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Dialog

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Dialog

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.Dialog

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func HasMessage

func HasMessage() predicate.Dialog

HasMessage applies the HasEdge predicate on the "message" edge.

func HasMessageWith

func HasMessageWith(preds ...predicate.Message) predicate.Dialog

HasMessageWith applies the HasEdge predicate on the "message" edge with a given conditions (other predicates).

func HasUser

func HasUser() predicate.Dialog

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.Dialog

HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Dialog

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.Dialog

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Dialog

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Dialog

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Dialog

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Dialog

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Dialog

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Dialog

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Dialog

IDNotIn applies the NotIn predicate on the ID field.

func MetaIsNil

func MetaIsNil() predicate.Dialog

MetaIsNil applies the IsNil predicate on the "meta" field.

func MetaNotNil

func MetaNotNil() predicate.Dialog

MetaNotNil applies the NotNil predicate on the "meta" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Dialog) predicate.Dialog

Or groups list of predicates with the OR operator between them.

func UpdateTime

func UpdateTime(v time.Time) predicate.Dialog

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Dialog

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Dialog

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Dialog

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.Dialog

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Dialog

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Dialog

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Dialog

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.Dialog

UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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