Skip to content

feat: Add database type configuration and centralized database service - #522

Merged
sai-kumar-peddireddy merged 5 commits into
grom-setupfrom
db-connection-management
Jul 14, 2026
Merged

feat: Add database type configuration and centralized database service#522
sai-kumar-peddireddy merged 5 commits into
grom-setupfrom
db-connection-management

Conversation

@sai-kumar-peddireddy

@sai-kumar-peddireddy sai-kumar-peddireddy commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Description

  • Implemented foundational database connection infrastructure

closes #418

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

Checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have run tests that prove my fix is effective or that my feature works
  • I have updated the CHANGELOG.md file accordingly

@sai-kumar-peddireddy sai-kumar-peddireddy added this to the 1.0.0 milestone Jul 9, 2026
@sai-kumar-peddireddy sai-kumar-peddireddy self-assigned this Jul 9, 2026
@boring-cyborg boring-cyborg Bot added the test Tests label Jul 9, 2026
…ation

- Added a new DatabaseService to manage database connections using GORM.
- Introduced singleton pattern for DatabaseService to ensure a single instance.
- Implemented SQLite and PostgreSQL initialization logic with connection pooling.
- Created a StoreRegistry to manage data stores for user, role, and claim operations.
- Added AuthDomain interface for authentication and authorization operations.
- Developed AuthService to handle user retrieval with fallback logic.
- Implemented GormContextLogger for logging SQL queries with context.
- Created tests for SQLite and PostgreSQL initialization, connection pooling, and service methods.
- Refactored existing database service references to use the new connection management structure.
…iple orchestrator and service provider files

- Updated import statements in orchestrator files to reflect the new database package structure.
- Adjusted import paths in service provider files to use the updated database models.
- Modified test files to ensure they reference the correct models from the database package.
- Ensured consistency in import paths across the codebase for better maintainability and clarity.
@sai-kumar-peddireddy
sai-kumar-peddireddy merged commit 8526c0c into grom-setup Jul 14, 2026
2 checks passed
@sai-kumar-peddireddy
sai-kumar-peddireddy deleted the db-connection-management branch July 14, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test Tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant