db

package
v0.0.0-...-e4dcdf7 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package db handles all database operations (currently against SQLite).

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
}

DB holds the created SQLite DB structure.

func New

func New(name string) (*DB, error)

New opens the supplied SQLite database, and applies the base schema if needed.

func (*DB) GetItems

func (d *DB) GetItems() ([]model.Item, error)

GetItems returns all items.

Jump to

Keyboard shortcuts

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