|
| 1 | +<!--- |
| 2 | + Licensed to the Apache Software Foundation (ASF) under one |
| 3 | + or more contributor license agreements. See the NOTICE file |
| 4 | + distributed with this work for additional information |
| 5 | + regarding copyright ownership. The ASF licenses this file |
| 6 | + to you under the Apache License, Version 2.0 (the |
| 7 | + "License"); you may not use this file except in compliance |
| 8 | + with the License. You may obtain a copy of the License at |
| 9 | +
|
| 10 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | +
|
| 12 | + Unless required by applicable law or agreed to in writing, |
| 13 | + software distributed under the License is distributed on an |
| 14 | + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | + KIND, either express or implied. See the License for the |
| 16 | + specific language governing permissions and limitations |
| 17 | + under the License. |
| 18 | +--> |
| 19 | + |
| 20 | +# Connection Properties on Apache Arrow Flight SQL ODBC Driver |
| 21 | + |
| 22 | +## Setting ODBC Connection Properties |
| 23 | + |
| 24 | +ODBC connection parameters can be set in a connection string or defined in a DSN. On macOS and Linux, DSNs are typically defined in your system's `odbc.ini`. On Windows they are typically configured with the ODBC Data Source Administrator. |
| 25 | + |
| 26 | +The following sample connection string and sample DSN are two equivalent ways to connect to Arrow. |
| 27 | + |
| 28 | +### Sample Connection String |
| 29 | +``` |
| 30 | +driver={Apache Arrow Flight SQL ODBC Driver};host=127.0.0.1;port=12345;uid=sample_user;pwd=sample_password;useEncryption=false;useWideChar=true; |
| 31 | +``` |
| 32 | + |
| 33 | +### Sample DSN |
| 34 | +``` |
| 35 | +[Apache Arrow Flight SQL] |
| 36 | +driver = Apache Arrow Flight SQL ODBC Driver |
| 37 | +host = 127.0.0.1 |
| 38 | +port = 12345 |
| 39 | +uid = sample_user |
| 40 | +pwd = sample_password |
| 41 | +useEncryption = false |
| 42 | +useWideChar = true |
| 43 | +``` |
| 44 | + |
| 45 | +### Driver Connection Options |
| 46 | +| Option | Description | Default | |
| 47 | +|--------|-------------|---------------| |
| 48 | +| `driver` | Required: the driver for this ODBC driver. | `Apache Arrow Flight SQL ODBC Driver` | |
| 49 | +| `dsn` | Data Source Name used for configuring the connection. | `Apache Arrow Flight SQL` | |
| 50 | +| `host` | The IP address or hostname for the server. | `NONE` | |
| 51 | +| `port` | The TCP port number the server uses for ODBC connections. | `NONE` | |
| 52 | +| `user` | The username for authentication to the server. | `NONE` | |
| 53 | +| `user id` | The username for authentication to the server. | `NONE` | |
| 54 | +| `uid` | The username for authentication to the server. | `NONE` | |
| 55 | +| `password` | The password for authentication to the server. | `NONE` | |
| 56 | +| `pwd` | The password for authentication to the server. | `NONE` | |
| 57 | +| `token` | The personal access token for authentication to the server. | `NONE` | |
| 58 | +| `useEncryption` | Setting to determine if an SSL-encrypted connection should be used. | `true` | |
| 59 | +| `disableCertificateVerification` | Setting to determine if the driver should verify the host certificate against the trust store. | `false` | |
| 60 | +| `trustedCerts` | The full path of the .pem file containing certificates for the purpose of verifying the server. | `NONE` | |
| 61 | +| `useSystemTrustStore` | Setting to determine whether to use a CA certificate from the system's trust store or from a specified .pem file. | `true` on Windows, `false` on macOS & Linux | |
| 62 | +| `stringColumnLength` | Maximum length of a string column. Some apps may require a lower length. | `NONE` | |
| 63 | +| `useWideChar` | Setting to determine if wide characters should be used. Important for Unicode applications. | `true` on Windows, `false` on macOS & Linux | |
| 64 | +| `chunkBufferCapacity` | Capacity of a chunk buffer. Larger values will improve throughput at the cost of increased memory usage. | 5 | |
0 commit comments