event

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: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the event type in the database.
	Label = "event"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "event_id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldResearchID holds the string denoting the research_id field in the database.
	FieldResearchID = "research_id"
	// FieldUserAgent holds the string denoting the user_agent field in the database.
	FieldUserAgent = "user_agent"
	// FieldContent holds the string denoting the content field in the database.
	FieldContent = "content"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// EdgeResearch holds the string denoting the research edge name in mutations.
	EdgeResearch = "research"
	// UserFieldID holds the string denoting the ID field of the User.
	UserFieldID = "user_id"
	// ResearchFieldID holds the string denoting the ID field of the Research.
	ResearchFieldID = "research_id"
	// Table holds the table name of the event in the database.
	Table = "events"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "events"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_id"
	// ResearchTable is the table that holds the research relation/edge.
	ResearchTable = "events"
	// ResearchInverseTable is the table name for the Research entity.
	// It exists in this package in order to avoid circular dependency with the "research" package.
	ResearchInverseTable = "researches"
	// ResearchColumn is the table column denoting the research relation/edge.
	ResearchColumn = "research_id"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() string
)

Columns holds all SQL columns for event fields.

Functions

func And

func And(predicates ...predicate.Event) predicate.Event

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Event

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Event

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Event

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Event

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Event

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Event

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Event

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Event

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Event

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func HasResearch

func HasResearch() predicate.Event

HasResearch applies the HasEdge predicate on the "research" edge.

func HasResearchWith

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

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

func HasUser

func HasUser() predicate.Event

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.Event

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

func ID

func ID(id string) predicate.Event

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Event

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Event

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Event

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Event

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Event

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Event

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Event

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Event

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Event) predicate.Event

Or groups predicates with the OR operator between them.

func ResearchID added in v0.0.4

func ResearchID(v string) predicate.Event

ResearchID applies equality check predicate on the "research_id" field. It's identical to ResearchIDEQ.

func ResearchIDContains added in v0.0.4

func ResearchIDContains(v string) predicate.Event

ResearchIDContains applies the Contains predicate on the "research_id" field.

func ResearchIDContainsFold added in v0.0.4

func ResearchIDContainsFold(v string) predicate.Event

ResearchIDContainsFold applies the ContainsFold predicate on the "research_id" field.

func ResearchIDEQ added in v0.0.4

func ResearchIDEQ(v string) predicate.Event

ResearchIDEQ applies the EQ predicate on the "research_id" field.

func ResearchIDEqualFold added in v0.0.4

func ResearchIDEqualFold(v string) predicate.Event

ResearchIDEqualFold applies the EqualFold predicate on the "research_id" field.

func ResearchIDGT added in v0.0.4

func ResearchIDGT(v string) predicate.Event

ResearchIDGT applies the GT predicate on the "research_id" field.

func ResearchIDGTE added in v0.0.4

func ResearchIDGTE(v string) predicate.Event

ResearchIDGTE applies the GTE predicate on the "research_id" field.

func ResearchIDHasPrefix added in v0.0.4

func ResearchIDHasPrefix(v string) predicate.Event

ResearchIDHasPrefix applies the HasPrefix predicate on the "research_id" field.

func ResearchIDHasSuffix added in v0.0.4

func ResearchIDHasSuffix(v string) predicate.Event

ResearchIDHasSuffix applies the HasSuffix predicate on the "research_id" field.

func ResearchIDIn added in v0.0.4

func ResearchIDIn(vs ...string) predicate.Event

ResearchIDIn applies the In predicate on the "research_id" field.

func ResearchIDLT added in v0.0.4

func ResearchIDLT(v string) predicate.Event

ResearchIDLT applies the LT predicate on the "research_id" field.

func ResearchIDLTE added in v0.0.4

func ResearchIDLTE(v string) predicate.Event

ResearchIDLTE applies the LTE predicate on the "research_id" field.

func ResearchIDNEQ added in v0.0.4

func ResearchIDNEQ(v string) predicate.Event

ResearchIDNEQ applies the NEQ predicate on the "research_id" field.

func ResearchIDNotIn added in v0.0.4

func ResearchIDNotIn(vs ...string) predicate.Event

ResearchIDNotIn applies the NotIn predicate on the "research_id" field.

func UserAgent

func UserAgent(v string) predicate.Event

UserAgent applies equality check predicate on the "user_agent" field. It's identical to UserAgentEQ.

