Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.SynsetRelation) predicate.SynsetRelation
- func HasFrom() predicate.SynsetRelation
- func HasFromWith(preds ...predicate.Synset) predicate.SynsetRelation
- func HasTo() predicate.SynsetRelation
- func HasToWith(preds ...predicate.Synset) predicate.SynsetRelation
- func ID(id int) predicate.SynsetRelation
- func IDEQ(id int) predicate.SynsetRelation
- func IDGT(id int) predicate.SynsetRelation
- func IDGTE(id int) predicate.SynsetRelation
- func IDIn(ids ...int) predicate.SynsetRelation
- func IDLT(id int) predicate.SynsetRelation
- func IDLTE(id int) predicate.SynsetRelation
- func IDNEQ(id int) predicate.SynsetRelation
- func IDNotIn(ids ...int) predicate.SynsetRelation
- func Not(p predicate.SynsetRelation) predicate.SynsetRelation
- func Or(predicates ...predicate.SynsetRelation) predicate.SynsetRelation
- func RelType(v string) predicate.SynsetRelation
- func RelTypeContains(v string) predicate.SynsetRelation
- func RelTypeContainsFold(v string) predicate.SynsetRelation
- func RelTypeEQ(v string) predicate.SynsetRelation
- func RelTypeEqualFold(v string) predicate.SynsetRelation
- func RelTypeGT(v string) predicate.SynsetRelation
- func RelTypeGTE(v string) predicate.SynsetRelation
- func RelTypeHasPrefix(v string) predicate.SynsetRelation
- func RelTypeHasSuffix(v string) predicate.SynsetRelation
- func RelTypeIn(vs ...string) predicate.SynsetRelation
- func RelTypeLT(v string) predicate.SynsetRelation
- func RelTypeLTE(v string) predicate.SynsetRelation
- func RelTypeNEQ(v string) predicate.SynsetRelation
- func RelTypeNotIn(vs ...string) predicate.SynsetRelation
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the synsetrelation type in the database. Label = "synset_relation" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldRelType holds the string denoting the reltype field in the database. FieldRelType = "rel_type" // EdgeFrom holds the string denoting the from edge name in mutations. EdgeFrom = "from" // EdgeTo holds the string denoting the to edge name in mutations. EdgeTo = "to" // Table holds the table name of the synsetrelation in the database. Table = "synset_relations" // FromTable is the table that holds the from relation/edge. FromTable = "synset_relations" // FromInverseTable is the table name for the Synset entity. // It exists in this package in order to avoid circular dependency with the "synset" package. FromInverseTable = "synsets" // FromColumn is the table column denoting the from relation/edge. FromColumn = "synset_relation_from" // ToTable is the table that holds the to relation/edge. ToTable = "synset_relations" // ToInverseTable is the table name for the Synset entity. // It exists in this package in order to avoid circular dependency with the "synset" package. ToInverseTable = "synsets" // ToColumn is the table column denoting the to relation/edge. ToColumn = "synset_relation_to" )
Variables ¶
var Columns = []string{ FieldID, FieldRelType, }
Columns holds all SQL columns for synsetrelation fields.
var ForeignKeys = []string{
"synset_relation_from",
"synset_relation_to",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "synset_relations" table and are not defined as standalone fields in the schema.
var ( // RelTypeValidator is a validator for the "relType" field. It is called by the builders before save. RelTypeValidator func(string) error )
Functions ¶
func And ¶
func And(predicates ...predicate.SynsetRelation) predicate.SynsetRelation
And groups predicates with the AND operator between them.
func HasFrom ¶
func HasFrom() predicate.SynsetRelation
HasFrom applies the HasEdge predicate on the "from" edge.
func HasFromWith ¶
func HasFromWith(preds ...predicate.Synset) predicate.SynsetRelation
HasFromWith applies the HasEdge predicate on the "from" edge with a given conditions (other predicates).
func HasTo ¶
func HasTo() predicate.SynsetRelation
HasTo applies the HasEdge predicate on the "to" edge.
func HasToWith ¶
func HasToWith(preds ...predicate.Synset) predicate.SynsetRelation
HasToWith applies the HasEdge predicate on the "to" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.SynsetRelation
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.SynsetRelation
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.SynsetRelation
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.SynsetRelation
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.SynsetRelation
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.SynsetRelation
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.SynsetRelation
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.SynsetRelation
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.SynsetRelation) predicate.SynsetRelation
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.SynsetRelation) predicate.SynsetRelation
Or groups predicates with the OR operator between them.
func RelType ¶
func RelType(v string) predicate.SynsetRelation
RelType applies equality check predicate on the "relType" field. It's identical to RelTypeEQ.
func RelTypeContains ¶
func RelTypeContains(v string) predicate.SynsetRelation
RelTypeContains applies the Contains predicate on the "relType" field.
func RelTypeContainsFold ¶
func RelTypeContainsFold(v string) predicate.SynsetRelation
RelTypeContainsFold applies the ContainsFold predicate on the "relType" field.
func RelTypeEQ ¶
func RelTypeEQ(v string) predicate.SynsetRelation
RelTypeEQ applies the EQ predicate on the "relType" field.
func RelTypeEqualFold ¶
func RelTypeEqualFold(v string) predicate.SynsetRelation
RelTypeEqualFold applies the EqualFold predicate on the "relType" field.
func RelTypeGT ¶
func RelTypeGT(v string) predicate.SynsetRelation
RelTypeGT applies the GT predicate on the "relType" field.
func RelTypeGTE ¶
func RelTypeGTE(v string) predicate.SynsetRelation
RelTypeGTE applies the GTE predicate on the "relType" field.
func RelTypeHasPrefix ¶
func RelTypeHasPrefix(v string) predicate.SynsetRelation
RelTypeHasPrefix applies the HasPrefix predicate on the "relType" field.
func RelTypeHasSuffix ¶
func RelTypeHasSuffix(v string) predicate.SynsetRelation
RelTypeHasSuffix applies the HasSuffix predicate on the "relType" field.
func RelTypeIn ¶
func RelTypeIn(vs ...string) predicate.SynsetRelation
RelTypeIn applies the In predicate on the "relType" field.
func RelTypeLT ¶
func RelTypeLT(v string) predicate.SynsetRelation
RelTypeLT applies the LT predicate on the "relType" field.
func RelTypeLTE ¶
func RelTypeLTE(v string) predicate.SynsetRelation
RelTypeLTE applies the LTE predicate on the "relType" field.
func RelTypeNEQ ¶
func RelTypeNEQ(v string) predicate.SynsetRelation
RelTypeNEQ applies the NEQ predicate on the "relType" field.
func RelTypeNotIn ¶
func RelTypeNotIn(vs ...string) predicate.SynsetRelation
RelTypeNotIn applies the NotIn predicate on the "relType" 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 SynsetRelation queries.
func ByFromField ¶
func ByFromField(field string, opts ...sql.OrderTermOption) OrderOption
ByFromField orders the results by from field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByRelType ¶
func ByRelType(opts ...sql.OrderTermOption) OrderOption
ByRelType orders the results by the relType field.
func ByToField ¶
func ByToField(field string, opts ...sql.OrderTermOption) OrderOption
ByToField orders the results by to field.