Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.WebformSubmission) predicate.WebformSubmission
- func CreatedAt(v time.Time) predicate.WebformSubmission
- func CreatedAtEQ(v time.Time) predicate.WebformSubmission
- func CreatedAtGT(v time.Time) predicate.WebformSubmission
- func CreatedAtGTE(v time.Time) predicate.WebformSubmission
- func CreatedAtIn(vs ...time.Time) predicate.WebformSubmission
- func CreatedAtLT(v time.Time) predicate.WebformSubmission
- func CreatedAtLTE(v time.Time) predicate.WebformSubmission
- func CreatedAtNEQ(v time.Time) predicate.WebformSubmission
- func CreatedAtNotIn(vs ...time.Time) predicate.WebformSubmission
- func HasUser() predicate.WebformSubmission
- func HasUserWith(preds ...predicate.User) predicate.WebformSubmission
- func HasValues() predicate.WebformSubmission
- func HasValuesWith(preds ...predicate.WebformSubmissionValue) predicate.WebformSubmission
- func HasWebform() predicate.WebformSubmission
- func HasWebformWith(preds ...predicate.Webform) predicate.WebformSubmission
- func ID(id int) predicate.WebformSubmission
- func IDEQ(id int) predicate.WebformSubmission
- func IDGT(id int) predicate.WebformSubmission
- func IDGTE(id int) predicate.WebformSubmission
- func IDIn(ids ...int) predicate.WebformSubmission
- func IDLT(id int) predicate.WebformSubmission
- func IDLTE(id int) predicate.WebformSubmission
- func IDNEQ(id int) predicate.WebformSubmission
- func IDNotIn(ids ...int) predicate.WebformSubmission
- func Not(p predicate.WebformSubmission) predicate.WebformSubmission
- func Or(predicates ...predicate.WebformSubmission) predicate.WebformSubmission
- func RemoteIP(v string) predicate.WebformSubmission
- func RemoteIPContains(v string) predicate.WebformSubmission
- func RemoteIPContainsFold(v string) predicate.WebformSubmission
- func RemoteIPEQ(v string) predicate.WebformSubmission
- func RemoteIPEqualFold(v string) predicate.WebformSubmission
- func RemoteIPGT(v string) predicate.WebformSubmission
- func RemoteIPGTE(v string) predicate.WebformSubmission
- func RemoteIPHasPrefix(v string) predicate.WebformSubmission
- func RemoteIPHasSuffix(v string) predicate.WebformSubmission
- func RemoteIPIn(vs ...string) predicate.WebformSubmission
- func RemoteIPLT(v string) predicate.WebformSubmission
- func RemoteIPLTE(v string) predicate.WebformSubmission
- func RemoteIPNEQ(v string) predicate.WebformSubmission
- func RemoteIPNotIn(vs ...string) predicate.WebformSubmission
- func SourceURL(v string) predicate.WebformSubmission
- func SourceURLContains(v string) predicate.WebformSubmission
- func SourceURLContainsFold(v string) predicate.WebformSubmission
- func SourceURLEQ(v string) predicate.WebformSubmission
- func SourceURLEqualFold(v string) predicate.WebformSubmission
- func SourceURLGT(v string) predicate.WebformSubmission
- func SourceURLGTE(v string) predicate.WebformSubmission
- func SourceURLHasPrefix(v string) predicate.WebformSubmission
- func SourceURLHasSuffix(v string) predicate.WebformSubmission
- func SourceURLIn(vs ...string) predicate.WebformSubmission
- func SourceURLLT(v string) predicate.WebformSubmission
- func SourceURLLTE(v string) predicate.WebformSubmission
- func SourceURLNEQ(v string) predicate.WebformSubmission
- func SourceURLNotIn(vs ...string) predicate.WebformSubmission
- func UserID(v int) predicate.WebformSubmission
- func UserIDEQ(v int) predicate.WebformSubmission
- func UserIDIn(vs ...int) predicate.WebformSubmission
- func UserIDIsNil() predicate.WebformSubmission
- func UserIDNEQ(v int) predicate.WebformSubmission
- func UserIDNotIn(vs ...int) predicate.WebformSubmission
- func UserIDNotNil() predicate.WebformSubmission
- func ValidColumn(column string) bool
- func WebformID(v int) predicate.WebformSubmission
- func WebformIDEQ(v int) predicate.WebformSubmission
- func WebformIDIn(vs ...int) predicate.WebformSubmission
- func WebformIDNEQ(v int) predicate.WebformSubmission
- func WebformIDNotIn(vs ...int) predicate.WebformSubmission
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByRemoteIP(opts ...sql.OrderTermOption) OrderOption
- func BySourceURL(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
- func ByValues(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByValuesCount(opts ...sql.OrderTermOption) OrderOption
- func ByWebformField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByWebformID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the webformsubmission type in the database. Label = "webform_submission" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldWebformID holds the string denoting the webform_id field in the database. FieldWebformID = "webform_id" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldRemoteIP holds the string denoting the remote_ip field in the database. FieldRemoteIP = "remote_ip" // FieldSourceURL holds the string denoting the source_url field in the database. FieldSourceURL = "source_url" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeWebform holds the string denoting the webform edge name in mutations. EdgeWebform = "webform" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeValues holds the string denoting the values edge name in mutations. EdgeValues = "values" // Table holds the table name of the webformsubmission in the database. Table = "webform_submissions" // WebformTable is the table that holds the webform relation/edge. WebformTable = "webform_submissions" // WebformInverseTable is the table name for the Webform entity. // It exists in this package in order to avoid circular dependency with the "webform" package. WebformInverseTable = "webforms" // WebformColumn is the table column denoting the webform relation/edge. WebformColumn = "webform_id" // UserTable is the table that holds the user relation/edge. UserTable = "webform_submissions" // 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" // ValuesTable is the table that holds the values relation/edge. ValuesTable = "webform_submission_values" // ValuesInverseTable is the table name for the WebformSubmissionValue entity. // It exists in this package in order to avoid circular dependency with the "webformsubmissionvalue" package. ValuesInverseTable = "webform_submission_values" // ValuesColumn is the table column denoting the values relation/edge. ValuesColumn = "submission_id" )
Variables ¶
var ( // DefaultRemoteIP holds the default value on creation for the "remote_ip" field. DefaultRemoteIP string // RemoteIPValidator is a validator for the "remote_ip" field. It is called by the builders before save. RemoteIPValidator func(string) error // DefaultSourceURL holds the default value on creation for the "source_url" field. DefaultSourceURL string // SourceURLValidator is a validator for the "source_url" field. It is called by the builders before save. SourceURLValidator func(string) error // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time )
var Columns = []string{ FieldID, FieldWebformID, FieldUserID, FieldRemoteIP, FieldSourceURL, FieldCreatedAt, }
Columns holds all SQL columns for webformsubmission fields.
Functions ¶
func And ¶
func And(predicates ...predicate.WebformSubmission) predicate.WebformSubmission
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.WebformSubmission
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.WebformSubmission
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.WebformSubmission
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.WebformSubmission
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.WebformSubmission
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.WebformSubmission
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.WebformSubmission
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.WebformSubmission
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.WebformSubmission
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasUser ¶
func HasUser() predicate.WebformSubmission
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.WebformSubmission
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func HasValues ¶
func HasValues() predicate.WebformSubmission
HasValues applies the HasEdge predicate on the "values" edge.
func HasValuesWith ¶
func HasValuesWith(preds ...predicate.WebformSubmissionValue) predicate.WebformSubmission
HasValuesWith applies the HasEdge predicate on the "values" edge with a given conditions (other predicates).
func HasWebform ¶
func HasWebform() predicate.WebformSubmission
HasWebform applies the HasEdge predicate on the "webform" edge.
func HasWebformWith ¶
func HasWebformWith(preds ...predicate.Webform) predicate.WebformSubmission
HasWebformWith applies the HasEdge predicate on the "webform" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.WebformSubmission
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.WebformSubmission
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.WebformSubmission
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.WebformSubmission
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.WebformSubmission
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.WebformSubmission
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.WebformSubmission
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.WebformSubmission
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.WebformSubmission) predicate.WebformSubmission
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.WebformSubmission) predicate.WebformSubmission
Or groups predicates with the OR operator between them.
func RemoteIP ¶
func RemoteIP(v string) predicate.WebformSubmission
RemoteIP applies equality check predicate on the "remote_ip" field. It's identical to RemoteIPEQ.
func RemoteIPContains ¶
func RemoteIPContains(v string) predicate.WebformSubmission
RemoteIPContains applies the Contains predicate on the "remote_ip" field.
func RemoteIPContainsFold ¶
func RemoteIPContainsFold(v string) predicate.WebformSubmission
RemoteIPContainsFold applies the ContainsFold predicate on the "remote_ip" field.
func RemoteIPEQ ¶
func RemoteIPEQ(v string) predicate.WebformSubmission
RemoteIPEQ applies the EQ predicate on the "remote_ip" field.
func RemoteIPEqualFold ¶
func RemoteIPEqualFold(v string) predicate.WebformSubmission
RemoteIPEqualFold applies the EqualFold predicate on the "remote_ip" field.
func RemoteIPGT ¶
func RemoteIPGT(v string) predicate.WebformSubmission
RemoteIPGT applies the GT predicate on the "remote_ip" field.
func RemoteIPGTE ¶
func RemoteIPGTE(v string) predicate.WebformSubmission
RemoteIPGTE applies the GTE predicate on the "remote_ip" field.
func RemoteIPHasPrefix ¶
func RemoteIPHasPrefix(v string) predicate.WebformSubmission
RemoteIPHasPrefix applies the HasPrefix predicate on the "remote_ip" field.
func RemoteIPHasSuffix ¶
func RemoteIPHasSuffix(v string) predicate.WebformSubmission
RemoteIPHasSuffix applies the HasSuffix predicate on the "remote_ip" field.
func RemoteIPIn ¶
func RemoteIPIn(vs ...string) predicate.WebformSubmission
RemoteIPIn applies the In predicate on the "remote_ip" field.
func RemoteIPLT ¶
func RemoteIPLT(v string) predicate.WebformSubmission
RemoteIPLT applies the LT predicate on the "remote_ip" field.
func RemoteIPLTE ¶
func RemoteIPLTE(v string) predicate.WebformSubmission
RemoteIPLTE applies the LTE predicate on the "remote_ip" field.
func RemoteIPNEQ ¶
func RemoteIPNEQ(v string) predicate.WebformSubmission
RemoteIPNEQ applies the NEQ predicate on the "remote_ip" field.
func RemoteIPNotIn ¶
func RemoteIPNotIn(vs ...string) predicate.WebformSubmission
RemoteIPNotIn applies the NotIn predicate on the "remote_ip" field.
func SourceURL ¶
func SourceURL(v string) predicate.WebformSubmission
SourceURL applies equality check predicate on the "source_url" field. It's identical to SourceURLEQ.
func SourceURLContains ¶
func SourceURLContains(v string) predicate.WebformSubmission
SourceURLContains applies the Contains predicate on the "source_url" field.
func SourceURLContainsFold ¶
func SourceURLContainsFold(v string) predicate.WebformSubmission
SourceURLContainsFold applies the ContainsFold predicate on the "source_url" field.
func SourceURLEQ ¶
func SourceURLEQ(v string) predicate.WebformSubmission
SourceURLEQ applies the EQ predicate on the "source_url" field.
func SourceURLEqualFold ¶
func SourceURLEqualFold(v string) predicate.WebformSubmission
SourceURLEqualFold applies the EqualFold predicate on the "source_url" field.
func SourceURLGT ¶
func SourceURLGT(v string) predicate.WebformSubmission
SourceURLGT applies the GT predicate on the "source_url" field.
func SourceURLGTE ¶
func SourceURLGTE(v string) predicate.WebformSubmission
SourceURLGTE applies the GTE predicate on the "source_url" field.
func SourceURLHasPrefix ¶
func SourceURLHasPrefix(v string) predicate.WebformSubmission
SourceURLHasPrefix applies the HasPrefix predicate on the "source_url" field.
func SourceURLHasSuffix ¶
func SourceURLHasSuffix(v string) predicate.WebformSubmission
SourceURLHasSuffix applies the HasSuffix predicate on the "source_url" field.
func SourceURLIn ¶
func SourceURLIn(vs ...string) predicate.WebformSubmission
SourceURLIn applies the In predicate on the "source_url" field.
func SourceURLLT ¶
func SourceURLLT(v string) predicate.WebformSubmission
SourceURLLT applies the LT predicate on the "source_url" field.
func SourceURLLTE ¶
func SourceURLLTE(v string) predicate.WebformSubmission
SourceURLLTE applies the LTE predicate on the "source_url" field.
func SourceURLNEQ ¶
func SourceURLNEQ(v string) predicate.WebformSubmission
SourceURLNEQ applies the NEQ predicate on the "source_url" field.
func SourceURLNotIn ¶
func SourceURLNotIn(vs ...string) predicate.WebformSubmission
SourceURLNotIn applies the NotIn predicate on the "source_url" field.
func UserID ¶
func UserID(v int) predicate.WebformSubmission
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDEQ ¶
func UserIDEQ(v int) predicate.WebformSubmission
UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDIn ¶
func UserIDIn(vs ...int) predicate.WebformSubmission
UserIDIn applies the In predicate on the "user_id" field.
func UserIDIsNil ¶
func UserIDIsNil() predicate.WebformSubmission
UserIDIsNil applies the IsNil predicate on the "user_id" field.
func UserIDNEQ ¶
func UserIDNEQ(v int) predicate.WebformSubmission
UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNotIn ¶
func UserIDNotIn(vs ...int) predicate.WebformSubmission
UserIDNotIn applies the NotIn predicate on the "user_id" field.
func UserIDNotNil ¶
func UserIDNotNil() predicate.WebformSubmission
UserIDNotNil applies the NotNil predicate on the "user_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func WebformID ¶
func WebformID(v int) predicate.WebformSubmission
WebformID applies equality check predicate on the "webform_id" field. It's identical to WebformIDEQ.
func WebformIDEQ ¶
func WebformIDEQ(v int) predicate.WebformSubmission
WebformIDEQ applies the EQ predicate on the "webform_id" field.
func WebformIDIn ¶
func WebformIDIn(vs ...int) predicate.WebformSubmission
WebformIDIn applies the In predicate on the "webform_id" field.
func WebformIDNEQ ¶
func WebformIDNEQ(v int) predicate.WebformSubmission
WebformIDNEQ applies the NEQ predicate on the "webform_id" field.
func WebformIDNotIn ¶
func WebformIDNotIn(vs ...int) predicate.WebformSubmission
WebformIDNotIn applies the NotIn predicate on the "webform_id" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the WebformSubmission 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 ByRemoteIP ¶
func ByRemoteIP(opts ...sql.OrderTermOption) OrderOption
ByRemoteIP orders the results by the remote_ip field.
func BySourceURL ¶
func BySourceURL(opts ...sql.OrderTermOption) OrderOption
BySourceURL orders the results by the source_url field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.
func ByValues ¶
func ByValues(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByValues orders the results by values terms.
func ByValuesCount ¶
func ByValuesCount(opts ...sql.OrderTermOption) OrderOption
ByValuesCount orders the results by values count.
func ByWebformField ¶
func ByWebformField(field string, opts ...sql.OrderTermOption) OrderOption
ByWebformField orders the results by webform field.
func ByWebformID ¶
func ByWebformID(opts ...sql.OrderTermOption) OrderOption
ByWebformID orders the results by the webform_id field.