Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Lemma) predicate.Lemma
- func HasSenses() predicate.Lemma
- func HasSensesWith(preds ...predicate.Sense) predicate.Lemma
- func ID(id string) predicate.Lemma
- func IDContainsFold(id string) predicate.Lemma
- func IDEQ(id string) predicate.Lemma
- func IDEqualFold(id string) predicate.Lemma
- func IDGT(id string) predicate.Lemma
- func IDGTE(id string) predicate.Lemma
- func IDIn(ids ...string) predicate.Lemma
- func IDLT(id string) predicate.Lemma
- func IDLTE(id string) predicate.Lemma
- func IDNEQ(id string) predicate.Lemma
- func IDNotIn(ids ...string) predicate.Lemma
- func Not(p predicate.Lemma) predicate.Lemma
- func Or(predicates ...predicate.Lemma) predicate.Lemma
- func PartOfSpeech(v string) predicate.Lemma
- func PartOfSpeechContains(v string) predicate.Lemma
- func PartOfSpeechContainsFold(v string) predicate.Lemma
- func PartOfSpeechEQ(v string) predicate.Lemma
- func PartOfSpeechEqualFold(v string) predicate.Lemma
- func PartOfSpeechGT(v string) predicate.Lemma
- func PartOfSpeechGTE(v string) predicate.Lemma
- func PartOfSpeechHasPrefix(v string) predicate.Lemma
- func PartOfSpeechHasSuffix(v string) predicate.Lemma
- func PartOfSpeechIn(vs ...string) predicate.Lemma
- func PartOfSpeechLT(v string) predicate.Lemma
- func PartOfSpeechLTE(v string) predicate.Lemma
- func PartOfSpeechNEQ(v string) predicate.Lemma
- func PartOfSpeechNotIn(vs ...string) predicate.Lemma
- func ValidColumn(column string) bool
- func WrittenForm(v string) predicate.Lemma
- func WrittenFormContains(v string) predicate.Lemma
- func WrittenFormContainsFold(v string) predicate.Lemma
- func WrittenFormEQ(v string) predicate.Lemma
- func WrittenFormEqualFold(v string) predicate.Lemma
- func WrittenFormGT(v string) predicate.Lemma
- func WrittenFormGTE(v string) predicate.Lemma
- func WrittenFormHasPrefix(v string) predicate.Lemma
- func WrittenFormHasSuffix(v string) predicate.Lemma
- func WrittenFormIn(vs ...string) predicate.Lemma
- func WrittenFormLT(v string) predicate.Lemma
- func WrittenFormLTE(v string) predicate.Lemma
- func WrittenFormNEQ(v string) predicate.Lemma
- func WrittenFormNotIn(vs ...string) predicate.Lemma
- type OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByPartOfSpeech(opts ...sql.OrderTermOption) OrderOption
- func BySenses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySensesCount(opts ...sql.OrderTermOption) OrderOption
- func ByWrittenForm(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldWrittenForm, FieldPartOfSpeech, }
Columns holds all SQL columns for lemma fields.
Functions ¶
func HasSensesWith ¶
HasSensesWith applies the HasEdge predicate on the "senses" edge with a given conditions (other predicates).
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func PartOfSpeech ¶
PartOfSpeech applies equality check predicate on the "partOfSpeech" field. It's identical to PartOfSpeechEQ.
func PartOfSpeechContains ¶
PartOfSpeechContains applies the Contains predicate on the "partOfSpeech" field.
func PartOfSpeechContainsFold ¶
PartOfSpeechContainsFold applies the ContainsFold predicate on the "partOfSpeech" field.
func PartOfSpeechEQ ¶
PartOfSpeechEQ applies the EQ predicate on the "partOfSpeech" field.
func PartOfSpeechEqualFold ¶
PartOfSpeechEqualFold applies the EqualFold predicate on the "partOfSpeech" field.
func PartOfSpeechGT ¶
PartOfSpeechGT applies the GT predicate on the "partOfSpeech" field.
func PartOfSpeechGTE ¶
PartOfSpeechGTE applies the GTE predicate on the "partOfSpeech" field.
func PartOfSpeechHasPrefix ¶
PartOfSpeechHasPrefix applies the HasPrefix predicate on the "partOfSpeech" field.
func PartOfSpeechHasSuffix ¶
PartOfSpeechHasSuffix applies the HasSuffix predicate on the "partOfSpeech" field.
func PartOfSpeechIn ¶
PartOfSpeechIn applies the In predicate on the "partOfSpeech" field.
func PartOfSpeechLT ¶
PartOfSpeechLT applies the LT predicate on the "partOfSpeech" field.
func PartOfSpeechLTE ¶
PartOfSpeechLTE applies the LTE predicate on the "partOfSpeech" field.
func PartOfSpeechNEQ ¶
PartOfSpeechNEQ applies the NEQ predicate on the "partOfSpeech" field.
func PartOfSpeechNotIn ¶
PartOfSpeechNotIn applies the NotIn predicate on the "partOfSpeech" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func WrittenForm ¶
WrittenForm applies equality check predicate on the "writtenForm" field. It's identical to WrittenFormEQ.
func WrittenFormContains ¶
WrittenFormContains applies the Contains predicate on the "writtenForm" field.
func WrittenFormContainsFold ¶
WrittenFormContainsFold applies the ContainsFold predicate on the "writtenForm" field.
func WrittenFormEQ ¶
WrittenFormEQ applies the EQ predicate on the "writtenForm" field.
func WrittenFormEqualFold ¶
WrittenFormEqualFold applies the EqualFold predicate on the "writtenForm" field.
func WrittenFormGT ¶
WrittenFormGT applies the GT predicate on the "writtenForm" field.
func WrittenFormGTE ¶
WrittenFormGTE applies the GTE predicate on the "writtenForm" field.
func WrittenFormHasPrefix ¶
WrittenFormHasPrefix applies the HasPrefix predicate on the "writtenForm" field.
func WrittenFormHasSuffix ¶
WrittenFormHasSuffix applies the HasSuffix predicate on the "writtenForm" field.
func WrittenFormIn ¶
WrittenFormIn applies the In predicate on the "writtenForm" field.
func WrittenFormLT ¶
WrittenFormLT applies the LT predicate on the "writtenForm" field.
func WrittenFormLTE ¶
WrittenFormLTE applies the LTE predicate on the "writtenForm" field.
func WrittenFormNEQ ¶
WrittenFormNEQ applies the NEQ predicate on the "writtenForm" field.
func WrittenFormNotIn ¶
WrittenFormNotIn applies the NotIn predicate on the "writtenForm" field.
Types ¶
type OrderOption ¶
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.