Mixes for Privacy and Anonymity in the Internet
Classes | Macros
CAAccountingDBInterface.hpp File Reference

Classes

class  CAAccountingDBInterface
 

Macros

#define MAX_DB_CONNECTIONS   3
 
#define PG_PROTOCOL_VERSION_3   3
 
#define RESULT_FORMAT_TEXT   0
 
#define PREPARED_STMT_NAME_STORE_CC   "storeCCStatement"
 
#define PREPARED_STMT_QUERY_STORE_CC    "UPDATE COSTCONFIRMATIONS SET BYTES = $1::bigint, XMLCC = $2::varchar(2000), SETTLED = $3::integer WHERE ACCOUNTNUMBER = $4::bigint AND CASCADE = $5::varchar(200)"
 
#define PREPARED_STMT_PARAMS_STORE_CC   5
 
#define STMT_CLEAR_ACCOUNT_STATUS   "DELETE FROM ACCOUNTSTATUS WHERE ACCOUNTNUMBER = '%llu'"
 

Macro Definition Documentation

◆ MAX_DB_CONNECTIONS

#define MAX_DB_CONNECTIONS   3

◆ PG_PROTOCOL_VERSION_3

#define PG_PROTOCOL_VERSION_3   3

◆ PREPARED_STMT_NAME_STORE_CC

#define PREPARED_STMT_NAME_STORE_CC   "storeCCStatement"

◆ PREPARED_STMT_PARAMS_STORE_CC

#define PREPARED_STMT_PARAMS_STORE_CC   5

◆ PREPARED_STMT_QUERY_STORE_CC

#define PREPARED_STMT_QUERY_STORE_CC    "UPDATE COSTCONFIRMATIONS SET BYTES = $1::bigint, XMLCC = $2::varchar(2000), SETTLED = $3::integer WHERE ACCOUNTNUMBER = $4::bigint AND CASCADE = $5::varchar(200)"

◆ RESULT_FORMAT_TEXT

#define RESULT_FORMAT_TEXT   0

◆ STMT_CLEAR_ACCOUNT_STATUS

#define STMT_CLEAR_ACCOUNT_STATUS   "DELETE FROM ACCOUNTSTATUS WHERE ACCOUNTNUMBER = '%llu'"