gorm/dialects/sqlite/sqlite_test.go

16 lines
215 B
Go
Raw Normal View History

2020-02-02 03:35:01 +03:00
package sqlite_test
import (
"os"
"path/filepath"
"testing"
"github.com/jinzhu/gorm"
)
var DB *gorm.DB
func TestOpen(t *testing.T) {
db, err = gorm.Open("sqlite3", filepath.Join(os.TempDir(), "gorm.db"))
}