sqlitedb

package
v0.2.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package sqlitedb opens the daemons' SQLite databases with the connection settings their schemas rely on.

Index

Constants

View Source
const BusyTimeoutMS = 1000

BusyTimeoutMS is how long a connection waits for a lock held by another process, such as a checker or an operator command, before failing.

Variables

This section is empty.

Functions

func Open

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

Open opens an existing database for reading and writing. SQLite enforces foreign keys only on connections that enable them, and the schemas declare references and cascades, so every connection enables them. mode=rw never creates a missing file, and the file URI keeps filename characters out of the options. The pool holds one connection: SQLite has a single writer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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