webformsubmission

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for webformsubmission fields.

Functions

func And

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

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 ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

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

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

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

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func RemoteIP

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

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

func ValidColumn(column string) bool

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

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

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