conversation

package
v1.26.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: CC0-1.0 Imports: 2 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"
	// FieldPageURL holds the string denoting the page_url field in the database.
	FieldPageURL = "page_url"
	// Table holds the table name of the conversation in the database.
	Table = "conversations"
)

Variables

View Source
var (
	// PageURLValidator is a validator for the "page_url" field. It is called by the builders before save.
	PageURLValidator func(string) error
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(string) error
)
View Source
var Columns = []string{
	FieldID,
	FieldPageURL,
}

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 ID

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Conversation

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Conversation

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Conversation

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Conversation

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Conversation

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Conversation

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Conversation

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Conversation

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Conversation

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) 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 PageURL

func PageURL(v string) predicate.Conversation

PageURL applies equality check predicate on the "page_url" field. It's identical to PageURLEQ.

func PageURLContains

func PageURLContains(v string) predicate.Conversation

PageURLContains applies the Contains predicate on the "page_url" field.

func PageURLContainsFold

func PageURLContainsFold(v string) predicate.Conversation

PageURLContainsFold applies the ContainsFold predicate on the "page_url" field.

func PageURLEQ

func PageURLEQ(v string) predicate.Conversation

PageURLEQ applies the EQ predicate on the "page_url" field.

func PageURLEqualFold

func PageURLEqualFold(v string) predicate.Conversation

PageURLEqualFold applies the EqualFold predicate on the "page_url" field.

func PageURLGT

func PageURLGT(v string) predicate.Conversation

PageURLGT applies the GT predicate on the "page_url" field.

func PageURLGTE

func PageURLGTE(v string) predicate.Conversation

PageURLGTE applies the GTE predicate on the "page_url" field.

func PageURLHasPrefix

func PageURLHasPrefix(v string) predicate.Conversation

PageURLHasPrefix applies the HasPrefix predicate on the "page_url" field.

func PageURLHasSuffix

func PageURLHasSuffix(v string) predicate.Conversation

PageURLHasSuffix applies the HasSuffix predicate on the "page_url" field.

func PageURLIn

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

PageURLIn applies the In predicate on the "page_url" field.

func PageURLLT

func PageURLLT(v string) predicate.Conversation

PageURLLT applies the LT predicate on the "page_url" field.

func PageURLLTE

func PageURLLTE(v string) predicate.Conversation

PageURLLTE applies the LTE predicate on the "page_url" field.

func PageURLNEQ

func PageURLNEQ(v string) predicate.Conversation

PageURLNEQ applies the NEQ predicate on the "page_url" field.

func PageURLNotIn

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

PageURLNotIn applies the NotIn predicate on the "page_url" 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 ByID

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

ByID orders the results by the id field.

func ByPageURL

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

ByPageURL orders the results by the page_url field.

Jump to

Keyboard shortcuts

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