3
0

Refactor and improve DAL implementation and init

Changes:
 - Boot initialization follows standard impl
 - Improved DAL connection management (adding, reloading, removing)
 - Cleaner and more detailed logging
 - Primary store connection is now reused when added to DAL
This commit is contained in:
Denis Arh
2022-07-01 18:09:38 +02:00
parent 8cbb2026e0
commit bdd9318f93
23 changed files with 496 additions and 506 deletions
@@ -32,6 +32,9 @@ type (
// and it's highly unlikely we'll support different/multiple logging "backend"
SetLogger(*zap.Logger)
// Returns underlying store as DAL connection
ToDalConn() dal.Connection
// Tx is a transaction handler
Tx(context.Context, func(context.Context, Storer) error) error