Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Sense) predicate.Sense
- func HasLemma() predicate.Sense
- func HasLemmaWith(preds ...predicate.Lemma) predicate.Sense
- func HasRelFrom() predicate.Sense
- func HasRelFromWith(preds ...predicate.SenseRelation) predicate.Sense
- func HasRelTo() predicate.Sense
- func HasRelToWith(preds ...predicate.SenseRelation) predicate.Sense
- func HasSynset() predicate.Sense
- func HasSynsetWith(preds ...predicate.Synset) predicate.Sense
- func ID(id string) predicate.Sense
- func IDContainsFold(id string) predicate.Sense
- func IDEQ(id string) predicate.Sense
- func IDEqualFold(id string) predicate.Sense
- func IDGT(id string) predicate.Sense
- func IDGTE(id string) predicate.Sense
- func IDIn(ids ...string) predicate.Sense
- func IDLT(id string) predicate.Sense
- func IDLTE(id string) predicate.Sense
- func IDNEQ(id string) predicate.Sense
- func IDNotIn(ids ...string) predicate.Sense
- func Not(p predicate.Sense) predicate.Sense
- func Or(predicates ...predicate.Sense) predicate.Sense
- func ValidColumn(column string) bool
- type OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLemmaField(field string, 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 BySynsetField(field string, opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the sense type in the database. Label = "sense" // FieldID holds the string denoting the id field in the database. FieldID = "id" // EdgeSynset holds the string denoting the synset edge name in mutations. EdgeSynset = "synset" // EdgeLemma holds the string denoting the lemma edge name in mutations. EdgeLemma = "lemma" // 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 sense in the database. Table = "senses" // SynsetTable is the table that holds the synset relation/edge. SynsetTable = "senses" // SynsetInverseTable is the table name for the Synset entity. // It exists in this package in order to avoid circular dependency with the "synset" package. SynsetInverseTable = "synsets" // SynsetColumn is the table column denoting the synset relation/edge. SynsetColumn = "sense_synset" // LemmaTable is the table that holds the lemma relation/edge. LemmaTable = "senses" // LemmaInverseTable is the table name for the Lemma entity. // It exists in this package in order to avoid circular dependency with the "lemma" package. LemmaInverseTable = "lemmas" // LemmaColumn is the table column denoting the lemma relation/edge. LemmaColumn = "sense_lemma" // RelFromTable is the table that holds the relFrom relation/edge. RelFromTable = "sense_relations" // RelFromInverseTable is the table name for the SenseRelation entity. // It exists in this package in order to avoid circular dependency with the "senserelation" package. RelFromInverseTable = "sense_relations" // RelFromColumn is the table column denoting the relFrom relation/edge. RelFromColumn = "sense_relation_to" // RelToTable is the table that holds the relTo relation/edge. RelToTable = "sense_relations" // RelToInverseTable is the table name for the SenseRelation entity. // It exists in this package in order to avoid circular dependency with the "senserelation" package. RelToInverseTable = "sense_relations" // RelToColumn is the table column denoting the relTo relation/edge. RelToColumn = "sense_relation_from" )
Variables ¶
var Columns = []string{ FieldID, }
Columns holds all SQL columns for sense fields.
var ForeignKeys = []string{
"sense_synset",
"sense_lemma",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "senses" table and are not defined as standalone fields in the schema.
var ( // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )
Functions ¶
func HasLemmaWith ¶
HasLemmaWith applies the HasEdge predicate on the "lemma" edge with a given conditions (other predicates).
func HasRelFrom ¶
HasRelFrom applies the HasEdge predicate on the "relFrom" edge.
func HasRelFromWith ¶
func HasRelFromWith(preds ...predicate.SenseRelation) predicate.Sense
HasRelFromWith applies the HasEdge predicate on the "relFrom" edge with a given conditions (other predicates).
func HasRelToWith ¶
func HasRelToWith(preds ...predicate.SenseRelation) predicate.Sense
HasRelToWith applies the HasEdge predicate on the "relTo" edge with a given conditions (other predicates).
func HasSynsetWith ¶
HasSynsetWith applies the HasEdge predicate on the "synset" 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Sense queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLemmaField ¶
func ByLemmaField(field string, opts ...sql.OrderTermOption) OrderOption
ByLemmaField orders the results by lemma 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 BySynsetField ¶
func BySynsetField(field string, opts ...sql.OrderTermOption) OrderOption
BySynsetField orders the results by synset field.