Files
with/sqlite.go
Bel LaPointe cc18763944 stead from pg
2026-03-09 09:06:33 -06:00

15 lines
258 B
Go

package with
import (
"context"
"database/sql"
"strings"
_ "modernc.org/sqlite"
)
func Sqlite(ctx context.Context, conn string, foo func(db *sql.DB) error) error {
conn = strings.TrimPrefix(conn, "sqlite://")
return _sql(ctx, "sqlite", conn, foo)
}