mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-31 13:09:55 +00:00
16 lines
459 B
Go
16 lines
459 B
Go
//go:build cgo
|
|
|
|
package dex
|
|
|
|
import (
|
|
sql "github.com/dexidp/dex/storage/sql"
|
|
)
|
|
|
|
// newSQLite3 builds the dex SQLite3 config. CGO builds use the upstream
|
|
// struct that takes a File path. Non-CGO builds get an empty stub whose
|
|
// Open() returns the dex "SQLite not available" error — correct behaviour
|
|
// for binaries that can't link sqlite3 (e.g. cross-compiled ARM targets).
|
|
func newSQLite3(file string) *sql.SQLite3 {
|
|
return &sql.SQLite3{File: file}
|
|
}
|