synset

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 synset type in the database.
	Label = "synset"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldPartOfSpeech holds the string denoting the partofspeech field in the database.
	FieldPartOfSpeech = "part_of_speech"
	// EdgeDefinitions holds the string denoting the definitions edge name in mutations.
	EdgeDefinitions = "definitions"
	// EdgeSense holds the string denoting the sense edge name in mutations.
	EdgeSense = "sense"
	// EdgeRelFrom holds the string denoting the relfrom edge name in mutations.
	EdgeRelFrom = "relFrom"
	// EdgeRelTo holds the string denoting the relto edge name in mutations.
	EdgeRelTo = "relTo"
	// Table holds the table name of the synset in the database.
	Table = "synsets"
	// DefinitionsTable is the table that holds the definitions relation/edge.
	DefinitionsTable = "definitions"
	// DefinitionsInverseTable is the table name for the Definition entity.
	// It exists in this package in order to avoid circular dependency with the "definition" package.
	DefinitionsInverseTable = "definitions"
	// DefinitionsColumn is the table column denoting the definitions relation/edge.
	DefinitionsColumn = "synset_definitions"
	// SenseTable is the table that holds the sense relation/edge.
	SenseTable = "senses"
	// SenseInverseTable is the table name for the Sense entity.
	// It exists in this package in order to avoid circular dependency with the "sense" package.
	SenseInverseTable = "senses"
	// SenseColumn is the table column denoting the sense relation/edge.
	SenseColumn = "sense_synset"
	// RelFromTable is the table that holds the relFrom relation/edge.
	RelFromTable = "synset_relations"
	// RelFromInverseTable is the table name for the SynsetRelation entity.
	// It exists in this package in order to avoid circular dependency with the "synsetrelation" package.
	RelFromInverseTable = "synset_relations"
	// RelFromColumn is the table column denoting the relFrom relation/edge.
	RelFromColumn = "synset_relation_to"
	// RelToTable is the table that holds the relTo relation/edge.
	RelToTable = "synset_relations"
	// RelToInverseTable is the table name for the SynsetRelation entity.
	// It exists in this package in order to avoid circular dependency with the "synsetrelation" package.
	RelToInverseTable = "synset_relations"
	// RelToColumn is the table column denoting the relTo relation/edge.
	RelToColumn = "synset_relation_from"
)

Variables

View Source
var (
	// 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 synset fields.

Functions

func And

func And(predicates ...predicate.Synset) predicate.Synset

And groups predicates with the AND operator between them.

func HasDefinitions

func HasDefinitions() predicate.Synset

HasDefinitions applies the HasEdge predicate on the "definitions" edge.

func HasDefinitionsWith

func HasDefinitionsWith(preds ...predicate.Definition) predicate.Synset

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

func HasRelFrom

func HasRelFrom() predicate.Synset

HasRelFrom applies the HasEdge predicate on the "relFrom" edge.

func HasRelFromWith

func HasRelFromWith(preds ...predicate.SynsetRelation) predicate.Synset

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

func HasRelTo

func HasRelTo() predicate.Synset

HasRelTo applies the HasEdge predicate on the "relTo" edge.

func HasRelToWith

func HasRelToWith(preds ...predicate.SynsetRelation) predicate.Synset

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

func HasSense

func HasSense() predicate.Synset

HasSense applies the HasEdge predicate on the "sense" edge.

func HasSenseWith

func HasSenseWith(preds ...predicate.Sense) predicate.Synset

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

func ID

func ID(id string) predicate.Synset

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Synset

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Synset

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Synset

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Synset

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Synset

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Synset

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Synset

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Synset

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func PartOfSpeech

func PartOfSpeech(v string) predicate.Synset

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

func PartOfSpeechContains

func PartOfSpeechContains(v string) predicate.Synset

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

func PartOfSpeechContainsFold

func PartOfSpeechContainsFold(v string) predicate.Synset

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

func PartOfSpeechEQ

func PartOfSpeechEQ(v string) predicate.Synset

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

func PartOfSpeechEqualFold

func PartOfSpeechEqualFold(v string) predicate.Synset

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

func PartOfSpeechGT

func PartOfSpeechGT(v string) predicate.Synset

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

func PartOfSpeechGTE

func PartOfSpeechGTE(v string) predicate.Synset

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

func PartOfSpeechHasPrefix

func PartOfSpeechHasPrefix(v string) predicate.Synset

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

func PartOfSpeechHasSuffix

func PartOfSpeechHasSuffix(v string) predicate.Synset

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

func PartOfSpeechIn

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

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

func PartOfSpeechLT

func PartOfSpeechLT(v string) predicate.Synset

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

func PartOfSpeechLTE

func PartOfSpeechLTE(v string) predicate.Synset

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

func PartOfSpeechNEQ

func PartOfSpeechNEQ(v string) predicate.Synset

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

func PartOfSpeechNotIn

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

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Synset queries.

func ByDefinitions

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

ByDefinitions orders the results by definitions terms.

func ByDefinitionsCount

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

ByDefinitionsCount orders the results by definitions count.

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 ByRelFrom

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

ByRelFrom orders the results by relFrom terms.

func ByRelFromCount

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

ByRelFromCount orders the results by relFrom count.

func ByRelTo

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

ByRelTo orders the results by relTo terms.

func ByRelToCount

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

ByRelToCount orders the results by relTo count.

func BySense

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

BySense orders the results by sense terms.

func BySenseCount

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

BySenseCount orders the results by sense count.

Jump to

Keyboard shortcuts

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