Haskell raw bindings to Oracle ODPI-C Library
Requirements:
- libodpic 2.4.x/3.x (dpi.h should installed in /usr/local/include)
- Oracle Instant Client Basic or Basic Light package
- GHC 8.2.2 or greater
Installation:
stack build odpic-raw
Use environment DPI_DEBUG_LEVEL
to set DPI debug level.
For non-english user, please set environment NLS_LANG
to specify the oracle db encodings. use following sql to get the value.
SELECT USERENV ('language') FROM DUAL
Or use setupLanguage
to set NLS_LANG
automatically.
Test:
edit Spec.hs, set username
, password
, constr
for test oracle db
stack test
Stack dependencies :
this project is not in stackage yet, please add extra-deps
in stack.yaml
configuration.
# for lts-11.x, lts-12.x, lts-13.x
extra-deps:
- odpic-raw-0.4.0
# for lts-10.x
extra-deps:
- odpic-raw-0.1.11
More Documents: