Dummy backend #94
Labels
No labels
bug
confirmed
critical
discussion
documentation
Doing
enhancement
suggestion
support
To Do
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: hazaar/hazaar-dbi#94
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?
Problem Statement
We need a way to easily test our code that relies on the Hazaar-DBI database abstraction layer without requiring a real database connection. While Hazaar-DBI already has backends for PostgreSQL, MySQL, and SQLite, we need a new backend that does not actually connect to a database but instead returns pre-defined data.
Who will benefit?
This feature will benefit developers who rely on Hazaar-DBI and need an easy way to test their code without requiring a real database connection.
Benefits and Risks
Benefits:
Risks:
Proposed Solution
We propose creating a new backend for Hazaar-DBI that does not connect to a real database but instead returns pre-defined data. This backend will be a "dummy" backend that can be used for testing purposes only. Developers can specify the data that should be returned by the dummy backend, and this data will be returned in response to any queries made through Hazaar-DBI. The dummy backend will be designed to mimic the behavior of a real database connection as closely as possible to ensure reliable testing results.
Examples
Similar dummy backends have been created for other database abstraction layers, such as the NullBackend for Doctrine.
Priority/Severity