Documentation
¶
Index ¶
Constants ¶
View Source
const (
// The database table name for form submissions.
TableName = "form_submissions"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { Find(formID int) (domain.FormSubmissions, error) Create(f domain.FormSubmission) error Delete(formID int) error }
Repository defines methods for form submissions to interact with the database.
type Store ¶
Store defines the data layer for form submissions.
func (*Store) Create ¶
func (s *Store) Create(f domain.FormSubmission) error
Create
Returns nil if the submission was successfully created. Returns errors.INTERNAL if the SQL query was invalid.
Click to show internal directories.
Click to hide internal directories.