conversation

package
v0.0.0-...-05e3429 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the conversation type in the database.
	Label = "conversation"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldTitle holds the string denoting the title field in the database.
	FieldTitle = "title"
	// FieldPersonOneID holds the string denoting the person_one_id field in the database.
	FieldPersonOneID = "person_one_id"
	// FieldPersonTwoID holds the string denoting the person_two_id field in the database.
	FieldPersonTwoID = "person_two_id"
	// EdgePersonOne holds the string denoting the person_one edge name in mutations.
	EdgePersonOne = "person_one"
	// EdgePersonTwo holds the string denoting the person_two edge name in mutations.
	EdgePersonTwo = "person_two"
	// Table holds the table name of the conversation in the database.
	Table = "conversations"
	// PersonOneTable is the table that holds the person_one relation/edge.
	PersonOneTable = "conversations"
	// PersonOneInverseTable is the table name for the Person entity.
	// It exists in this package in order to avoid circular dependency with the "person" package.
	PersonOneInverseTable = "persons"
	// PersonOneColumn is the table column denoting the person_one relation/edge.
	PersonOneColumn = "person_one_id"
	// PersonTwoTable is the table that holds the person_two relation/edge.
	PersonTwoTable = "conversations"
	// PersonTwoInverseTable is the table name for the Person entity.
	// It exists in this package in order to avoid circular dependency with the "person" package.
	PersonTwoInverseTable = "persons"
	// PersonTwoColumn is the table column denoting the person_two relation/edge.
	PersonTwoColumn = "person_two_id"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for conversation fields.

Functions

func And

func And(predicates ...predicate.Conversation) predicate.Conversation

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Conversation

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Conversation

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Conversation

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Conversation

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Conversation

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Conversation

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Conversation

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Conversation

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Conversation

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func HasPersonOne

func HasPersonOne() predicate.Conversation

HasPersonOne applies the HasEdge predicate on the "person_one" edge.

func HasPersonOneWith

func HasPersonOneWith(preds ...predicate.Person) predicate.Conversation

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

func HasPersonTwo

func HasPersonTwo() predicate.Conversation

HasPersonTwo applies the HasEdge predicate on the "person_two" edge.

func HasPersonTwoWith

func HasPersonTwoWith(preds ...predicate.Person) predicate.Conversation

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Conversation

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Conversation

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Conversation

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Conversation

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Conversation

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Conversation) predicate.Conversation

Or groups predicates with the OR operator between them.

func PersonOneID

func PersonOneID(v uuid.UUID) predicate.Conversation

PersonOneID applies equality check predicate on the "person_one_id" field. It's identical to PersonOneIDEQ.

func PersonOneIDEQ

func PersonOneIDEQ(v uuid.UUID) predicate.Conversation

PersonOneIDEQ applies the EQ predicate on the "person_one_id" field.

func PersonOneIDIn

func PersonOneIDIn(vs ...uuid.UUID) predicate.Conversation

PersonOneIDIn applies the In predicate on the "person_one_id" field.

func PersonOneIDNEQ

func PersonOneIDNEQ(v uuid.UUID) predicate.Conversation

PersonOneIDNEQ applies the NEQ predicate on the "person_one_id" field.

func PersonOneIDNotIn

func PersonOneIDNotIn(vs ...uuid.UUID) predicate.Conversation

PersonOneIDNotIn applies the NotIn predicate on the "person_one_id" field.

func PersonTwoID

func PersonTwoID(v uuid.UUID) predicate.Conversation

PersonTwoID applies equality check predicate on the "person_two_id" field. It's identical to PersonTwoIDEQ.

func PersonTwoIDEQ

func PersonTwoIDEQ(v uuid.UUID) predicate.Conversation

PersonTwoIDEQ applies the EQ predicate on the "person_two_id" field.

func PersonTwoIDIn

func PersonTwoIDIn(vs ...uuid.UUID) predicate.Conversation

PersonTwoIDIn applies the In predicate on the "person_two_id" field.

func PersonTwoIDNEQ

func PersonTwoIDNEQ(v uuid.UUID) predicate.Conversation

PersonTwoIDNEQ applies the NEQ predicate on the "person_two_id" field.

func PersonTwoIDNotIn

func PersonTwoIDNotIn(vs ...uuid.UUID) predicate.Conversation

PersonTwoIDNotIn applies the NotIn predicate on the "person_two_id" field.

func Title

func Title(v string) predicate.Conversation

Title applies equality check predicate on the "title" field. It's identical to TitleEQ.

func TitleContains

func TitleContains(v string) predicate.Conversation

TitleContains applies the Contains predicate on the "title" field.

func TitleContainsFold

func TitleContainsFold(v string) predicate.Conversation

TitleContainsFold applies the ContainsFold predicate on the "title" field.

func TitleEQ

func TitleEQ(v string) predicate.Conversation

TitleEQ applies the EQ predicate on the "title" field.

func TitleEqualFold

func TitleEqualFold(v string) predicate.Conversation

TitleEqualFold applies the EqualFold predicate on the "title" field.

func TitleGT

func TitleGT(v string) predicate.Conversation

TitleGT applies the GT predicate on the "title" field.

func TitleGTE

func TitleGTE(v string) predicate.Conversation

TitleGTE applies the GTE predicate on the "title" field.

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.Conversation

TitleHasPrefix applies the HasPrefix predicate on the "title" field.

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.Conversation

TitleHasSuffix applies the HasSuffix predicate on the "title" field.

func TitleIn

func TitleIn(vs ...string) predicate.Conversation

TitleIn applies the In predicate on the "title" field.

func TitleIsNil

func TitleIsNil() predicate.Conversation

TitleIsNil applies the IsNil predicate on the "title" field.

func TitleLT

func TitleLT(v string) predicate.Conversation

TitleLT applies the LT predicate on the "title" field.

func TitleLTE

func TitleLTE(v string) predicate.Conversation

TitleLTE applies the LTE predicate on the "title" field.

func TitleNEQ

func TitleNEQ(v string) predicate.Conversation

TitleNEQ applies the NEQ predicate on the "title" field.

func TitleNotIn

func TitleNotIn(vs ...string) predicate.Conversation

TitleNotIn applies the NotIn predicate on the "title" field.

func TitleNotNil

func TitleNotNil() predicate.Conversation

TitleNotNil applies the NotNil predicate on the "title" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Conversation

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Conversation

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Conversation

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Conversation

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Conversation

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Conversation

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Conversation

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Conversation

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Conversation

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Conversation queries.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByPersonOneField

func ByPersonOneField(field string, opts ...sql.OrderTermOption) OrderOption

ByPersonOneField orders the results by person_one field.

func ByPersonOneID

func ByPersonOneID(opts ...sql.OrderTermOption) OrderOption

ByPersonOneID orders the results by the person_one_id field.

func ByPersonTwoField

func ByPersonTwoField(field string, opts ...sql.OrderTermOption) OrderOption

ByPersonTwoField orders the results by person_two field.

func ByPersonTwoID

func ByPersonTwoID(opts ...sql.OrderTermOption) OrderOption

ByPersonTwoID orders the results by the person_two_id field.

func ByTitle

func ByTitle(opts ...sql.OrderTermOption) OrderOption

ByTitle orders the results by the title field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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