VTK
vtkMySQLDatabasePrivate.h
Go to the documentation of this file.
1#ifndef vtkMySQLDatabasePrivate_h
2#define vtkMySQLDatabasePrivate_h
3
4#ifdef _WIN32
5# include <winsock.h> // mysql.h relies on the typedefs from here
6#endif
7
8#include "vtkIOMySQLModule.h" // For export macro
9#include <mysql.h> // needed for MYSQL typedefs
10#if !defined(MARIADB_BASE_VERSION) && !defined(MARIADB_VERSION_ID) && \
11 MYSQL_VERSION_ID >= 80001 && MYSQL_VERSION_ID != 80002
12typedef bool my_bool;
13#endif
14
15class VTKIOMYSQL_EXPORT vtkMySQLDatabasePrivate
16{
17public:
19 Connection( NULL )
20 {
21 mysql_init( &this->NullConnection );
22 }
23
25 MYSQL *Connection;
26};
27
28#endif // vtkMySQLDatabasePrivate_h
29// VTK-HeaderTest-Exclude: vtkMySQLDatabasePrivate.h