src/dbapi/lang_bind/python/tests/python_ncbi_dbapi_test.cpp File Reference

#include <ncbi_pch.hpp>
#include <corelib/ncbiapp.hpp>
#include <corelib/ncbiargs.hpp>
#include <corelib/ncbienv.hpp>
#include <corelib/test_boost.hpp>
#include <corelib/plugin_manager.hpp>
#include "../pythonpp/pythonpp_emb.hpp"
#include "python_ncbi_dbapi_test.hpp"
#include <dbapi/driver/impl/dbapi_impl_context.hpp>

Include dependency graph for python_ncbi_dbapi_test.cpp:

Go to the source code of this file.

Defines

#define ALL_DRIVERS   "ctlib", "dblib", "ftds", "odbc"
#define DEF_SERVER   "THALBERG"
#define DEF_DRIVER   "ftds"

Functions

static const CTestArgumentsGetArgs (void)
static string GetSybaseClientVersion (void)
static void ExecuteStr (const char *cmd)
static void ExecuteSQL (const string &sql)
 NCBITEST_INIT_CMDLINE (arg_desc)
 NCBITEST_INIT_VARIABLES (parser)
 NCBITEST_AUTO_INIT ()
 NCBITEST_AUTO_FINI ()
 BOOST_AUTO_TEST_CASE (TestBasic)
 BOOST_AUTO_TEST_CASE (TestConnection)
 BOOST_AUTO_TEST_CASE (TestExecute)
 BOOST_AUTO_TEST_CASE (TestFetch)
 BOOST_AUTO_TEST_CASE (TestParameters)
 BOOST_AUTO_TEST_CASE (TestExecuteMany)
 BOOST_AUTO_TEST_CASE (TestTransaction)
 BOOST_AUTO_TEST_CASE (TestFromFile)
 BOOST_AUTO_TEST_CASE (Test_callproc)
 BOOST_AUTO_TEST_CASE (TestExecuteStoredProc)
 BOOST_AUTO_TEST_CASE (Test_SelectStmt)
 BOOST_AUTO_TEST_CASE (Test_LOB)
 BOOST_AUTO_TEST_CASE (Test_RaiseError)
 BOOST_AUTO_TEST_CASE (Test_Exception)
 BOOST_AUTO_TEST_CASE (TestScenario_1)
 BOOST_AUTO_TEST_CASE (TestScenario_2)

Variables

static pythonpp::CEngines_Engine


Define Documentation

#define ALL_DRIVERS   "ctlib", "dblib", "ftds", "odbc"
 

#define DEF_DRIVER   "ftds"
 

#define DEF_SERVER   "THALBERG"
 


Function Documentation

BOOST_AUTO_TEST_CASE TestScenario_2   ) 
 

Definition at line 1090 of file python_ncbi_dbapi_test.cpp.

References ExecuteStr().

BOOST_AUTO_TEST_CASE TestScenario_1   ) 
 

Definition at line 1043 of file python_ncbi_dbapi_test.cpp.

References ExecuteSQL(), and ExecuteStr().

BOOST_AUTO_TEST_CASE Test_Exception   ) 
 

Definition at line 742 of file python_ncbi_dbapi_test.cpp.

References ExecuteStr().

BOOST_AUTO_TEST_CASE Test_RaiseError   ) 
 

Definition at line 733 of file python_ncbi_dbapi_test.cpp.

References ExecuteSQL(), and ExecuteStr().

BOOST_AUTO_TEST_CASE Test_LOB   ) 
 

Definition at line 682 of file python_ncbi_dbapi_test.cpp.

References ExecuteSQL(), and ExecuteStr().

BOOST_AUTO_TEST_CASE Test_SelectStmt   ) 
 

Definition at line 612 of file python_ncbi_dbapi_test.cpp.

References ExecuteSQL(), and ExecuteStr().

BOOST_AUTO_TEST_CASE TestExecuteStoredProc   ) 
 

Definition at line 576 of file python_ncbi_dbapi_test.cpp.

