postgres

package
v0.0.0-...-5a28bd7 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PgStore

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

func NewPgStore

func NewPgStore(connectionURI string) PgStore

func (PgStore) AddOrUpdateTask

func (p PgStore) AddOrUpdateTask(t togo.Task) error

func (PgStore) All

func (p PgStore) All() ([]togo.Task, error)

func (PgStore) Count

func (p PgStore) Count() (int, error)

func (PgStore) FindOverdueTasks

func (p PgStore) FindOverdueTasks() ([]togo.Task, error)

func (PgStore) FindTaskByName

func (p PgStore) FindTaskByName(name string) (togo.Task, error)

func (PgStore) FindTasksByDueDate

func (p PgStore) FindTasksByDueDate(d time.Time) ([]togo.Task, error)

func (PgStore) RemoveTask

func (p PgStore) RemoveTask(taskName string) error

Jump to

Keyboard shortcuts

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