Mixe for Privacy and Anonymity in the Internet
Classes | Macros
CAAccountingDBInterface.hpp File Reference
#include "doxygen.h"
#include "CAQueue.hpp"
#include "CAXMLCostConfirmation.hpp"
#include "CAThread.hpp"
Include dependency graph for CAAccountingDBInterface.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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

Definition at line 36 of file CAAccountingDBInterface.hpp.

◆ PG_PROTOCOL_VERSION_3

#define PG_PROTOCOL_VERSION_3   3

Definition at line 37 of file CAAccountingDBInterface.hpp.

◆ PREPARED_STMT_NAME_STORE_CC

#define PREPARED_STMT_NAME_STORE_CC   "storeCCStatement"

Definition at line 41 of file CAAccountingDBInterface.hpp.

◆ PREPARED_STMT_PARAMS_STORE_CC

#define PREPARED_STMT_PARAMS_STORE_CC   5

Definition at line 44 of file CAAccountingDBInterface.hpp.

◆ 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)"

Definition at line 42 of file CAAccountingDBInterface.hpp.

◆ RESULT_FORMAT_TEXT

#define RESULT_FORMAT_TEXT   0

Definition at line 39 of file CAAccountingDBInterface.hpp.

◆ STMT_CLEAR_ACCOUNT_STATUS

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

Definition at line 46 of file CAAccountingDBInterface.hpp.