sqlite3¶
import "github.com/go-rel/sqlite3"
Overview¶
Package sqlite3 wraps go-sqlite3 driver as an adapter for rel.
Usage:
// 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)
Constants¶
const Name string = "sqlite3"
func MustOpen¶
func MustOpen(dsn string) rel.Adapter
func New¶
func New(database *db.DB) rel.Adapter
func Open¶
func Open(dsn string) (rel.Adapter, error)
type SQLite3¶
type SQLite3 struct {
sql.SQL
}
func (SQLite3) Name¶
func (SQLite3) Name() string
Last update: 2024-08-16