sqlite

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package sqlite implements the SQLite driver using modernc.org/sqlite (pure Go).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(opts Opts) (driver.Connection, error)

Connect opens a SQLite database file.

Types

type Opts

type Opts struct {
	Path     string
	Readonly bool
	Create   bool
	// Options are driver-specific knobs threaded into the file: DSN as
	// query parameters (e.g. _journal_mode, _busy_timeout). Pass-through
	// to modernc.org/sqlite. The "mode" key is reserved -- we always
	// control read-only vs read-write at the URI level.
	Options map[string]string
}

Opts holds SQLite connection options.

Jump to

Keyboard shortcuts

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