NewTask instantiates the Task repository.
(d db.DBTX)
| 20 | |
| 21 | // NewTask instantiates the Task repository. |
| 22 | func NewTask(d db.DBTX) *Task { |
| 23 | return &Task{ |
| 24 | q: db.New(d), |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | // Create inserts a new task record. |
| 29 | func (t *Task) Create(ctx context.Context, params internal.CreateParams) (internal.Task, error) { |