mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-18 22:40:50 +00:00
5db73c5d31
* Allow build without libmysqlclient * better condition * cmake option ENABLE_MYSQL * fix formatting * Update find_mysqlclient.cmake * Update find_mysqlclient.cmake * Update Types.h * Better throw's
37 lines
537 B
C++
37 lines
537 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <Poco/Types.h>
|
|
|
|
#if USE_MYSQL
|
|
struct st_mysql;
|
|
#else
|
|
struct st_mysql {};
|
|
#endif
|
|
|
|
using MYSQL = st_mysql;
|
|
|
|
struct st_mysql_res;
|
|
using MYSQL_RES = st_mysql_res;
|
|
|
|
using MYSQL_ROW = char**;
|
|
|
|
struct st_mysql_field;
|
|
using MYSQL_FIELD = st_mysql_field;
|
|
|
|
|
|
|
|
namespace mysqlxx
|
|
{
|
|
|
|
using UInt64 = Poco::UInt64;
|
|
using Int64 = Poco::Int64;
|
|
using UInt32 = Poco::UInt32;
|
|
using Int32 = Poco::Int32;
|
|
|
|
using MYSQL_LENGTH = unsigned long;
|
|
using MYSQL_LENGTHS = MYSQL_LENGTH *;
|
|
using MYSQL_FIELDS = MYSQL_FIELD *;
|
|
|
|
}
|