mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-29 23:21:36 +00:00
20 lines
299 B
Go
20 lines
299 B
Go
|
//go:build cgo
|
||
|
// +build cgo
|
||
|
|
||
|
package sqlutil
|
||
|
|
||
|
import (
|
||
|
"github.com/mattn/go-sqlite3"
|
||
|
_ "github.com/mattn/go-sqlite3"
|
||
|
)
|
||
|
|
||
|
const SQLITE_DRIVER_NAME = "sqlite3"
|
||
|
|
||
|
func sqliteDSNExtension(dsn string) string {
|
||
|
return dsn
|
||
|
}
|
||
|
|
||
|
func sqliteDriver() *sqlite3.SQLiteDriver {
|
||
|
return &sqlite3.SQLiteDriver{}
|
||
|
}
|