mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-03 20:19:07 +02:00
updated GetNetworkMapData test to verify all calls -- policies, routes, etc
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io>
This commit is contained in:
@@ -84,6 +84,11 @@ func (s *SqliteStore) BeginTx(ctx context.Context) (networkmapdb.NetworkMapDBSto
|
||||
return &SqliteStoreConn{Conn: tx}, nil
|
||||
}
|
||||
|
||||
func (s *SqliteStore) Exec(_ context.Context, query string, args ...any) error {
|
||||
_, err := s.Db.Exec(query, args...)
|
||||
return err
|
||||
}
|
||||
|
||||
func (sc *SqliteStoreConn) RollbackTx(ctx context.Context) error {
|
||||
tx, ok := sc.Conn.(*sql.Tx)
|
||||
if !ok {
|
||||
|
||||
Reference in New Issue
Block a user