store

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package store is WittyTuner's own database (module API 5): a SQLite file in the module's own folder (WITTYMODULE_DATA), with migrations WittyTuner owns. It keeps the tuners, their channels and the guide sources. The guide itself, recordings, favourites and sets stay the server's, which names a channel by the id it has here ("tun-<id>"). It starts empty: nothing is brought over from a server's database.

Index

Constants

View Source
const File = "wittytuner.db"

File is the database's name in the module's folder.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct{ *sql.DB }

DB is WittyTuner's database.

func Open

func Open(dir string) (*DB, error)

Open opens (and makes, or brings up to date) the database in dir.

func OpenFile

func OpenFile(path string) (*DB, error)

OpenFile opens the database in one file, for tests.

Jump to

Keyboard shortcuts

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