Feature: Dynamic SQLite Database Routing #2
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
psycodepath/hrp#2
Loading…
Add table
Add a link
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?
Motivation
Each tenant's data must be fully isolated to ensure security and privacy. Running separate SQLite databases per tenant is the cleanest way to achieve this.
Description
Refactor the Dependency Injection configuration for
PDOto dynamically resolve the database path based on the currentTenantContext.User Story
As a tenant, I want my data stored in a completely separate database file from other tenants so that there is zero risk of data leakage.
Gherkin Feature
Acceptance Criteria
PDOfactory inAppBootstrap.phpto fetchTenantContext.var/tenant_<tenant_id>.sqlite.