research

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the research type in the database.
	Label = "research"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "research_id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldSchema holds the string denoting the schema field in the database.
	FieldSchema = "schema"
	// EdgeEvents holds the string denoting the events edge name in mutations.
	EdgeEvents = "events"
	// EventFieldID holds the string denoting the ID field of the Event.
	EventFieldID = "event_id"
	// Table holds the table name of the research in the database.
	Table = "researches"
	// EventsTable is the table that holds the events relation/edge.
	EventsTable = "events"
	// EventsInverseTable is the table name for the Event entity.
	// It exists in this package in order to avoid circular dependency with the "event" package.
	EventsInverseTable = "events"
	// EventsColumn is the table column denoting the events relation/edge.
	EventsColumn = "research_id"
)

Variables

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() string
)

Columns holds all SQL columns for research fields.

Functions

func And

func And(predicates ...predicate.Research) predicate.Research

And groups predicates with the AND operator between them.

func HasEvents

func HasEvents() predicate.Research

HasEvents applies the HasEdge predicate on the "events" edge.

func HasEventsWith

func HasEventsWith(preds ...predicate.Event) predicate.Research

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

func ID

func ID(id string) predicate.Research

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Research

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Research

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Research

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Research

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Research

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Research

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Research

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Research

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Research

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Research

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Research

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Research

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Research

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Research

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Research

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Research

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Research

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Research

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Research

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Research

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Research

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Research

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Research

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Research

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Research) predicate.Research

Or groups predicates with the OR operator between them.

func Schema added in v0.0.5

func Schema(v []byte) predicate.Research

Schema applies equality check predicate on the "schema" field. It's identical to SchemaEQ.

func SchemaEQ added in v0.0.5

func SchemaEQ(v []byte) predicate.Research

SchemaEQ applies the EQ predicate on the "schema" field.

func SchemaGT added in v0.0.5

func SchemaGT(v []byte) predicate.Research

SchemaGT applies the GT predicate on the "schema" field.

func SchemaGTE added in v0.0.5

func SchemaGTE(v []byte) predicate.Research

SchemaGTE applies the GTE predicate on the "schema" field.

func SchemaIn added in v0.0.5

func SchemaIn(vs ...[]byte) predicate.Research

SchemaIn applies the In predicate on the "schema" field.

func SchemaLT added in v0.0.5

func SchemaLT(v []byte) predicate.Research

SchemaLT applies the LT predicate on the "schema" field.

func SchemaLTE added in v0.0.5

func SchemaLTE(v []byte) predicate.Research

SchemaLTE applies the LTE predicate on the "schema" field.

func SchemaNEQ added in v0.0.5

func SchemaNEQ(v []byte) predicate.Research

SchemaNEQ applies the NEQ predicate on the "schema" field.

func SchemaNotIn added in v0.0.5

func SchemaNotIn(vs ...[]byte) predicate.Research

SchemaNotIn applies the NotIn predicate on the "schema" 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 Research queries.

func ByEvents

func ByEvents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByEvents orders the results by events terms.

func ByEventsCount

func ByEventsCount(opts ...sql.OrderTermOption) OrderOption

ByEventsCount orders the results by events count.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByName

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the name field.

Jump to

Keyboard shortcuts

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