Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Event) predicate.Event
- func CreatedAt(v time.Time) predicate.Event
- func CreatedAtEQ(v time.Time) predicate.Event
- func CreatedAtGT(v time.Time) predicate.Event
- func CreatedAtGTE(v time.Time) predicate.Event
- func CreatedAtIn(vs ...time.Time) predicate.Event
- func CreatedAtLT(v time.Time) predicate.Event
- func CreatedAtLTE(v time.Time) predicate.Event
- func CreatedAtNEQ(v time.Time) predicate.Event
- func CreatedAtNotIn(vs ...time.Time) predicate.Event
- func HasResearch() predicate.Event
- func HasResearchWith(preds ...predicate.Research) predicate.Event
- func HasUser() predicate.Event
- func HasUserWith(preds ...predicate.User) predicate.Event
- func ID(id string) predicate.Event
- func IDContainsFold(id string) predicate.Event
- func IDEQ(id string) predicate.Event
- func IDEqualFold(id string) predicate.Event
- func IDGT(id string) predicate.Event
- func IDGTE(id string) predicate.Event
- func IDIn(ids ...string) predicate.Event
- func IDLT(id string) predicate.Event
- func IDLTE(id string) predicate.Event
- func IDNEQ(id string) predicate.Event
- func IDNotIn(ids ...string) predicate.Event
- func Not(p predicate.Event) predicate.Event
- func Or(predicates ...predicate.Event) predicate.Event
- func ResearchID(v string) predicate.Event
- func ResearchIDContains(v string) predicate.Event
- func ResearchIDContainsFold(v string) predicate.Event
- func ResearchIDEQ(v string) predicate.Event
- func ResearchIDEqualFold(v string) predicate.Event
- func ResearchIDGT(v string) predicate.Event
- func ResearchIDGTE(v string) predicate.Event
- func ResearchIDHasPrefix(v string) predicate.Event
- func ResearchIDHasSuffix(v string) predicate.Event
- func ResearchIDIn(vs ...string) predicate.Event
- func ResearchIDLT(v string) predicate.Event
- func ResearchIDLTE(v string) predicate.Event
- func ResearchIDNEQ(v string) predicate.Event
- func ResearchIDNotIn(vs ...string) predicate.Event
- func UserAgent(v string) predicate.Event
- func UserAgentContains(v string) predicate.Event
- func UserAgentContainsFold(v string) predicate.Event
- func UserAgentEQ(v string) predicate.Event
- func UserAgentEqualFold(v string) predicate.Event
- func UserAgentGT(v string) predicate.Event
- func UserAgentGTE(v string) predicate.Event
- func UserAgentHasPrefix(v string) predicate.Event
- func UserAgentHasSuffix(v string) predicate.Event
- func UserAgentIn(vs ...string) predicate.Event
- func UserAgentLT(v string) predicate.Event
- func UserAgentLTE(v string) predicate.Event
- func UserAgentNEQ(v string) predicate.Event
- func UserAgentNotIn(vs ...string) predicate.Event
- func UserID(v string) predicate.Event
- func UserIDContains(v string) predicate.Event
- func UserIDContainsFold(v string) predicate.Event
- func UserIDEQ(v string) predicate.Event
- func UserIDEqualFold(v string) predicate.Event
- func UserIDGT(v string) predicate.Event
- func UserIDGTE(v string) predicate.Event
- func UserIDHasPrefix(v string) predicate.Event
- func UserIDHasSuffix(v string) predicate.Event
- func UserIDIn(vs ...string) predicate.Event
- func UserIDLT(v string) predicate.Event
- func UserIDLTE(v string) predicate.Event
- func UserIDNEQ(v string) predicate.Event
- func UserIDNotIn(vs ...string) predicate.Event
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByResearchField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByResearchID(opts ...sql.OrderTermOption) OrderOption
- func ByUserAgent(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUserID, FieldResearchID, FieldUserAgent, FieldContent, }
Columns holds all SQL columns for event fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasResearch ¶
HasResearch applies the HasEdge predicate on the "research" edge.
func HasResearchWith ¶
HasResearchWith applies the HasEdge predicate on the "research" edge with a given conditions (other predicates).
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" 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 ResearchID ¶ added in v0.0.4
ResearchID applies equality check predicate on the "research_id" field. It's identical to ResearchIDEQ.
func ResearchIDContains ¶ added in v0.0.4
ResearchIDContains applies the Contains predicate on the "research_id" field.
func ResearchIDContainsFold ¶ added in v0.0.4
ResearchIDContainsFold applies the ContainsFold predicate on the "research_id" field.
func ResearchIDEQ ¶ added in v0.0.4
ResearchIDEQ applies the EQ predicate on the "research_id" field.
func ResearchIDEqualFold ¶ added in v0.0.4
ResearchIDEqualFold applies the EqualFold predicate on the "research_id" field.
func ResearchIDGT ¶ added in v0.0.4
ResearchIDGT applies the GT predicate on the "research_id" field.
func ResearchIDGTE ¶ added in v0.0.4
ResearchIDGTE applies the GTE predicate on the "research_id" field.
func ResearchIDHasPrefix ¶ added in v0.0.4
ResearchIDHasPrefix applies the HasPrefix predicate on the "research_id" field.
func ResearchIDHasSuffix ¶ added in v0.0.4
ResearchIDHasSuffix applies the HasSuffix predicate on the "research_id" field.
func ResearchIDIn ¶ added in v0.0.4
ResearchIDIn applies the In predicate on the "research_id" field.
func ResearchIDLT ¶ added in v0.0.4
ResearchIDLT applies the LT predicate on the "research_id" field.
func ResearchIDLTE ¶ added in v0.0.4
ResearchIDLTE applies the LTE predicate on the "research_id" field.
func ResearchIDNEQ ¶ added in v0.0.4
ResearchIDNEQ applies the NEQ predicate on the "research_id" field.
func ResearchIDNotIn ¶ added in v0.0.4
ResearchIDNotIn applies the NotIn predicate on the "research_id" field.
func UserAgent ¶
UserAgent applies equality check predicate on the "user_agent" field. It's identical to UserAgentEQ.
func UserAgentContains ¶
UserAgentContains applies the Contains predicate on the "user_agent" field.
func UserAgentContainsFold ¶
UserAgentContainsFold applies the ContainsFold predicate on the "user_agent" field.
func UserAgentEQ ¶
UserAgentEQ applies the EQ predicate on the "user_agent" field.
func UserAgentEqualFold ¶
UserAgentEqualFold applies the EqualFold predicate on the "user_agent" field.
func UserAgentGT ¶
UserAgentGT applies the GT predicate on the "user_agent" field.
func UserAgentGTE ¶
UserAgentGTE applies the GTE predicate on the "user_agent" field.
func UserAgentHasPrefix ¶
UserAgentHasPrefix applies the HasPrefix predicate on the "user_agent" field.
func UserAgentHasSuffix ¶
UserAgentHasSuffix applies the HasSuffix predicate on the "user_agent" field.
func UserAgentIn ¶
UserAgentIn applies the In predicate on the "user_agent" field.
func UserAgentLT ¶
UserAgentLT applies the LT predicate on the "user_agent" field.
func UserAgentLTE ¶
UserAgentLTE applies the LTE predicate on the "user_agent" field.
func UserAgentNEQ ¶
UserAgentNEQ applies the NEQ predicate on the "user_agent" field.
func UserAgentNotIn ¶
UserAgentNotIn applies the NotIn predicate on the "user_agent" field.
func UserID ¶ added in v0.0.4
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDContains ¶ added in v0.0.4
UserIDContains applies the Contains predicate on the "user_id" field.
func UserIDContainsFold ¶ added in v0.0.4
UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.
func UserIDEqualFold ¶ added in v0.0.4
UserIDEqualFold applies the EqualFold predicate on the "user_id" field.
func UserIDHasPrefix ¶ added in v0.0.4
UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.
func UserIDHasSuffix ¶ added in v0.0.4
UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.
func UserIDNotIn ¶ added in v0.0.4
UserIDNotIn applies the NotIn predicate on the "user_id" 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 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.