Homec4science

Add a simple interface to abstract database escaping from aphront

Authored by Joel Seligstein <joel@madapparelinc.com> on Jun 4 2013, 19:54.

Description

Add a simple interface to abstract database escaping from aphront

Summary: Currently the qsprintf require an AphrontDatabaseConnection to escape strings which prevents others from using qsprintf without using aphront. Instead, this creates an interface that the AphrontMySQLDatabaseConnection implements that then allows any implementer to use qsprintf.

Test Plan: Not actually sure how to test this. @epriestley: Can you suggest some proper ways to test this besides "use phabricator"?

Reviewers: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D6123

Details

Committed
epriestley <git@epriestley.com>Jun 4 2013, 19:55
Pushed
aubortMar 17 2017, 12:03
Parents
rPHU767e18c163ec: Minor, fix a trim() issue with resolveBinary() on non-Windows systems.
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHU810fe3a8bf15: Add a simple interface to abstract database escaping from aphront (authored by Joel Seligstein <joel@madapparelinc.com>).Jun 4 2013, 19:55