feat: add pre-commit hooks & refactor code to pass linting

This commit is contained in:
Jordan Knott
2020-08-20 18:11:24 -05:00
parent abf9e1328a
commit 9dba566660
49 changed files with 297 additions and 462 deletions

View File

@ -19,4 +19,3 @@ DELETE FROM task_group WHERE task_group_id = $1;
-- name: UpdateTaskGroupLocation :one
UPDATE task_group SET position = $2 WHERE task_group_id = $1 RETURNING *;

View File

@ -4,6 +4,7 @@ import (
"github.com/jmoiron/sqlx"
)
// Repository contains methods for interacting with a database storage
type Repository struct {
*Queries
db *sqlx.DB