mirror of
https://github.com/matrix-org/dendrite
synced 2024-12-14 07:12:53 +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{}
|
||
|
}
|