senserelation

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 senserelation type in the database.
	Label = "sense_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 senserelation in the database.
	Table = "sense_relations"
	// FromTable is the table that holds the from relation/edge.
	FromTable = "sense_relations"
	// FromInverseTable is the table name for the Sense entity.
	// It exists in this package in order to avoid circular dependency with the "sense" package.
	FromInverseTable = "senses"
	// FromColumn is the table column denoting the from relation/edge.
	FromColumn = "sense_relation_from"
	// ToTable is the table that holds the to relation/edge.
	ToTable = "sense_relations"
	// ToInverseTable is the table name for the Sense entity.
	// It exists in this package in order to avoid circular dependency with the "sense" package.
	ToInverseTable = "senses"
	// ToColumn is the table column denoting the to relation/edge.
	ToColumn = "sense_relation_to"
)

Variables

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

Columns holds all SQL columns for senserelation fields.

View Source
var ForeignKeys = []string{
	"sense_relation_from",
	"sense_relation_to",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "sense_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.SenseRelation

HasFrom applies the HasEdge predicate on the "from" edge.

func HasFromWith

func HasFromWith(preds ...predicate.Sense) predicate.SenseRelation

HasFromWith applies the HasEdge predicate on the "from" edge with a given conditions (other predicates).

func HasTo

func HasTo() predicate.SenseRelation

HasTo applies the HasEdge predicate on the "to" edge.

func HasToWith

func HasToWith(preds ...predicate.Sense) predicate.SenseRelation

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

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.SenseRelation

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.SenseRelation

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.SenseRelation

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.SenseRelation

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.SenseRelation

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.SenseRelation

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.SenseRelation

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

RelType applies equality check predicate on the "relType" field. It's identical to RelTypeEQ.

func RelTypeContains

func RelTypeContains(v string) predicate.SenseRelation

RelTypeContains applies the Contains predicate on the "relType" field.

func RelTypeContainsFold

func RelTypeContainsFold(v string) predicate.SenseRelation

RelTypeContainsFold applies the ContainsFold predicate on the "relType" field.

func RelTypeEQ

func RelTypeEQ(v string) predicate.SenseRelation

RelTypeEQ applies the EQ predicate on the "relType" field.

func RelTypeEqualFold

func RelTypeEqualFold(v string) predicate.SenseRelation

RelTypeEqualFold applies the EqualFold predicate on the "relType" field.

func RelTypeGT

func RelTypeGT(v string) predicate.SenseRelation

RelTypeGT applies the GT predicate on the "relType" field.

func RelTypeGTE

func RelTypeGTE(v string) predicate.SenseRelation

RelTypeGTE applies the GTE predicate on the "relType" field.

func RelTypeHasPrefix

func RelTypeHasPrefix(v string) predicate.SenseRelation

RelTypeHasPrefix applies the HasPrefix predicate on the "relType" field.

func RelTypeHasSuffix

func RelTypeHasSuffix(v string) predicate.SenseRelation

RelTypeHasSuffix applies the HasSuffix predicate on the "relType" field.

func RelTypeIn

func RelTypeIn(vs ...string) predicate.SenseRelation

RelTypeIn applies the In predicate on the "relType" field.

func RelTypeLT

func RelTypeLT(v string) predicate.SenseRelation

RelTypeLT applies the LT predicate on the "relType" field.

func RelTypeLTE

func RelTypeLTE(v string) predicate.SenseRelation

RelTypeLTE applies the LTE predicate on the "relType" field.

func RelTypeNEQ

func RelTypeNEQ(v string) predicate.SenseRelation

RelTypeNEQ applies the NEQ predicate on the "relType" field.

func RelTypeNotIn

func RelTypeNotIn(vs ...string) predicate.SenseRelation

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