Add multi-database provider configuration #62
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
in progress
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
joezombie/castr#62
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent Epic
Part of #58 - Migrate to Entity Framework Core
Description
Implement configuration system to support multiple database providers (SQLite, PostgreSQL, SQL Server, MariaDB) with runtime selection.
Configuration Schema
appsettings.json
Environment Variables
Provider Options
SQLiteData Source=/data/castr.dbPostgreSQLHost=localhost;Database=castr;Username=user;Password=passSqlServerServer=localhost;Database=castr;User Id=sa;Password=pass;TrustServerCertificate=trueMariaDBServer=localhost;Database=castr;User=user;Password=passConfiguration Model
DbContext Factory
Program.cs Integration
Docker Compose Examples
SQLite (default)
PostgreSQL
Tasks
Acceptance Criteria
Completed: Added multi-database provider support for SQLite, PostgreSQL, SQL Server, and MySQL/MariaDB via DatabaseConfiguration. Includes proper error handling for invalid provider names and MySQL auto-detection failures.