|
| 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 inside your system's odbc.ini. |
| 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=1234.56.789;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 = 1234.56.789 |
| 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 |
| 49 | +| `dsn` | Data Source Name used for configuring the connection. | `NONE` |
| 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` on Windows & Linux, `false` on MacOS |
| 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` |
| 62 | +| `stringColumnLength` | Maximum length of a string column. | `NONE` |
| 63 | +| `useWideChar` | Setting to determine if wide characters should be used. | `true` on Windows, `false` on MacOS & Linux |
| 64 | +| `chunkBufferCapacity` | Capacity of a chunk buffer. | 5 |
0 commit comments