nodejs-db-informix  master
nodejs bindings for Informix
 All Classes Functions Pages
README.md
1 
2 By any means, this is not completely ready yet.
3 
4 Pre-req (Setup and configure Informix)
5 ======================================
6 Download and install informix (supported version 11.5).
7 Download and install CSDK.
8 It is assumed that informix is installed at `/opt/informix`, adjust approriately.
9 (by default IBM installs informix at `/opt/IBM/informix`)
10 
11 
12 ```bash
13 INFORMIXDIR='/opt/informix'
14 INFORMIXSERVER='__MyInformixServer__'
15 ONCONFIG="onconfig.${INFORMIXSERVER}"
16 INFORMIXSQLHOSTS="${INFORMIXDIR}/etc/sqlhosts.${INFORMIXSERVER}"
17 
18 INFORMIXLIBDIR="${INFORMIXDIR}/lib"
19 INFORMIXLIBS=${INFORMIXLIBDIR}
20 
21 for d in c++ cli client client/csm csm dmi esql ; do
22  if [[ -d "${INFORMIXLIBDIR}/${d}" ]]; then
23  INFORMIXLIBS=${INFORMIXLIBS}:${INFORMIXLIBDIR}/${d}
24  fi
25 done
26 
27 LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${INFORMIXLIBS}
28 
29 PATH=${INFORMIXDIR}/bin:${PATH}
30 IFMX_HISTORY_SIZE=10000
31 
32 export INFORMIXSERVER INFORMIXDIR ONCONFIG INFORMIXSQLHOSTS LD_LIBRARY_PATH PATH IFMX_HISTORY_SIZE
33 ```
34 Make sure Informix is running. Test that its accepting connections.
35 
36 ```bash
37 $ dbaccess sysmaster -
38 ```
39 
40 
41 Install
42 =======
43  $ npm install nodejs-db-informix
44 
45 Or to install the package globally
46 
47  $ sudo npm install nodejs-db-informix -g
48 
49 NOTE: global install will fail if `INFORMIXDIR` and above mentioned environment
50 variables in pre-reqs are not setup for root user.
51 
52 
53 Build
54 =====
55  $ node-waf distclean configure build
56 
57 -or- if you're using `node-gyp`
58 
59  $ node-gyp clean configure build
60  $ node-gyp rebuild
61 
62 
63 Debug
64 =====
65  $ node-waf --debug distclean configure build
66 
67 
68 Test
69 ====
70  $ node-waf test
71 
72 -or- if you're using `node-gyp`
73 
74  $ nodejs tests/tests.js
75 
76 
77 License
78 =======
79 This module is released under the [MIT License] [license].
80 
81 [license]: http://www.opensource.org/licenses/mit-license.php