File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -273,17 +273,19 @@ Returns a L<DBI> DSN appropriate for use in a call to C<< DBI->connect >>. The
273
273
attributes will usually be pulled from the URI host name, port, and database
274
274
name, as well as the query parameters. If no driver is known for the URI, the
275
275
C<dbi:$driver: > part of the DSN will be omitted, in which case you can use the
276
- C<$DBI_DRIVER > environment variable to identify an appropriate driver.
277
- Otherwise, each database URI does its best to create a valid DBI DSN. Some
278
- examples:
276
+ C<$DBI_DRIVER > environment variable to identify an appropriate driver. If the
277
+ URI supports multiple drivers, pass the name of the one you want to
278
+ C<dbi_dsn() > . Currently only URI::myssql supports alternate drivers, ADO,
279
+ ODBC, or Sybase. Otherwise, each database URI does its best to create a valid
280
+ DBI DSN. Some examples:
279
281
280
282
| URI | DSN |
281
283
|--------------------------------------+--------------------------------------------------|
282
284
| db:pg:try | dbi:Pg:dbname=try |
283
285
| db:mysql://localhost:33/foo | dbi:mysql:host=localhost;port=33;database=foo |
284
286
| db:db2://localhost:33/foo | dbi:DB2:HOSTNAME=localhost;PORT=33;DATABASE=foo |
285
287
| db:vertica:dbadmin | dbi:ODBC:DSN=dbadmin |
286
- | db:mssql://foo.com/pubs?Driver=MSSQL | dbi:ODBC :Host=foo.com;Database=pubs;Driver=MSSQL |
288
+ | db:mssql://foo.com/pubs?Driver=MSSQL | dbi:ADO :Host=foo.com;Database=pubs;Driver=MSSQL |
287
289
288
290
=head3 C<dbi_params >
289
291
Original file line number Diff line number Diff line change 19
19
Hackor
20
20
PostgreSQL
21
21
Sqitch
22
+ ODBC
23
+ Sybase
You can’t perform that action at this time.
0 commit comments