database

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package database provides a SQLite database connection for Beebuzz.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsUniqueConstraint

func IsUniqueConstraint(err error) bool

IsUniqueConstraint reports whether err is a SQLite unique-constraint violation.

func New

func New(dbDir string) (*sqlx.DB, error)

New creates or opens a SQLite database on disk at the given directory. It applies recommended pragmas for concurrency and integrity, and configures the connection pool. Returns a *DB or an error if initialization fails.

Types

This section is empty.

Jump to

Keyboard shortcuts

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