Skip to content

Commit

Permalink
Caché example from David Blewett <david@dawninglight.net>
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfetter committed May 11, 2007
1 parent 62203b7 commit dd59d0e
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
10 changes: 10 additions & 0 deletions examples/cache/README
@@ -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.)

34 changes: 34 additions & 0 deletions examples/cache/cache.sql
@@ -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'
);

16 changes: 16 additions & 0 deletions examples/cache/odbc.ini
@@ -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

0 comments on commit dd59d0e

Please sign in to comment.