func UserAgentContains

func UserAgentContains(v string) predicate.Event

UserAgentContains applies the Contains predicate on the "user_agent" field.

func UserAgentContainsFold

func UserAgentContainsFold(v string) predicate.Event

UserAgentContainsFold applies the ContainsFold predicate on the "user_agent" field.

func UserAgentEQ

func UserAgentEQ(v string) predicate.Event

UserAgentEQ applies the EQ predicate on the "user_agent" field.

func UserAgentEqualFold

func UserAgentEqualFold(v string) predicate.Event

UserAgentEqualFold applies the EqualFold predicate on the "user_agent" field.

func UserAgentGT

func UserAgentGT(v string) predicate.Event

UserAgentGT applies the GT predicate on the "user_agent" field.

func UserAgentGTE

func UserAgentGTE(v string) predicate.Event

UserAgentGTE applies the GTE predicate on the "user_agent" field.

func UserAgentHasPrefix

func UserAgentHasPrefix(v string) predicate.Event

UserAgentHasPrefix applies the HasPrefix predicate on the "user_agent" field.

func UserAgentHasSuffix

func UserAgentHasSuffix(v string) predicate.Event

UserAgentHasSuffix applies the HasSuffix predicate on the "user_agent" field.

func UserAgentIn

func UserAgentIn(vs ...string) predicate.Event

UserAgentIn applies the In predicate on the "user_agent" field.

func UserAgentLT

func UserAgentLT(v string) predicate.Event

UserAgentLT applies the LT predicate on the "user_agent" field.

func UserAgentLTE

func UserAgentLTE(v string) predicate.Event

UserAgentLTE applies the LTE predicate on the "user_agent" field.

func UserAgentNEQ

func UserAgentNEQ(v string) predicate.Event

UserAgentNEQ applies the NEQ predicate on the "user_agent" field.

func UserAgentNotIn

func UserAgentNotIn(vs ...string) predicate.Event

UserAgentNotIn applies the NotIn predicate on the "user_agent" field.

func UserID added in v0.0.4

func UserID(v string) predicate.Event

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDContains added in v0.0.4

func UserIDContains(v string) predicate.Event

UserIDContains applies the Contains predicate on the "user_id" field.

func UserIDContainsFold added in v0.0.4

func UserIDContainsFold(v string) predicate.Event

UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.

func UserIDEQ added in v0.0.4

func UserIDEQ(v string) predicate.Event

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDEqualFold added in v0.0.4

func UserIDEqualFold(v string) predicate.Event

UserIDEqualFold applies the EqualFold predicate on the "user_id" field.

func UserIDGT added in v0.0.4

func UserIDGT(v string) predicate.Event

UserIDGT applies the GT predicate on the "user_id" field.

func UserIDGTE added in v0.0.4

func UserIDGTE(v string) predicate.Event

UserIDGTE applies the GTE predicate on the "user_id" field.

func UserIDHasPrefix added in v0.0.4

func UserIDHasPrefix(v string) predicate.Event

UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.

func UserIDHasSuffix added in v0.0.4

func UserIDHasSuffix(v string) predicate.Event

UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.

func UserIDIn added in v0.0.4

func UserIDIn(vs ...string) predicate.Event

UserIDIn applies the In predicate on the "user_id" field.

func UserIDLT added in v0.0.4

func UserIDLT(v string) predicate.Event

UserIDLT applies the LT predicate on the "user_id" field.

func UserIDLTE added in v0.0.4

func UserIDLTE(v string) predicate.Event

UserIDLTE applies the LTE predicate on the "user_id" field.

func UserIDNEQ added in v0.0.4

func UserIDNEQ(v string) predicate.Event

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn added in v0.0.4

func UserIDNotIn(vs ...string) predicate.Event

UserIDNotIn applies the NotIn predicate on the "user_id" 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 Event queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByID

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

ByID orders the results by the id field.

func ByResearchField

func ByResearchField(field string, opts ...sql.OrderTermOption) OrderOption

ByResearchField orders the results by research field.

func ByResearchID added in v0.0.4

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

ByResearchID orders the results by the research_id field.

func ByUserAgent

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

ByUserAgent orders the results by the user_agent field.

func ByUserField

func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption

ByUserField orders the results by user field.

func ByUserID added in v0.0.4

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

ByUserID orders the results by the user_id field.

Jump to

Keyboard shortcuts

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