Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Synset) predicate.Synset
- func HasDefinitions() predicate.Synset
- func HasDefinitionsWith(preds ...predicate.Definition) predicate.Synset
- func HasRelFrom() predicate.Synset
- func HasRelFromWith(preds ...predicate.SynsetRelation) predicate.Synset
- func HasRelTo() predicate.Synset
- func HasRelToWith(preds ...predicate.SynsetRelation) predicate.Synset
- func HasSense() predicate.Synset
- func HasSenseWith(preds ...predicate.Sense) predicate.Synset
- func ID(id string) predicate.Synset
- func IDContainsFold(id string) predicate.Synset
- func IDEQ(id string) predicate.Synset
- func IDEqualFold(id string) predicate.Synset
- func IDGT(id string) predicate.Synset
- func IDGTE(id string) predicate.Synset
- func IDIn(ids ...string) predicate.Synset
- func IDLT(id string) predicate.Synset
- func IDLTE(id string) predicate.Synset
- func IDNEQ(id string) predicate.Synset
- func IDNotIn(ids ...string) predicate.Synset
- func Not(p predicate.Synset) predicate.Synset
- func Or(predicates ...predicate.Synset) predicate.Synset
- func PartOfSpeech(v string) predicate.Synset
- func PartOfSpeechContains(v string) predicate.Synset
- func PartOfSpeechContainsFold(v string) predicate.Synset
- func PartOfSpeechEQ(v string) predicate.Synset
- func PartOfSpeechEqualFold(v string) predicate.Synset
- func PartOfSpeechGT(v string) predicate.Synset
- func PartOfSpeechGTE(v string) predicate.Synset
- func PartOfSpeechHasPrefix(v string) predicate.Synset
- func PartOfSpeechHasSuffix(v string) predicate.Synset
- func PartOfSpeechIn(vs ...string) predicate.Synset
- func PartOfSpeechLT(v string) predicate.Synset
- func PartOfSpeechLTE(v string) predicate.Synset
- func PartOfSpeechNEQ(v string) predicate.Synset
- func PartOfSpeechNotIn(vs ...string) predicate.Synset
- func ValidColumn(column string) bool
- type OrderOption
- func ByDefinitions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByDefinitionsCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByPartOfSpeech(opts ...sql.OrderTermOption) OrderOption
- func ByRelFrom(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRelFromCount(opts ...sql.OrderTermOption) OrderOption
- func ByRelTo(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRelToCount(opts ...sql.OrderTermOption) OrderOption
- func BySense(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySenseCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldPartOfSpeech, }
Columns holds all SQL columns for synset fields.
Functions ¶
func HasDefinitions ¶
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 ¶
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 HasRelToWith ¶
func HasRelToWith(preds ...predicate.SynsetRelation) predicate.Synset
HasRelToWith applies the HasEdge predicate on the "relTo" edge with a given conditions (other predicates).
func HasSenseWith ¶
HasSenseWith applies the HasEdge predicate on the "sense" 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).
Types ¶
type OrderOption ¶
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.