Replies: 1 comment
-
#pragma once namespace HDCommon {
#define EXEC_SQL(sql, strSql, ...) HDCommon::execsql(sql, strSql, VA_ARGS) }; I think this part can be encapsulated into the soci as a database dao layer, what do you think of the experts。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
#define SOCI_EXEC(sql, strSql, ...) execSql(sql, strSql, VA_ARGS)
SOCI_EXEC(sql, SELECT_MAX_EVENTID_SQL, into(maxEventID));
SOCI_EXEC(sql, SELECT_MAX_EVENTID_SQL, into(maxEventID), use(111));
SOCI_EXEC(sql, SELECT_MAX_EVENTID_SQL, into(maxEventID), into(test222), use(test111) );
//sql << strSql, args...; ???
how to support ... Args for session operator <<
@mloskot
@tt4g
Beta Was this translation helpful? Give feedback.
All reactions