MCPcopy Create free account
hub / github.com/MarioCarrion/todo-api-microservice-example / NewTask

Function NewTask

internal/postgresql/task.go:22–26  ·  view source on GitHub ↗

NewTask instantiates the Task repository.

(d db.DBTX)

Source from the content-addressed store, hash-verified

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

Callers 5

TestTask_CreateFunction · 0.92
TestTask_DeleteFunction · 0.92
TestTask_FindFunction · 0.92
TestTask_UpdateFunction · 0.92
newServerFunction · 0.92

Calls 1

NewFunction · 0.92

Tested by 4

TestTask_CreateFunction · 0.74
TestTask_DeleteFunction · 0.74
TestTask_FindFunction · 0.74
TestTask_UpdateFunction · 0.74