References ExecuteStr().

BOOST_AUTO_TEST_CASE Test_callproc   ) 
 

Definition at line 490 of file python_ncbi_dbapi_test.cpp.

References ExecuteStr().

BOOST_AUTO_TEST_CASE TestFromFile   ) 
 

Definition at line 485 of file python_ncbi_dbapi_test.cpp.

References pythonpp::CEngine::ExecuteFile(), and s_Engine.

BOOST_AUTO_TEST_CASE TestTransaction   ) 
 

Definition at line 454 of file python_ncbi_dbapi_test.cpp.

References ExecuteStr().

BOOST_AUTO_TEST_CASE TestExecuteMany   ) 
 

Definition at line 442 of file python_ncbi_dbapi_test.cpp.

References ExecuteStr().

BOOST_AUTO_TEST_CASE TestParameters   ) 
 

Definition at line 387 of file python_ncbi_dbapi_test.cpp.

References ExecuteSQL(), and ExecuteStr().

BOOST_AUTO_TEST_CASE TestFetch   ) 
 

Definition at line 371 of file python_ncbi_dbapi_test.cpp.

References ExecuteStr().

BOOST_AUTO_TEST_CASE TestExecute   ) 
 

Definition at line 361 of file python_ncbi_dbapi_test.cpp.

References ExecuteStr().

BOOST_AUTO_TEST_CASE TestConnection   ) 
 

Definition at line 275 of file python_ncbi_dbapi_test.cpp.

References ExecuteStr(), and GetArgs.

BOOST_AUTO_TEST_CASE TestBasic   ) 
 

Definition at line 226 of file python_ncbi_dbapi_test.cpp.

References ExecuteStr().

static void ExecuteSQL const string &  sql  )  [static]
 

Definition at line 92 of file python_ncbi_dbapi_test.cpp.

References ExecuteStr().

Referenced by BOOST_AUTO_TEST_CASE().

static void ExecuteStr const char *  cmd  )  [static]
 

Definition at line 86 of file python_ncbi_dbapi_test.cpp.

References pythonpp::CEngine::ExecuteStr().

Referenced by BOOST_AUTO_TEST_CASE(), ExecuteSQL(), and NCBITEST_AUTO_INIT().

static const CTestArguments& GetArgs void   )  [static]
 

Definition at line 54 of file python_ncbi_dbapi_test.cpp.

static string GetSybaseClientVersion void   )  [static]
 

Definition at line 61 of file python_ncbi_dbapi_test.cpp.

References CDirEntry::DereferenceLink(), CNcbiEnvironment::Get(), CDirEntry::GetPath(), and impl::CDriverContext::ResetEnvSybase().

Referenced by NCBITEST_INIT_VARIABLES().

NCBITEST_AUTO_FINI  ) 
 

Definition at line 220 of file python_ncbi_dbapi_test.cpp.

NCBITEST_AUTO_INIT  ) 
 

Definition at line 174 of file python_ncbi_dbapi_test.cpp.

References CPluginManager_DllResolver::EnableGlobally(), ExecuteStr(), CNcbiEnvironment::Get(), GetArgs, s_Engine, and CNcbiEnvironment::Set().

NCBITEST_INIT_CMDLINE arg_desc   ) 
 

Definition at line 99 of file python_ncbi_dbapi_test.cpp.

References ALL_DRIVERS, DEF_DRIVER, DEF_SERVER, and CArgDescriptions::eString.

NCBITEST_INIT_VARIABLES parser   ) 
 

Definition at line 133 of file python_ncbi_dbapi_test.cpp.

References GetSybaseClientVersion(), and NStr::StringToDouble().


Variable Documentation

pythonpp::CEngine* s_Engine [static]
 

Definition at line 50 of file python_ncbi_dbapi_test.cpp.

Referenced by BOOST_AUTO_TEST_CASE(), and NCBITEST_AUTO_INIT().


Generated on Wed Dec 9 07:44:27 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Wed Dec 09 08:18:34 2009 by modify_doxy.py rev. 173732