NCBI C++ ToolKit
Macros | Functions | Variables
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 <dbapi/driver/impl/dbapi_impl_context.hpp>
#include <dbapi/driver/dbapi_driver_conn_params.hpp>
#include "python_ncbi_dbapi_test.hpp"
+ Include dependency graph for python_ncbi_dbapi_test.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Macros

#define ALL_DRIVERS   "ctlib", "ftds", "ftds100", "ftds14", "odbc"
 
#define DEF_SERVER   "MSDEV1"
 
#define DEF_DRIVER   "ftds"
 

Functions

static const CTestArgumentsGetArgs (void)
 
static string GetSybaseClientVersion (void)
 
static void ExecuteStr (const char *cmd)
 
static void ExecuteStr (const string &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 (TestStoredProcByPos)
 
 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_1_ByPos)
 

Variables

static pythonpp::CEngines_Engine
 

Macro Definition Documentation

◆ ALL_DRIVERS

#define ALL_DRIVERS   "ctlib", "ftds", "ftds100", "ftds14", "odbc"

◆ DEF_DRIVER

#define DEF_DRIVER   "ftds"

◆ DEF_SERVER

#define DEF_SERVER   "MSDEV1"

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/17]

BOOST_AUTO_TEST_CASE ( Test_callproc  )

Definition at line 513 of file python_ncbi_dbapi_test.cpp.

References ExecuteStr().

◆ BOOST_AUTO_TEST_CASE() [2/17]

BOOST_AUTO_TEST_CASE ( Test_Exception  )

Definition at line 801 of file python_ncbi_dbapi_test.cpp.

References ExecuteStr().

◆ BOOST_AUTO_TEST_CASE() [3/17]

BOOST_AUTO_TEST_CASE ( Test_LOB  )

Definition at line 741 of file python_ncbi_dbapi_test.cpp.

References ExecuteSQL(), ExecuteStr(), long_string, and sql.

◆ BOOST_AUTO_TEST_CASE() [4/17]

BOOST_AUTO_TEST_CASE ( Test_RaiseError  )

Definition at line 792 of file python_ncbi_dbapi_test.cpp.

References ExecuteSQL(), and ExecuteStr().

◆ BOOST_AUTO_TEST_CASE() [5/17]

BOOST_AUTO_TEST_CASE ( Test_SelectStmt  )

Definition at line 671 of file python_ncbi_dbapi_test.cpp.

References ExecuteSQL(), ExecuteStr(), long_string, and sql.

◆ BOOST_AUTO_TEST_CASE() [6/17]

BOOST_AUTO_TEST_CASE ( TestBasic  )

Definition at line 238 of file python_ncbi_dbapi_test.cpp.

References ExecuteStr().

◆ BOOST_AUTO_TEST_CASE() [7/17]

BOOST_AUTO_TEST_CASE ( TestConnection  )

Definition at line 287 of file python_ncbi_dbapi_test.cpp.

References ExecuteStr(), and GetArgs().

◆ BOOST_AUTO_TEST_CASE() [8/17]

BOOST_AUTO_TEST_CASE ( TestExecute  )

Definition at line 373 of file python_ncbi_dbapi_test.cpp.

References ExecuteStr().

◆ BOOST_AUTO_TEST_CASE() [9/17]

BOOST_AUTO_TEST_CASE ( TestExecuteMany  )

Definition at line 465 of file python_ncbi_dbapi_test.cpp.

References ExecuteStr().

◆ BOOST_AUTO_TEST_CASE() [10/17]

BOOST_AUTO_TEST_CASE ( TestExecuteStoredProc  )

Definition at line 599 of file python_ncbi_dbapi_test.cpp.

References ExecuteStr().

◆ BOOST_AUTO_TEST_CASE() [11/17]

BOOST_AUTO_TEST_CASE ( TestFetch  )

Definition at line 383 of file python_ncbi_dbapi_test.cpp.

References ExecuteStr().

◆ BOOST_AUTO_TEST_CASE() [12/17]

BOOST_AUTO_TEST_CASE ( TestFromFile  )

Definition at line 508 of file python_ncbi_dbapi_test.cpp.

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

◆ BOOST_AUTO_TEST_CASE() [13/17]

BOOST_AUTO_TEST_CASE ( TestParameters  )

Definition at line 399 of file python_ncbi_dbapi_test.cpp.

References ExecuteSQL(), and ExecuteStr().

◆ BOOST_AUTO_TEST_CASE() [14/17]

BOOST_AUTO_TEST_CASE ( TestScenario_1  )

Definition at line 1102 of file python_ncbi_dbapi_test.cpp.

References ExecuteSQL(), ExecuteStr(), and sql.

◆ BOOST_AUTO_TEST_CASE() [15/17]

BOOST_AUTO_TEST_CASE ( TestScenario_1_ByPos  )

Definition at line 1198 of file python_ncbi_dbapi_test.cpp.

References ExecuteSQL(), ExecuteStr(), and sql.

◆ BOOST_AUTO_TEST_CASE() [16/17]

BOOST_AUTO_TEST_CASE ( TestStoredProcByPos  )

Definition at line 635 of file python_ncbi_dbapi_test.cpp.

References ExecuteStr().

◆ BOOST_AUTO_TEST_CASE() [17/17]

BOOST_AUTO_TEST_CASE ( TestTransaction  )

Definition at line 477 of file python_ncbi_dbapi_test.cpp.

References ExecuteStr().

◆ ExecuteSQL()

static void ExecuteSQL ( const string sql)
static

Definition at line 99 of file python_ncbi_dbapi_test.cpp.

References cmd, ExecuteStr(), sql, and string.

Referenced by BOOST_AUTO_TEST_CASE().

◆ ExecuteStr() [1/2]

static void ExecuteStr ( const char *  cmd)
static

◆ ExecuteStr() [2/2]

static void ExecuteStr ( const string cmd)
static

Definition at line 93 of file python_ncbi_dbapi_test.cpp.

References cmd, and pythonpp::CEngine::ExecuteStr().

◆ GetArgs()

static const CTestArguments& GetArgs ( void  )
static

◆ GetSybaseClientVersion()

static string GetSybaseClientVersion ( void  )
static

◆ NCBITEST_AUTO_FINI()

NCBITEST_AUTO_FINI ( )

Definition at line 232 of file python_ncbi_dbapi_test.cpp.

◆ NCBITEST_AUTO_INIT()

NCBITEST_AUTO_INIT ( )

◆ NCBITEST_INIT_CMDLINE()

NCBITEST_INIT_CMDLINE ( arg_desc  )

◆ NCBITEST_INIT_VARIABLES()

NCBITEST_INIT_VARIABLES ( parser  )

Variable Documentation

◆ s_Engine

pythonpp::CEngine* s_Engine
static

Definition at line 51 of file python_ncbi_dbapi_test.cpp.

Referenced by BOOST_AUTO_TEST_CASE(), and NCBITEST_AUTO_INIT().

Modified on Mon Jun 17 05:09:13 2024 by modify_doxy.py rev. 669887