mirror of https://github.com/VinGarcia/ksql.git
20 lines
370 B
Go
20 lines
370 B
Go
package ksqlite3
|
|
|
|
import (
|
|
"database/sql"
|
|
"io"
|
|
"testing"
|
|
|
|
"github.com/vingarcia/ksql"
|
|
)
|
|
|
|
func TestAdapter(t *testing.T) {
|
|
ksql.RunTestsForAdapter(t, "ksqlite", "sqlite3", "/tmp/ksql.db", func(t *testing.T) (ksql.DBAdapter, io.Closer) {
|
|
db, err := sql.Open("sqlite3", "/tmp/ksql.db")
|
|
if err != nil {
|
|
t.Fatal(err.Error())
|
|
}
|
|
return SQLAdapter{db}, db
|
|
})
|
|
}
|