Skip to content

Commit 8e359fc

Browse files
authored
Merge pull request #278 from fdcastel/new-readme
Adds Connection String Parameters section to README.md.
2 parents 8ae337d + bf27b90 commit 8e359fc

1 file changed

Lines changed: 85 additions & 0 deletions

File tree

README.md

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ All the new features and fixes are documented here -
1212
* [Release Notes](https://html-preview.github.io/?url=https://github.com/FirebirdSQL/firebird-odbc-driver/blob/master/Install/ReleaseNotes_v3.0.html)
1313
* [ChangeLog](https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/master/ChangeLog_v3.0)
1414

15+
16+
1517
## Downloads
18+
1619
The latest build artifacts:
1720
* [Windows installation package](https://github.com/user-attachments/files/19207749/win_installers.zip) [![MSBuild](https://github.com/FirebirdSQL/firebird-odbc-driver/actions/workflows/msbuild.yml/badge.svg)](https://github.com/FirebirdSQL/firebird-odbc-driver/actions/workflows/msbuild.yml)
1821
* [Linux x86-64](https://github.com/user-attachments/files/19207739/linux_libs.zip) [![Linux](https://github.com/FirebirdSQL/firebird-odbc-driver/actions/workflows/linux.yml/badge.svg)](https://github.com/FirebirdSQL/firebird-odbc-driver/actions/workflows/linux.yml)
@@ -21,6 +24,88 @@ The latest build artifacts:
2124
You can also download the lastest & archive build packages here: https://github.com/FirebirdSQL/firebird-odbc-driver/wiki
2225

2326

27+
28+
## Connection String Parameters
29+
30+
### Required Parameters
31+
32+
| Parameter | Aliases | Description | Example |
33+
|-----------|---------|-------------|---------|
34+
| **DRIVER** | - | ODBC driver name | `Firebird ODBC Driver` |
35+
| **DBNAME** | DATABASE | Database path or alias | `localhost:C:\data\mydb.fdb` |
36+
37+
### Authentication Parameters
38+
39+
| Parameter | Aliases | Description | Default |
40+
|-----------|---------|-------------|---------|
41+
| **UID** | USER | Database username | (none) |
42+
| **PWD** | PASSWORD | Database password | (none) |
43+
| **ROLE** | - | SQL role to assume | (none) |
44+
45+
### Optional Parameters
46+
47+
| Parameter | Aliases | Description | Values | Default |
48+
|-----------|---------|-------------|--------|---------|
49+
| **DSN** | - | Data source name | Any valid DSN | (none) |
50+
| **CHARSET** | - | Character set for connection | `UTF8`, `WIN1252`, `ISO8859_1`, etc. | `NONE` |
51+
| **CLIENT** | - | Path to Firebird client library | Full path to fbclient.dll/so | (auto-detect) |
52+
| **DIALECT** | - | SQL dialect | `1` or `3` | `3` |
53+
| **READONLY** | - | Read-only transaction mode | `Y` or `N` | `N` |
54+
| **NOWAIT** | - | No-wait lock resolution | `Y` or `N` | `N` |
55+
| **TIMEOUT** | - | Connection timeout (seconds) | Integer | `0` (disabled) |
56+
| **QUOTED** | QUOTEDIDENTIFIER | Enable quoted identifiers | `Y` or `N` | `Y` |
57+
| **SENSITIVE** | SENSITIVEIDENTIFIER | Case-sensitive identifiers | `Y` or `N` | `N` |
58+
| **AUTOQUOTED** | AUTOQUOTEDIDENTIFIER | Auto-quote identifiers | `Y` or `N` | `N` |
59+
| **USESCHEMA** | USESCHEMAIDENTIFIER | Schema handling mode | `0`, `1`, `2` | `0` |
60+
| **LOCKTIMEOUT** | - | Lock timeout for transactions | Integer (seconds) | (none) |
61+
| **SAFETHREAD** | - | Thread-safe operations | `Y` or `N` | `Y` |
62+
| **PAGESIZE** | - | Database page size (creation only) | `4096`, `8192`, `16384` | `8192` |
63+
| **ENABLECOMPATBIND** | - | Enable compatible bindings | `Y` or `N` | `Y` |
64+
| **SETCOMPATBIND** | - | Set compatibility binding mode | Firebird compat string | (none) |
65+
| **ENABLEWIRECOMPRESSION** | - | Enable wire protocol compression | `Y` or `N` | `N` |
66+
67+
### Parameter Details
68+
69+
#### DBNAME / DATABASE
70+
Specifies the database location. Supports multiple formats:
71+
72+
- **Local**: `C:\data\mydb.fdb` or `/var/lib/firebird/mydb.fdb`
73+
- **Remote**: `servername:/path/to/db.fdb` or `servername:C:\path\to\db.fdb`
74+
- **TCP/IP with IP**: `192.168.1.100:/path/to/db.fdb`
75+
- **Custom port**: `servername/3051:/path/to/db.fdb`
76+
- **Alias**: `myalias` (defined in Firebird's `databases.conf`)
77+
78+
#### CHARSET
79+
Sets the character encoding for the connection. Common values:
80+
- `UTF8` - Unicode (recommended)
81+
- `WIN1252` - Western European (Windows)
82+
- `WIN1251` - Cyrillic
83+
- `ISO8859_1` - Latin-1
84+
- `NONE` - No character set translation
85+
86+
#### DIALECT
87+
SQL dialect controls parsing behavior:
88+
- `3` - Modern Firebird/InterBase 6+ mode (recommended)
89+
- `1` - InterBase 5 compatibility mode (deprecated)
90+
91+
#### USESCHEMA
92+
Controls schema name handling:
93+
- `0` - Set NULL for SCHEMA field (default)
94+
- `1` - Remove SCHEMA from SQL queries
95+
- `2` - Use full SCHEMA support
96+
97+
#### QUOTED / SENSITIVE / AUTOQUOTED
98+
Identifier handling options:
99+
- **QUOTED=Y**: Allows quoted identifiers (e.g., `"MyTable"`)
100+
- **SENSITIVE=Y**: Makes identifiers case-sensitive
101+
- **AUTOQUOTED=Y**: Automatically quotes all identifiers
102+
103+
#### SAFETHREAD
104+
- `Y` - Enable thread-safe connection handling (default, recommended)
105+
- `N` - Disable thread safety (use only in single-threaded apps)
106+
107+
108+
24109
## Build from sources
25110

26111
### Linux

0 commit comments

Comments
 (0)