Skip to content

Commit 4ed4bbb

Browse files
committed
Replace database types with common package equivalents
- Refactored imports to replace references to the `database` package with corresponding types from the `common` package. - Streamlined configuration structs and interfaces by aliasing `common` equivalents in the `database` package for consistency. - Updated event stores, collectors, and service constructors to use `common.DatabaseManager` and `common.Connection` interfaces. Signed-off-by: Rubicon Lee <rex.raphael@outlook.com>
1 parent ad97dea commit 4ed4bbb

8 files changed

Lines changed: 607 additions & 492 deletions

File tree

forge.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ func (app *ForgeApplication) enableEventBusFeature(config *events.EventServiceCo
828828
return app.container.Register(common.ServiceDefinition{
829829
Name: common.EventBusKey,
830830
Type: (*events.EventBus)(nil),
831-
Constructor: func(logger common.Logger, metrics common.Metrics, dbManager database.DatabaseManager, configMgr common.ConfigManager) (events.EventBus, error) {
831+
Constructor: func(logger common.Logger, metrics common.Metrics, dbManager common.DatabaseManager, configMgr common.ConfigManager) (events.EventBus, error) {
832832
service := events.NewEventService(config, dbManager, logger, metrics)
833833
if err := service.Validate(); err != nil {
834834
return nil, err

pkg/common/database.go

Lines changed: 553 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)