echo

package
v0.0.0-...-a7b145a Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the echo type in the database.
	Label = "echo"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldMessage holds the string denoting the message field in the database.
	FieldMessage = "message"
	// FieldEchoMessage holds the string denoting the echo_message field in the database.
	FieldEchoMessage = "echo_message"
	// FieldDeleted holds the string denoting the deleted field in the database.
	FieldDeleted = "deleted"
	// 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"
	// FieldDeleteTime holds the string denoting the delete_time field in the database.
	FieldDeleteTime = "delete_time"
	// Table holds the table name of the echo in the database.
	Table = "echos"
)

Variables

View Source
var (
	// MessageValidator is a validator for the "message" field. It is called by the builders before save.
	MessageValidator func(string) error
	// DefaultDeleted holds the default value on creation for the "deleted" field.
	DefaultDeleted bool
	// DefaultCreateTime holds the default value on creation for the "create_time" field.
	DefaultCreateTime func() time.Time
)

Columns holds all SQL columns for echo fields.

Functions

func And

func And(predicates ...predicate.Echo) predicate.Echo

And groups predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.Echo

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

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Echo

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

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Echo

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

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Echo

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

func CreateTimeIn

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

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

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Echo

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

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Echo

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

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Echo

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

func CreateTimeNotIn

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

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

func DeleteTime

func DeleteTime(v time.Time) predicate.Echo

DeleteTime applies equality check predicate on the "delete_time" field. It's identical to DeleteTimeEQ.

func DeleteTimeEQ

func DeleteTimeEQ(v time.Time) predicate.Echo

DeleteTimeEQ applies the EQ predicate on the "delete_time" field.

func DeleteTimeGT

func DeleteTimeGT(v time.Time) predicate.Echo

DeleteTimeGT applies the GT predicate on the "delete_time" field.

func DeleteTimeGTE

func DeleteTimeGTE(v time.Time) predicate.Echo

DeleteTimeGTE applies the GTE predicate on the "delete_time" field.

func DeleteTimeIn

func DeleteTimeIn(vs ...time.Time) predicate.Echo

DeleteTimeIn applies the In predicate on the "delete_time" field.

func DeleteTimeIsNil

func DeleteTimeIsNil() predicate.Echo

DeleteTimeIsNil applies the IsNil predicate on the "delete_time" field.

func DeleteTimeLT

func DeleteTimeLT(v time.Time) predicate.Echo

DeleteTimeLT applies the LT predicate on the "delete_time" field.

func DeleteTimeLTE

func DeleteTimeLTE(v time.Time) predicate.Echo

DeleteTimeLTE applies the LTE predicate on the "delete_time" field.

func DeleteTimeNEQ

func DeleteTimeNEQ(v time.Time) predicate.Echo

DeleteTimeNEQ applies the NEQ predicate on the "delete_time" field.

func DeleteTimeNotIn

func DeleteTimeNotIn(vs ...time.Time) predicate.Echo

DeleteTimeNotIn applies the NotIn predicate on the "delete_time" field.

func DeleteTimeNotNil

func DeleteTimeNotNil() predicate.Echo

DeleteTimeNotNil applies the NotNil predicate on the "delete_time" field.

func Deleted

func Deleted(v bool) predicate.Echo

Deleted applies equality check predicate on the "deleted" field. It's identical to DeletedEQ.

func DeletedEQ

func DeletedEQ(v bool) predicate.Echo

DeletedEQ applies the EQ predicate on the "deleted" field.

func DeletedNEQ

func DeletedNEQ(v bool) predicate.Echo

DeletedNEQ applies the NEQ predicate on the "deleted" field.

func EchoMessage

func EchoMessage(v string) predicate.Echo

EchoMessage applies equality check predicate on the "echo_message" field. It's identical to EchoMessageEQ.

func EchoMessageContains

func EchoMessageContains(v string) predicate.Echo

EchoMessageContains applies the Contains predicate on the "echo_message" field.

func EchoMessageContainsFold

func EchoMessageContainsFold(v string) predicate.Echo

EchoMessageContainsFold applies the ContainsFold predicate on the "echo_message" field.

func EchoMessageEQ

func EchoMessageEQ(v string) predicate.Echo

EchoMessageEQ applies the EQ predicate on the "echo_message" field.

