mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-29 18:19:07 +02:00
* extract shared db conn + data repository * extract repository interface * protect against nested transactions * fix mysql and db conn creation * fix context management * remove query warpper * remove withContext and withLock wrapper * remove context from function call * remove in memory mode * fix nested transaction handling * use db directly * remove leftover test * remove pool close on error during conn creation
11 lines
211 B
Go
11 lines
211 B
Go
package db
|
|
|
|
// Engine identifies the SQL engine behind a Conn.
|
|
type Engine string
|
|
|
|
const (
|
|
SqliteStoreEngine Engine = "sqlite"
|
|
PostgresStoreEngine Engine = "postgres"
|
|
MysqlStoreEngine Engine = "mysql"
|
|
)
|