Skip to content

Commit a4a2626

Browse files
author
zotov
committedOct 4, 2022
Added config example for LINUX.
1 parent ea579ce commit a4a2626

File tree

1 file changed

+227
-0
lines changed

1 file changed

+227
-0
lines changed
 

‎firebird-driver.conf.POSIX

+227
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,227 @@
1+
[firebird.driver]
2+
;
3+
; Firebird driver configuration.
4+
5+
; Path to Firebird client library
6+
; Type: str
7+
;fb_client_library = <UNDEFINED>
8+
9+
; BLOB size threshold. Bigger BLOB will be returned as stream BLOBs.
10+
; Type: int
11+
;stream_blob_threshold = 65536
12+
13+
; Registered servers
14+
; Type: list of configuration section names
15+
servers = fb308,fb401,fb50
16+
17+
; Registered databases
18+
; Type: list of configuration section names
19+
;databases =
20+
21+
22+
; ############################################################################
23+
24+
[firebird.db.defaults]
25+
26+
;
27+
; Default database configuration.
28+
29+
; Name of server where database is located
30+
; Type: str
31+
;server = <UNDEFINED>
32+
33+
; Database connection string
34+
; Type: str
35+
;dsn = <UNDEFINED>
36+
37+
; Database file specification or alias
38+
; Type: str
39+
;database = <UNDEFINED>
40+
41+
; Database filename should be passed in UTF8
42+
; Type: bool
43+
;utf8filename = <UNDEFINED>
44+
45+
; Protocol to be used for database
46+
; Type: enum [xnet, inet, inet4, wnet]
47+
;protocol = <UNDEFINED>
48+
49+
; Defaul user name
50+
; Type: str
51+
;user = <UNDEFINED>
52+
;user=SYSDBA
53+
54+
; Default user password
55+
; Type: str
56+
;password = <UNDEFINED>
57+
58+
;; Use trusted authentication
59+
; Type: bool
60+
;trusted_auth = no
61+
62+
; User role
63+
; Type: str
64+
;role = <UNDEFINED>
65+
66+
; Character set for database connection
67+
; Type: str
68+
;charset = <UNDEFINED>
69+
70+
; SQL Dialect for database connection
71+
; Type: int
72+
;sql_dialect = 3
73+
74+
; Connection timeout
75+
; Type: int
76+
;timeout = <UNDEFINED>
77+
78+
; Do not use linger for database connection
79+
; Type: bool
80+
;no_linger = <UNDEFINED>
81+
82+
; Page cache size override for database connection
83+
; Type: int
84+
;cache_size = <UNDEFINED>
85+
86+
; Dummy packet interval
87+
; Type: int
88+
;dummy_packet_interval = <UNDEFINED>
89+
90+
; Configuration override
91+
; Type: str
92+
;config = <UNDEFINED>
93+
94+
; List of authentication plugins override
95+
; Type: str
96+
;auth_plugin_list = <UNDEFINED>
97+
98+
; Page size to be used for created database.
99+
; Type: int
100+
;page_size = <UNDEFINED>
101+
102+
; Write mode for created database (True = sync, False = async)
103+
; Type: bool
104+
;forced_writes = <UNDEFINED>
105+
106+
; Character set for created database
107+
; Type: str
108+
;db_charset = <UNDEFINED>
109+
110+
; SQL dialect for created database
111+
; Type: int
112+
;db_sql_dialect = <UNDEFINED>
113+
114+
; Page cache size override for created database
115+
; Type: int
116+
;db_cache_size = <UNDEFINED>
117+
118+
; Sweep interval for created database
119+
; Type: int
120+
;sweep_interval = <UNDEFINED>
121+
122+
; Data page space usage for created database (True = reserve space, False = Use all space)
123+
; Type: bool
124+
;reserve_space = <UNDEFINED>
125+
126+
; ############################################################################
127+
128+
[firebird.server.defaults]
129+
;
130+
; Default server configuration.
131+
132+
; Server host machine specification
133+
; Type: str
134+
;host = <UNDEFINED>
135+
136+
; Port used by Firebird server
137+
; Type: str
138+
;port = <UNDEFINED>
139+
140+
; Defaul user name
141+
; Type: str
142+
;user=SYSDBA
143+
144+
; Default user password
145+
; Type: str
146+
;password=masterkey
147+
148+
149+
; Configuration override
150+
; Type: str
151+
;config = <UNDEFINED>
152+
153+
; List of authentication plugins override
154+
; Type: str
155+
;auth_plugin_list = <UNDEFINED>
156+
157+
; Use trusted authentication
158+
; Type: bool
159+
;trusted_auth = no
160+
161+
; no helps...
162+
;ncoding = cp1251
163+
;encoding_errors = ignore
164+
165+
; ############################################################################
166+
167+
[DEFAULT]
168+
; this section was added 20.07.2022, it was NOT in original file.
169+
; see letter from P.C. 28-dec-2021 15:14, subj:
170+
; "firebird-driver.conf: why some parameters can not be specified as COMMON for all tested servers ?"
171+
172+
host = localhost
173+
user=SYSDBA
174+
password=masterkey
175+
encoding_errors = ignore
176+
177+
;[local]
178+
;
179+
; Server configuration.
180+
181+
; Server host machine specification
182+
; Type: str
183+
;host = localhost
184+
185+
; Port used by Firebird server
186+
; Type: str
187+
;port = <UNDEFINED>
188+
189+
; Defaul user name
190+
; Type: str
191+
192+
; Default user password
193+
; Type: str
194+
195+
196+
; Configuration override
197+
; Type: str
198+
;config = <UNDEFINED>
199+
200+
; List of authentication plugins override
201+
; Type: str
202+
;auth_plugin_list = <UNDEFINED>
203+
204+
; Use trusted authentication
205+
; Type: bool
206+
;trusted_auth = no
207+
208+
; ############################################################################
209+
210+
211+
; Hereafter 'fb_client_library' must be specified in every server section.
212+
; NB: fb_client_library is part of DriverConfig and not server or database conf
213+
; Explanation see in:
214+
; 1. Letter from pcisar 28-dec-2021 15:14, subj: "firebird-driver-version"
215+
; 2. Letter from pcisar 07-mar-2022 21:30, subj: "firebird-qa [new framework]: unable to make connection as NON-ASCII user ..."
216+
217+
[fb308]
218+
port = 33308
219+
fb_client_library = /opt/fb30/lib/libfbclient.so
220+
221+
[fb401]
222+
port = 34000
223+
fb_client_library = /opt/fb40/lib/libfbclient.so
224+
225+
[fb50]
226+
port = 35000
227+
fb_client_library = /opt/fb50/lib/libfbclient.so

0 commit comments

Comments
 (0)
Please sign in to comment.