SQLite3 adapter for REL.
package main
import (
"context"
_ "github.com/mattn/go-sqlite3"
"github.com/go-rel/sqlite3"
"github.com/go-rel/rel"
)
func main() {
// open sqlite3 connection.
adapter, err := sqlite3.Open("dev.db")
if err != nil {
panic(err)
}
defer adapter.Close()
// initialize rel's repo.
repo := rel.New(adapter)
repo.Ping(context.TODO())
}
- github.com/mattn/go-sqlite3