VTK  9.3.1
vtkMySQLDatabasePrivate.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
3 #ifndef vtkMySQLDatabasePrivate_h
4 #define vtkMySQLDatabasePrivate_h
5 
6 #ifdef _WIN32
7 #include <winsock.h> // mysql.h relies on the typedefs from here
8 #endif
9 
10 #include "vtkIOMySQLModule.h" // For export macro
11 #include <mysql.h> // needed for MYSQL typedefs
12 
13 VTK_ABI_NAMESPACE_BEGIN
14 class VTKIOMYSQL_EXPORT vtkMySQLDatabasePrivate
15 {
16 public:
18  : Connection(nullptr)
19  {
20  mysql_init(&this->NullConnection);
21  }
22 
24  MYSQL* Connection;
25 };
26 
27 VTK_ABI_NAMESPACE_END
28 #endif // vtkMySQLDatabasePrivate_h
29 // VTK-HeaderTest-Exclude: vtkMySQLDatabasePrivate.h