db

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

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

Go to latest
Published: Jun 26, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database interface {
	OpenDatabase() error
	CreateTable() error
	DisplayAllTodos() ([]Todo, error)
	GetTodo(id string) (Todo, error)
	InsertTodo(name, description, tasks string) error
	UpdateTodo(id int, todo Todo) error
	DeleteTodo(id string) error
}

func NewDatabase

func NewDatabase() Database

type Todo

type Todo struct {
	Id                       int
	Name, Description, Tasks string
}

Jump to

Keyboard shortcuts

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