znone
2021-10-05 a77db3e50bb5429b17e8d89bf71403dfdf39985c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef _TEST_ODBC_H_
#define _TEST_ODBC_H_
 
#include "TestSuite.h"
#include "../include/qtl_odbc.hpp"
 
namespace qtl
{
    namespace odbc
    {
        class database;
    }
}
 
class TestOdbc : public TestSuite
{
public:
    TestOdbc();
 
private:
    void test_dual();
    void test_clear();
    void test_insert();
    void test_select();
    void test_update();
    void test_insert2();
    void test_iterator();
    void test_insert_blob();
    void test_select_blob();
    void test_insert_stream();
    void test_fetch_stream();
 
private:
    uint64_t id;
    qtl::odbc::environment m_env;
    qtl::odbc::database m_db;
    void get_md5(std::istream& is, unsigned char* result);
    static void print_hex(const unsigned char* data, size_t n);
};
 
#endif //_TEST_ODBC_H_