HybridDb
HybridDb copied to clipboard
Undisposed connections and transactions stats
- Added a new file
- Changed the value of some keys in this file
- Removed unused using statements
- Fixed some tests that were failing due to missing escape characters in SQL queries
- Added a test for the StoreStats class, which is used by DocumentStore and Session to track undisposed connections and transactions (used when running integration tests)
- Added a new parameter to the constructor of SqlServerUsingRealTables and SqlServerUsingGlobalTempTables
- Changed the callers of these constructors to pass in this new parameter
- Initialized storeStats variable with value passed into constructor (SQLServer)
- Added calls for TransactionCreated/Disposed on StoreStats when creating or disposing transactions (DocumentTransaction)
- Added a new class SqlServerUsingLocalTempTables
- Changed the signature of constructor for SqlServerUsingRealTables to accept StoreStats as an argument
- Added some code in Dispose method of ManagedConnection and TransactionScopeWrapper classes to track undisposed connections/transactions