Chore: Disable CGo in tests (#108764)
* make cgo optional for sqlite * update go.mod; check error code differently * reduce api surface even more * move test errors into sqlite package * CGO_ENABLED=0 in unit tests * disable for enterprise, too * add driver name constant * remove unused constants * make test an integration one * try integration tests without cgo * implement error codes for modernc sqlite driver * typo fix * missing return * use error pointer as an interface * alias the driver * update workspace, check for test errors too * check error properly * add missing driver after rebase * fix missing import after rebase * debugging, lets try again * properly parse options, revert many previous changes * remove another log * better url parsing * revert test rename, leave it for later * revert reusedSession in unistore * revert more code * remove driver name * revert formatting * add integration test without cgo for sqlite * remove tracing and logging * bring driver alias back * fix type * wrong package
This commit is contained in:
@@ -12,13 +12,6 @@ import (
|
||||
//go:generate mockery --with-expecter --name Rows
|
||||
//go:generate mockery --with-expecter --exported --name result
|
||||
|
||||
const (
|
||||
DriverPostgres = "postgres"
|
||||
DriverMySQL = "mysql"
|
||||
DriverSQLite = "sqlite"
|
||||
DriverSQLite3 = "sqlite3"
|
||||
)
|
||||
|
||||
// DBProvider provides access to a SQL Database.
|
||||
type DBProvider interface {
|
||||
// Init initializes the SQL Database, running migrations if needed. It is
|
||||
|
||||
Reference in New Issue
Block a user