func EchoMessageEqualFold

func EchoMessageEqualFold(v string) predicate.Echo

EchoMessageEqualFold applies the EqualFold predicate on the "echo_message" field.

func EchoMessageGT

func EchoMessageGT(v string) predicate.Echo

EchoMessageGT applies the GT predicate on the "echo_message" field.

func EchoMessageGTE

func EchoMessageGTE(v string) predicate.Echo

EchoMessageGTE applies the GTE predicate on the "echo_message" field.

func EchoMessageHasPrefix

func EchoMessageHasPrefix(v string) predicate.Echo

EchoMessageHasPrefix applies the HasPrefix predicate on the "echo_message" field.

func EchoMessageHasSuffix

func EchoMessageHasSuffix(v string) predicate.Echo

EchoMessageHasSuffix applies the HasSuffix predicate on the "echo_message" field.

func EchoMessageIn

func EchoMessageIn(vs ...string) predicate.Echo

EchoMessageIn applies the In predicate on the "echo_message" field.

func EchoMessageLT

func EchoMessageLT(v string) predicate.Echo

EchoMessageLT applies the LT predicate on the "echo_message" field.

func EchoMessageLTE

func EchoMessageLTE(v string) predicate.Echo

EchoMessageLTE applies the LTE predicate on the "echo_message" field.

func EchoMessageNEQ

func EchoMessageNEQ(v string) predicate.Echo

EchoMessageNEQ applies the NEQ predicate on the "echo_message" field.

func EchoMessageNotIn

func EchoMessageNotIn(vs ...string) predicate.Echo

EchoMessageNotIn applies the NotIn predicate on the "echo_message" field.

func ID

func ID(id int) predicate.Echo

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Echo

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Echo

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Echo

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Echo

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Echo

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Echo

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Message

func Message(v string) predicate.Echo

Message applies equality check predicate on the "message" field. It's identical to MessageEQ.

func MessageContains

func MessageContains(v string) predicate.Echo

MessageContains applies the Contains predicate on the "message" field.

func MessageContainsFold

func MessageContainsFold(v string) predicate.Echo

MessageContainsFold applies the ContainsFold predicate on the "message" field.

func MessageEQ

func MessageEQ(v string) predicate.Echo

MessageEQ applies the EQ predicate on the "message" field.

func MessageEqualFold

func MessageEqualFold(v string) predicate.Echo

MessageEqualFold applies the EqualFold predicate on the "message" field.

func MessageGT

func MessageGT(v string) predicate.Echo

MessageGT applies the GT predicate on the "message" field.

func MessageGTE

func MessageGTE(v string) predicate.Echo

MessageGTE applies the GTE predicate on the "message" field.

func MessageHasPrefix

func MessageHasPrefix(v string) predicate.Echo

MessageHasPrefix applies the HasPrefix predicate on the "message" field.

func MessageHasSuffix

func MessageHasSuffix(v string) predicate.Echo

MessageHasSuffix applies the HasSuffix predicate on the "message" field.

func MessageIn

func MessageIn(vs ...string) predicate.Echo

MessageIn applies the In predicate on the "message" field.

func MessageLT

func MessageLT(v string) predicate.Echo

MessageLT applies the LT predicate on the "message" field.

func MessageLTE

func MessageLTE(v string) predicate.Echo

MessageLTE applies the LTE predicate on the "message" field.

func MessageNEQ

func MessageNEQ(v string) predicate.Echo

MessageNEQ applies the NEQ predicate on the "message" field.

func MessageNotIn

func MessageNotIn(vs ...string) predicate.Echo

MessageNotIn applies the NotIn predicate on the "message" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Echo) predicate.Echo

Or groups predicates with the OR operator between them.

func UpdateTime

func UpdateTime(v time.Time) predicate.Echo

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

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Echo

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

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Echo

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

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Echo

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

func UpdateTimeIn

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

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

func UpdateTimeIsNil

func UpdateTimeIsNil() predicate.Echo

UpdateTimeIsNil applies the IsNil predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Echo

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

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Echo

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

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Echo

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

func UpdateTimeNotIn

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

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

func UpdateTimeNotNil

func UpdateTimeNotNil() predicate.Echo

UpdateTimeNotNil applies the NotNil predicate on the "update_time" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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