small pixel drawing of a pufferfish vore

sqlite/sql.go

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
package sqlite

import (
	"database/sql"
	"log"

	_ "github.com/glebarez/go-sqlite"
)

func SetupAndOpen(path string) *sql.DB {
	db, err := sql.Open("sqlite", path)
	if err != nil {
		log.Fatal(err)
	}
	return db
}