postgresql

package
v0.0.0-...-91eb443 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

type Task struct {
	// contains filtered or unexported fields
}

Task represents the repository used for interacting with Task records.

func NewTask

func NewTask(d db.DBTX) *Task

NewTask instantiates the Task repository.

func (*Task) Create

func (t *Task) Create(ctx context.Context, params internal.CreateParams) (internal.Task, error)

func (*Task) Delete

func (t *Task) Delete(ctx context.Context, id string) error

Delete deletes the existing record matching the id.

func (*Task) Find

func (t *Task) Find(ctx context.Context, id string) (internal.Task, error)

Find returns the requested task by searching its id.

func (*Task) Update

func (t *Task) Update(ctx context.Context, id string, description string, priority internal.Priority, dates internal.Dates, isDone bool) error

Update updates the existing record with new values.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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