database

package
v0.0.0-...-4316af9 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2025 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(ctx context.Context, path string, cfg *util.ConfigStore) (*sql.DB, error)

Setup opens the SQLite DB at path, verifies its integrity and schema, and returns the valid DB handle. If any check fails, it backs up the old file and reinitializes the DB using the schema definitions.

Types

This section is empty.

Jump to

Keyboard shortcuts

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