mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 06:25:51 +00:00
Add SQL_EXISTS macro to check if an entry exists.
This commit is contained in:
@@ -10,6 +10,9 @@
|
|||||||
if ((_db)->executeSQL(_strQuery)) \
|
if ((_db)->executeSQL(_strQuery)) \
|
||||||
for (bool _bMore = (_db)->startIterRows(); _bMore; _bMore = (_db)->getNextRow())
|
for (bool _bMore = (_db)->startIterRows(); _bMore; _bMore = (_db)->getNextRow())
|
||||||
|
|
||||||
|
#define SQL_EXISTS(_db, _strQuery) \
|
||||||
|
((_db)->executeSQL(_strQuery) && (_db)->startIterRows())
|
||||||
|
|
||||||
/*
|
/*
|
||||||
this maintains the connection to the database
|
this maintains the connection to the database
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user