db

package
v0.0.0-...-e200528 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func New

func New(user, password, dbname, host string, port int) (*DB, error)

func (*DB) Close

func (db *DB) Close()

func (*DB) GetAllItems

func (db *DB) GetAllItems(ctx context.Context) ([]Item, error)

func (*DB) InsertItem

func (db *DB) InsertItem(ctx context.Context, item Item) error

type Item

type Item struct {
	Task   string
	Status string
}

Jump to

Keyboard shortcuts

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