16 lines
260 B
Go
16 lines
260 B
Go
// +build sqlite3
|
|
|
|
package database
|
|
|
|
import (
|
|
_ "github.com/jinzhu/gorm/dialects/sqlite"
|
|
)
|
|
|
|
type SqlLite struct {
|
|
}
|
|
|
|
func (*SqlLite) Open(dbType string, conn string) (db *gorm.DB, err error) {
|
|
eloquent, err := gorm.Open(dbType, conn)
|
|
return eloquent, err
|
|
}
|