Skip to content

Commit bc7f47b

Browse files
committed
Update the odbc.ini example file
1 parent 7f36add commit bc7f47b

File tree

1 file changed

+32
-29
lines changed

1 file changed

+32
-29
lines changed

packaging/odbc.ini.sample

Lines changed: 32 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -8,37 +8,40 @@ ClickHouse DSN (Unicode) = ClickHouse ODBC Driver (Unicode)
88
Driver = ClickHouse ODBC Driver (ANSI)
99
Description = DSN (localhost) for ClickHouse ODBC Driver (ANSI)
1010

11-
### New all-in one way to specify connection with [optional] settings:
12-
# Url = https://default:password@localhost:8443/query?database=default&max_result_bytes=4000000&buffer_size=3000000
13-
11+
### All-in one way to specify connection with [optional] settings:
12+
# Url = https://default:password@localhost:8443/query?database=default
13+
#
1414
# ...or minimal (will connect to port 8443 if protocol is "https://" or 8123 if it is "http://"):
1515
# Url = https://localhost
16-
17-
### Old way:
18-
# Server = localhost
19-
# Database = default
20-
# UID = default
21-
# PWD = password
22-
# Port = 8123
23-
# Proto = http
24-
25-
# Timeout for http queries to ClickHouse server (default is 30 seconds)
26-
# Timeout=60
27-
28-
# SSLMode:
29-
# allow - ignore self-signed and bad certificates
30-
# require - check certificates (and fail connection if something wrong)
31-
# SSLMode = require
32-
# PrivateKeyFile =
33-
# CertificateFile =
34-
# CALocation =
35-
36-
# DriverLog = yes
37-
# DriverLogFile = /tmp/chlickhouse-odbc-driver.log
38-
39-
# AutoSessionId = off
40-
41-
# ClientName =
16+
#
17+
# Otherwise you can set the Server, Database, UID, PWD, Port and Proto parameters.
18+
#
19+
# Possible parameters with default values:
20+
#
21+
# Url = # URL that points to a running ClickHouse instance, may include username, password, port, database, etc.
22+
# Proto = # One of: http, https. When empty it is deduced from Url, or from Port and SSLMode: https if 443 or 8443 or SSLMode is not empty, http otherwise.
23+
# Server = # IP or hostname of a server with a running ClickHouse instance on it. When empty it is deduced from URL.
24+
# Host = # Alias for Server.
25+
# Port = # Port on which the ClickHouse instance is listening. When empty it is deduced from Url, or from Proto: 8443 if https, 8123 otherwise.
26+
# Path = /query # The URL path.
27+
# Username = default
28+
# UID = # Alias for Username.
29+
# Password =
30+
# PWD = # Alias for Password.
31+
# Database = default # Database name.
32+
# Timeout = 30 # Connection timeout in seconds.
33+
# VerifyConnectionEarly = off # Verify the connection and credentials during SQLConnect and similar calls, otherwise it is done when querying the data.
34+
# SSLMode = # Certificate verification method (for TLS/SSL connections, ignored in Windows), use `allow` to ignore self-signed and bad certificates.
35+
# # Other values, including empty, enable strict verification
36+
# PrivateKeyFile = # Path to private key file (for TLS/SSL connections, ignored in Windows)
37+
# CertificateFile = # Path to certificate file (for TLS/SSL connections, ignored in Windows)
38+
# CALocation = # Path to the file or directory containing the CA/root certificates (used by TLS/SSL connections, ignored in Windows)
39+
# HugeIntAsString = # Report integer column types that may underflow or overflow 64-bit signed integer (SQL_BIGINT) as a String/SQL_VARCHAR
40+
# DriverLog = off # Enable or disable the extended driver logging (enabled by default for Debug builds)
41+
# DriverLogFile = \temp\clickhouse-odbc-driver.log # or /tmp/clickhouse-odbc-driver.log on Linux and macOS.
42+
# # Path to the extended driver log file
43+
# AutoSessionId = off # Auto generate session_id required to use some features of CH (e.g. TEMPORARY TABLE)
44+
# ClientName = # Sets additional information about the calling application. This string will be used as a prefix for the User-Agent header.
4245

4346
[ClickHouse DSN (Unicode)]
4447
Driver = ClickHouse ODBC Driver (Unicode)

0 commit comments

Comments
 (0)