t_db_query.cpp File Reference

#include <db_freetds/common.h>
#include <db_freetds/query_handler.h>
#include <db_freetds/login_info.h>
#include <loggers/file_logger.h>
#include <opsystem/application_base.h>
#include <opsystem/path_configuration.h>

Include dependency graph for t_db_query.cpp:

Go to the source code of this file.

Defines

#define LOG(s)   STAMPED_EMERGENCY_LOG(program_wide_logger(), s)
#define SET_LOGGER

Functions

int main (int argc, char **argv)

Variables

 HOOPLE_STARTUP_CODE
 Supports making basic queries on a database table using db-lib from freetds.
const char * DB_SECTION = "db_query"
database_login_info _global_db_info (DB_SECTION)


Define Documentation

#define LOG (  )     STAMPED_EMERGENCY_LOG(program_wide_logger(), s)

Definition at line 26 of file t_db_query.cpp.

#define SET_LOGGER

Value:

{ \
  log_base *old_log = set_PW_logger_for_combo \
      (path_configuration::make_logfile_name("db_engine.log"), \
      file_logger::LOG_FILE_SIZE, true); \
  WHACK(old_log); \
}

Definition at line 33 of file t_db_query.cpp.

Referenced by main().


Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 42 of file t_db_query.cpp.

References _global_db_info, database_login_info::database, LOG, out, query_handler::prepare_for_query(), query_handler::process_query(), istring::s(), SET_LOGGER, and WHACK().


Variable Documentation

database_login_info _global_db_info(DB_SECTION)

Referenced by main().

const char* DB_SECTION = "db_query"

Definition at line 28 of file t_db_query.cpp.

HOOPLE_STARTUP_CODE

Supports making basic queries on a database table using db-lib from freetds.

Definition at line 24 of file t_db_query.cpp.


Generated on Fri Nov 21 04:31:32 2008 for HOOPLE Libraries by  doxygen 1.5.1