Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Research) predicate.Research
- func HasEvents() predicate.Research
- func HasEventsWith(preds ...predicate.Event) predicate.Research
- func ID(id string) predicate.Research
- func IDContainsFold(id string) predicate.Research
- func IDEQ(id string) predicate.Research
- func IDEqualFold(id string) predicate.Research
- func IDGT(id string) predicate.Research
- func IDGTE(id string) predicate.Research
- func IDIn(ids ...string) predicate.Research
- func IDLT(id string) predicate.Research
- func IDLTE(id string) predicate.Research
- func IDNEQ(id string) predicate.Research
- func IDNotIn(ids ...string) predicate.Research
- func Name(v string) predicate.Research
- func NameContains(v string) predicate.Research
- func NameContainsFold(v string) predicate.Research
- func NameEQ(v string) predicate.Research
- func NameEqualFold(v string) predicate.Research
- func NameGT(v string) predicate.Research
- func NameGTE(v string) predicate.Research
- func NameHasPrefix(v string) predicate.Research
- func NameHasSuffix(v string) predicate.Research
- func NameIn(vs ...string) predicate.Research
- func NameLT(v string) predicate.Research
- func NameLTE(v string) predicate.Research
- func NameNEQ(v string) predicate.Research
- func NameNotIn(vs ...string) predicate.Research
- func Not(p predicate.Research) predicate.Research
- func Or(predicates ...predicate.Research) predicate.Research
- func Schema(v []byte) predicate.Research
- func SchemaEQ(v []byte) predicate.Research
- func SchemaGT(v []byte) predicate.Research
- func SchemaGTE(v []byte) predicate.Research
- func SchemaIn(vs ...[]byte) predicate.Research
- func SchemaLT(v []byte) predicate.Research
- func SchemaLTE(v []byte) predicate.Research
- func SchemaNEQ(v []byte) predicate.Research
- func SchemaNotIn(vs ...[]byte) predicate.Research
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldName, FieldSchema, }
Columns holds all SQL columns for research fields.
Functions ¶
func HasEventsWith ¶
HasEventsWith applies the HasEdge predicate on the "events" 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 NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func Schema ¶ added in v0.0.5
Schema applies equality check predicate on the "schema" field. It's identical to SchemaEQ.
func SchemaNotIn ¶ added in v0.0.5
SchemaNotIn applies the NotIn predicate on the "schema" 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 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.