2011-10-31 06:37:12 +00:00
|
|
|
#pragma once
|
2010-05-21 19:52:50 +00:00
|
|
|
|
2012-11-02 20:13:41 +00:00
|
|
|
#define DBMS_NAME "ClickHouse"
|
|
|
|
#define DBMS_VERSION_MAJOR 0
|
|
|
|
#define DBMS_VERSION_MINOR 0
|
2012-03-09 15:46:52 +00:00
|
|
|
|
2012-11-02 20:13:41 +00:00
|
|
|
#define DBMS_DEFAULT_HOST "localhost"
|
|
|
|
#define DBMS_DEFAULT_PORT 9000
|
|
|
|
#define DBMS_DEFAULT_PORT_STR "9000"
|
|
|
|
#define DBMS_DEFAULT_CONNECT_TIMEOUT_SEC 10
|
2012-11-06 18:20:00 +00:00
|
|
|
#define DBMS_DEFAULT_CONNECT_TIMEOUT_WITH_FAILOVER_MS 50
|
2012-11-02 20:13:41 +00:00
|
|
|
#define DBMS_DEFAULT_SEND_TIMEOUT_SEC 300
|
|
|
|
#define DBMS_DEFAULT_RECEIVE_TIMEOUT_SEC 300
|
|
|
|
#define DBMS_DEFAULT_POLL_INTERVAL 10
|
2012-07-06 18:12:52 +00:00
|
|
|
|
2012-11-02 20:13:41 +00:00
|
|
|
#define DEFAULT_BLOCK_SIZE 1048576
|
|
|
|
#define DEFAULT_MAX_QUERY_SIZE 1048576
|
|
|
|
#define SHOW_CHARS_ON_SYNTAX_ERROR 160L
|
|
|
|
#define DEFAULT_MAX_THREADS 8
|
|
|
|
#define DEFAULT_MAX_DISTRIBUTED_CONNECTIONS 100
|
|
|
|
#define DEFAULT_INTERACTIVE_DELAY 100000
|
|
|
|
#define DBMS_DEFAULT_DISTRIBUTED_CONNECTIONS_POOL_SIZE 128
|
|
|
|
#define DBMS_CONNECTION_POOL_WITH_FAILOVER_DEFAULT_MAX_TRIES 3
|
2012-08-26 11:14:52 +00:00
|
|
|
|
2013-02-01 19:02:04 +00:00
|
|
|
#define DBMS_MIN_REVISION_WITH_PER_QUERY_SETTINGS 28558
|
|
|
|
|
2013-02-03 18:39:09 +00:00
|
|
|
/// Используется в методе reserve, когда известно число строк, но неизвестны их размеры.
|
|
|
|
#define DBMS_APPROX_STRING_SIZE 64
|
|
|
|
|
2012-08-26 11:14:52 +00:00
|
|
|
/// Суффикс имени для столбца, содержащего смещения массива.
|
2012-11-02 20:13:41 +00:00
|
|
|
#define ARRAY_SIZES_COLUMN_NAME_SUFFIX ".size"
|