duckdb

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTask

func AddTask(description string) error

AddTask adds a new task to the database

func CloseDB

func CloseDB()

CloseDB closes the database connection

func CompleteTask

func CompleteTask(id int) error

CompleteTask marks a task as complete

func DeleteTask

func DeleteTask(id int) error

DeleteTask deletes a task from the database

func InitDB

func InitDB(dbPath string) error

InitDB initializes the SQLite database

Types

type Task

type Task struct {
	ID          int
	Description string
	CreatedAt   time.Time
	IsComplete  bool
}

Task represents a task in our application

func ListTasks

func ListTasks(showAll bool) ([]Task, error)

ListTasks returns all tasks, optionally filtered by completion status

Jump to

Keyboard shortcuts

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