sqlite

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package sqlite opens the verified SQLite database profile required by Golem.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckpointForBackup added in v0.1.0

func CheckpointForBackup(ctx context.Context, database *provider.Database) error

CheckpointForBackup performs the bounded SQLite WAL checkpoint required before copying a database file. The supplied verified SQLite handle must already be closed, and all other application readers and writers must have stopped. Busy ownership fails closed; this operation never deletes or truncates SQLite sidecar files directly.

func Open

func Open(ctx context.Context, config Config) (*provider.Database, error)

Types

type Config

type Config struct {
	DataSourceName string
}

Jump to

Keyboard shortcuts

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