#define DB_NULLIDENTIFIER 0
#define DB_CREATE 1
+#define DB_CALL 2
#ifdef DBAPI_OVERRIDE
#undef USE_DBAPI_PGSQL
#define dbgetvalue(result, column) pqgetvalue(result, column)
#define dbclear(result) pqclear(result)
+#define dbcall(id, handler, tag, function, ...) pqasyncqueryf(id, handler, tag, (handler) == NULL ? DB_CALL : 0, "SELECT %s(%s)", function , ##__VA_ARGS__)
#endif /* DBAPI_PGSQL */
#define dbclear(result) sqliteclear(result)
+#define dbcall(...) abort() /* HA */
+
#endif /* DBAPI_SQLITE */
#endif /* BUILDING_DBAPI */