ClickHouse/libs/libmysqlxx/include/mysqlxx/Types.h
proller 5db73c5d31 Allow build without libmysqlclient (#698)
* 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
2017-04-14 22:38:56 +03:00

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 *;
}