stead from pg

This commit is contained in:
Bel LaPointe
2026-03-09 09:02:16 -06:00
parent 4bf673461e
commit cc18763944
9 changed files with 318 additions and 0 deletions

14
sqlite.go Normal file
View File

@@ -0,0 +1,14 @@
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)
}