~ubuntu-branches/ubuntu/quantal/mysql-workbench/quantal

« back to all changes in this revision

Viewing changes to ext/cppconn/driver/nativeapi/mysql_native_driver_wrapper.h

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2012-03-01 21:57:30 UTC
  • Revision ID: package-import@ubuntu.com-20120301215730-o7y8av8y38n162ro
Tags: upstream-5.2.38+dfsg
ImportĀ upstreamĀ versionĀ 5.2.38+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
 
3
 
 
4
The MySQL Connector/C++ is licensed under the terms of the GPLv2
 
5
<http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
 
6
MySQL Connectors. There are special exceptions to the terms and
 
7
conditions of the GPLv2 as it is applied to this software, see the
 
8
FLOSS License Exception
 
9
<http://www.mysql.com/about/legal/licensing/foss-exception.html>.
 
10
 
 
11
This program is free software; you can redistribute it and/or modify
 
12
it under the terms of the GNU General Public License as published
 
13
by the Free Software Foundation; version 2 of the License.
 
14
 
 
15
This program is distributed in the hope that it will be useful, but
 
16
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 
17
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
 
18
for more details.
 
19
 
 
20
You should have received a copy of the GNU General Public License along
 
21
with this program; if not, write to the Free Software Foundation, Inc.,
 
22
51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA
 
23
*/
 
24
 
 
25
 
 
26
 
 
27
#ifndef _MYSQL_NATIVE_DRIVER_WRAPPER_H_
 
28
#define _MYSQL_NATIVE_DRIVER_WRAPPER_H_
 
29
 
 
30
#include <boost/shared_ptr.hpp>
 
31
 
 
32
#include "native_driver_wrapper.h"
 
33
 
 
34
namespace sql
 
35
{
 
36
namespace mysql
 
37
{
 
38
namespace NativeAPI
 
39
{
 
40
 
 
41
class IMySQLCAPI;
 
42
 
 
43
class MySQL_NativeDriverWrapper : public NativeDriverWrapper
 
44
{
 
45
        boost::shared_ptr<IMySQLCAPI> api;
 
46
 
 
47
        MySQL_NativeDriverWrapper(){}
 
48
 
 
49
public:
 
50
        MySQL_NativeDriverWrapper(const ::sql::SQLString & clientFileName);
 
51
        ~MySQL_NativeDriverWrapper();
 
52
 
 
53
        NativeConnectionWrapper & conn_init();
 
54
                ;
 
55
        void thread_end();
 
56
 
 
57
        void thread_init();
 
58
};
 
59
 
 
60
} /* NativeAPI */
 
61
} /* mysql */
 
62
} /* sql */
 
63
 
 
64
#endif /* _MYSQL_NATIVE_DRIVER_WRAPPER_H_ */
 
65
 
 
66
/*
 
67
 * Local variables:
 
68
 * tab-width: 4
 
69
 * c-basic-offset: 4
 
70
 * End:
 
71
 * vim600: noet sw=4 ts=4 fdm=marker
 
72
 * vim<600: noet sw=4 ts=4
 
73
 */