use sqlite driver name based on which specific engine is being used
This commit is contained in:
parent
14090a9190
commit
92196a7f2d
3 changed files with 5 additions and 1 deletions
internal/app/artifactcache
|
@ -7,3 +7,5 @@
|
|||
package artifactcache
|
||||
|
||||
import _ "github.com/mattn/go-sqlite3"
|
||||
|
||||
var sqliteDriverName = "sqlite3"
|
||||
|
|
|
@ -7,3 +7,5 @@
|
|||
package artifactcache
|
||||
|
||||
import _ "modernc.org/sqlite"
|
||||
|
||||
var sqliteDriverName = "sqlite3"
|
||||
|
|
|
@ -55,7 +55,7 @@ func StartHandler(dir, outboundIP string, port uint16) (*Handler, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
e, err := xorm.NewEngine("sqlite", filepath.Join(dir, "sqlite.db"))
|
||||
e, err := xorm.NewEngine(sqliteDriverName, filepath.Join(dir, "sqlite.db"))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue