postgresql

package
v0.0.0-...-4b6ff60 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package postgresql implements the PostgreSQL repository for tasks.

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)

Create inserts a new task record.

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, params internal.UpdateParams) 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