Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1.06 KB

README.md

File metadata and controls

40 lines (30 loc) · 1.06 KB

sqlite3

GoDoc Tesst Go Report Card codecov Gitter chat

SQLite3 adapter for REL.

Example

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())
}

Supported Driver

  • github.com/mattn/go-sqlite3