db

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Overview

Package db opens Skiff's embedded SQLite database (pure-Go, no CGO, so it cross-compiles) and applies the schema. It lives as a single file on the box, keeping the one-binary self-hosted story intact.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open() (*sql.DB, error)

Open opens the panel's database at the default location (~/.skiff/skiff.db).

func OpenAt

func OpenAt(path string) (*sql.DB, error)

OpenAt opens (creating if needed) a database at path with the schema and migrations applied — so tests can stand up a real schema in a temp file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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