sqlite

package
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package sqlite provides a SQLite-backed db.Store implementation for Leaf, built on the pure-Go (CGO-free) modernc.org/sqlite driver.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(dsn string) (db.Store, error)

Open opens (or creates) a SQLite database at the given DSN and returns a ready-to-use db.Store. The DSN is a file path or any modernc.org/sqlite DSN, e.g. "game.db", "file:game.db?cache=shared", or ":memory:".

func OpenWithTimeout

func OpenWithTimeout(dsn string, timeout time.Duration) (db.Store, error)

OpenWithTimeout behaves like Open but bounds the initial schema setup with a timeout.

Types

This section is empty.

Jump to

Keyboard shortcuts

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