2024-06-15 01:16:48 +00:00
|
|
|
//+build cgo
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2024-06-30 00:48:22 +00:00
|
|
|
"yvbolt/sqliteclidriver"
|
|
|
|
|
2024-06-15 01:16:48 +00:00
|
|
|
sqlite3 "github.com/mattn/go-sqlite3"
|
|
|
|
)
|
|
|
|
|
|
|
|
func (ld *sqliteLoadedDatabase) DriverName() string {
|
2024-06-30 00:48:22 +00:00
|
|
|
if _, ok := ld.db.Driver().(*sqliteclidriver.SCDriver); ok {
|
|
|
|
return "SQLite (sqliteclidriver)"
|
|
|
|
}
|
|
|
|
|
2024-06-15 01:16:48 +00:00
|
|
|
ver1, _, _ := sqlite3.Version()
|
|
|
|
return "SQLite " + ver1
|
|
|
|
}
|