[Gravity] Add interface for database string escaping
Review Request #925 — Created March 6, 2023 and submitted — Latest diff uploaded
Information | |
---|---|
pprkut | |
Lunr | |
926 | |
e6a3aed... | |
Reviewers | |
lunr | |
This provides a bit better separation of concerns and allows more targeted mocking in the unit tests.
Unit tests
Diff Revision 1
This is not the most recent revision of the diff. The latest diff is revision 2. See what's changed.
orig
1
2
src/Lunr/Gravity/Database/DatabaseConnection.php |
---|
src/Lunr/Gravity/Database/DatabaseEscaperInterface.php |
---|
src/Lunr/Gravity/Database/DatabaseQueryEscaper.php |
---|
src/Lunr/Gravity/Database/MySQL/MySQLQueryEscaper.php |
---|
src/Lunr/Gravity/Database/MySQL/Tests/MySQLQueryEscaperTest.php |
---|
src/Lunr/Gravity/Database/SQLite3/SQLite3QueryEscaper.php |
---|
src/Lunr/Gravity/Database/SQLite3/Tests/SQLite3QueryEscaperTest.php |
---|
src/Lunr/Gravity/Database/Tests/DatabaseQueryEscaperTest.php |
---|