mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 23:48:27 +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{}
|
||
|
}
|