Refactor.

This commit is contained in:
Nuno Cruces
2023-01-12 05:57:09 +00:00
parent a7ae94161d
commit 1e76a322bc
6 changed files with 150 additions and 93 deletions

16
cmd/main.go Normal file
View File

@@ -0,0 +1,16 @@
package main
import (
"log"
"github.com/ncruces/go-sqlite3"
_ "github.com/ncruces/go-sqlite3/embed"
)
func main() {
db, err := sqlite3.Open(":memory:", sqlite3.SQLITE_OPEN_READWRITE|sqlite3.SQLITE_OPEN_CREATE, "")
if err != nil {
log.Fatal(err)
}
defer db.Close()
}