lemma

package
v0.0.0-...-192b5dc Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the lemma type in the database.
	Label = "lemma"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldWrittenForm holds the string denoting the writtenform field in the database.
	FieldWrittenForm = "written_form"
	// FieldPartOfSpeech holds the string denoting the partofspeech field in the database.
	FieldPartOfSpeech = "part_of_speech"
	// EdgeSenses holds the string denoting the senses edge name in mutations.
	EdgeSenses = "senses"
	// Table holds the table name of the lemma in the database.
	Table = "lemmas"
	// SensesTable is the table that holds the senses relation/edge.
	SensesTable = "senses"
	// SensesInverseTable is the table name for the Sense entity.
	// It exists in this package in order to avoid circular dependency with the "sense" package.
	SensesInverseTable = "senses"
	// SensesColumn is the table column denoting the senses relation/edge.
	SensesColumn = "sense_lemma"
)

Variables

View Source
var (
	// WrittenFormValidator is a validator for the "writtenForm" field. It is called by the builders before save.
	WrittenFormValidator func(string) error
	// PartOfSpeechValidator is a validator for the "partOfSpeech" field. It is called by the builders before save.
	PartOfSpeechValidator func(string) error
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(string) error
)

Columns holds all SQL columns for lemma fields.

Functions

func And

func And(predicates ...predicate.Lemma) predicate.Lemma

And groups predicates with the AND operator between them.

func HasSenses

func HasSenses() predicate.Lemma

HasSenses applies the HasEdge predicate on the "senses" edge.

func HasSensesWith

func HasSensesWith(preds ...predicate.Sense) predicate.Lemma

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

func ID

func ID(id string) predicate.Lemma

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Lemma

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Lemma

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Lemma

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Lemma

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Lemma

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Lemma

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Lemma

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Lemma

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Lemma

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.Lemma) predicate.Lemma

Or groups predicates with the OR operator between them.

func PartOfSpeech

func PartOfSpeech(v string) predicate.Lemma

PartOfSpeech applies equality check predicate on the "partOfSpeech" field. It's identical to PartOfSpeechEQ.

func PartOfSpeechContains

func PartOfSpeechContains(v string) predicate.Lemma

PartOfSpeechContains applies the Contains predicate on the "partOfSpeech" field.

func PartOfSpeechContainsFold

func PartOfSpeechContainsFold(v string) predicate.Lemma

PartOfSpeechContainsFold applies the ContainsFold predicate on the "partOfSpeech" field.

func PartOfSpeechEQ

func PartOfSpeechEQ(v string) predicate.Lemma

PartOfSpeechEQ applies the EQ predicate on the "partOfSpeech" field.

func PartOfSpeechEqualFold

func PartOfSpeechEqualFold(v string) predicate.Lemma

PartOfSpeechEqualFold applies the EqualFold predicate on the "partOfSpeech" field.

func PartOfSpeechGT

func PartOfSpeechGT(v string) predicate.Lemma

PartOfSpeechGT applies the GT predicate on the "partOfSpeech" field.

func PartOfSpeechGTE

func PartOfSpeechGTE(v string) predicate.Lemma

PartOfSpeechGTE applies the GTE predicate on the "partOfSpeech" field.

func PartOfSpeechHasPrefix

func PartOfSpeechHasPrefix(v string) predicate.Lemma

PartOfSpeechHasPrefix applies the HasPrefix predicate on the "partOfSpeech" field.

func PartOfSpeechHasSuffix

func PartOfSpeechHasSuffix(v string) predicate.Lemma

PartOfSpeechHasSuffix applies the HasSuffix predicate on the "partOfSpeech" field.

func PartOfSpeechIn

func PartOfSpeechIn(vs ...string) predicate.Lemma

PartOfSpeechIn applies the In predicate on the "partOfSpeech" field.

func PartOfSpeechLT

func PartOfSpeechLT(v string) predicate.Lemma

PartOfSpeechLT applies the LT predicate on the "partOfSpeech" field.

func PartOfSpeechLTE

func PartOfSpeechLTE(v string) predicate.Lemma

PartOfSpeechLTE applies the LTE predicate on the "partOfSpeech" field.

func PartOfSpeechNEQ

func PartOfSpeechNEQ(v string) predicate.Lemma

PartOfSpeechNEQ applies the NEQ predicate on the "partOfSpeech" field.

func PartOfSpeechNotIn

func PartOfSpeechNotIn(vs ...string) predicate.Lemma

PartOfSpeechNotIn applies the NotIn predicate on the "partOfSpeech" field.

func ValidColumn

func ValidColumn(column string) bool

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

func WrittenForm

func WrittenForm(v string) predicate.Lemma

WrittenForm applies equality check predicate on the "writtenForm" field. It's identical to WrittenFormEQ.

func WrittenFormContains

func WrittenFormContains(v string) predicate.Lemma

WrittenFormContains applies the Contains predicate on the "writtenForm" field.

func WrittenFormContainsFold

func WrittenFormContainsFold(v string) predicate.Lemma

WrittenFormContainsFold applies the ContainsFold predicate on the "writtenForm" field.

func WrittenFormEQ

func WrittenFormEQ(v string) predicate.Lemma

WrittenFormEQ applies the EQ predicate on the "writtenForm" field.

func WrittenFormEqualFold

func WrittenFormEqualFold(v string) predicate.Lemma

WrittenFormEqualFold applies the EqualFold predicate on the "writtenForm" field.

func WrittenFormGT

func WrittenFormGT(v string) predicate.Lemma

WrittenFormGT applies the GT predicate on the "writtenForm" field.

func WrittenFormGTE

func WrittenFormGTE(v string) predicate.Lemma

WrittenFormGTE applies the GTE predicate on the "writtenForm" field.

func WrittenFormHasPrefix

func WrittenFormHasPrefix(v string) predicate.Lemma

WrittenFormHasPrefix applies the HasPrefix predicate on the "writtenForm" field.

func WrittenFormHasSuffix

func WrittenFormHasSuffix(v string) predicate.Lemma

WrittenFormHasSuffix applies the HasSuffix predicate on the "writtenForm" field.

func WrittenFormIn

func WrittenFormIn(vs ...string) predicate.Lemma

WrittenFormIn applies the In predicate on the "writtenForm" field.

func WrittenFormLT

func WrittenFormLT(v string) predicate.Lemma

WrittenFormLT applies the LT predicate on the "writtenForm" field.

func WrittenFormLTE

func WrittenFormLTE(v string) predicate.Lemma

WrittenFormLTE applies the LTE predicate on the "writtenForm" field.

func WrittenFormNEQ

func WrittenFormNEQ(v string) predicate.Lemma

WrittenFormNEQ applies the NEQ predicate on the "writtenForm" field.

func WrittenFormNotIn

func WrittenFormNotIn(vs ...string) predicate.Lemma

WrittenFormNotIn applies the NotIn predicate on the "writtenForm" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Lemma queries.

func ByID

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

ByID orders the results by the id field.

func ByPartOfSpeech

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

ByPartOfSpeech orders the results by the partOfSpeech field.

func BySenses

func BySenses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

BySenses orders the results by senses terms.

func BySensesCount

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

BySensesCount orders the results by senses count.

func ByWrittenForm

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

ByWrittenForm orders the results by the writtenForm field.

Jump to

Keyboard shortcuts

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