mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-29 15:35:50 +00:00
Add sqlEscape to utils.h.
This commit is contained in:
@@ -82,6 +82,11 @@ inline std::string strHex(const uint64 uiHost)
|
||||
return strHex((unsigned char*) &uBig, sizeof(uBig));
|
||||
}
|
||||
|
||||
inline static std::string sqlEscape(const std::string& strSrc)
|
||||
{
|
||||
return str(boost::format("X'%s'") % strHex(strSrc));
|
||||
}
|
||||
|
||||
template<class Iterator>
|
||||
bool isZero(Iterator first, int iSize)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user