sqlitedb

package
v0.1.4730 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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