Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Caché example from David Blewett <david@dawninglight.net>
- Loading branch information
1 parent
62203b7
commit dd59d0e
Showing
3 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
README.ODBC: | ||
When building DBD::ODBC and using libiodbc, you might need to specify | ||
the directory of the iODBC includes. I did this by exporting | ||
CFLAGS="-I/usr/include/iodbc", in addition to the other environment | ||
variables Makefile.pl expects. | ||
|
||
In the example directory, the username is LIVE:DAVIDB simply due to a | ||
quirk of the system I'm connecting to. (Intersystem's Cache' splits | ||
the part off before the colon as something similar to a namespace.) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Data source: dbi:ODBC:Cache | ||
* User: LIVE:DAVIDB | ||
* Password: NULL | ||
* dbh attributes: NULL | ||
* dbh environment: NULL | ||
* remote schema: NULL | ||
* remote catalog: NULL | ||
* local schema: cache | ||
*/ | ||
|
||
UPDATE | ||
pg_catalog.pg_settings | ||
SET | ||
setting = | ||
CASE WHEN setting ~ 'dbi_link' | ||
THEN setting | ||
ELSE 'dbi_link,' || setting | ||
END | ||
WHERE | ||
name = 'search_path' | ||
; | ||
|
||
SELECT make_accessor_functions( | ||
'dbi:ODBC:Cache', | ||
'LIVE:DAVIDB', | ||
NULL, | ||
NULL, | ||
NULL, | ||
NULL, | ||
NULL, | ||
'cache' | ||
); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
; odbc.ini ; | ||
[ODBC Data Sources] | ||
Cache = Cache | ||
|
||
[Cache] | ||
Driver = /home/davidb/src/cache-odbc/bin/libcacheodbc.so | ||
Description = Cache | ||
Host = 10.233.93.9 | ||
Namespace = AVATARPM | ||
UID = LIVE:DAVIDB | ||
Password = FOO | ||
Port = 1972 | ||
Protocol = TCP | ||
Query Timeout = 1 | ||
Trace = off | ||
|