Help us shape the future of Go! Take the 2026 Go Developer Survey

sqlitedb

package
v0.1.1452 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package sqlitedb is the one way magpie reaches SQLite: a package that opens a database imports it, blank, in place of modernc.org/sqlite.

import _ "github.com/yetone/magpie/internal/sqlitedb"

modernc's SQLite runs on modernc's libc, which keeps its own copy of the environment, taken from os.Environ at the first getenv. On macOS, Windows and the BSDs that libc's getenv ends the whole process when it meets an entry with no "=" in it: it prints "libc.go:…:getenv: TODOTODO …" and calls os.Exit(1), where every real libc skips the entry. SQLite's first open reads SQLITE_TMPDIR, so a magpie started with such an entry quit at its first session scan, about two seconds after launch, with no crash report (#2327: a DLP tool's injected dylib left a fragment of its own path in the environment of apps Alfred started). Before anything can open a database, this package hands libc a copy with those entries left out.

Jump to

Keyboard shortcuts

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