synsetrelation

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

View Source
var Columns = []string{
	FieldID,
	FieldRelType,
}

Columns holds all SQL columns for synsetrelation fields.

View Source
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.

View Source
var (
	// RelTypeValidator is a validator for the "relType" field. It is called by the builders before save.
	RelTypeValidator func(string) error
)

Functions

func And

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 ID

ID filters vertices based on their ID field.

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

Not applies the not operator on the given predicate.

func Or

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

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

Jump to

Keyboard shortcuts

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