Search code examples
node.jsinformix

How to connect to informix through Node.js using MongoDB driver?


I read somewhere else on stack overflow that you can connect to an informix db on Node.js using the mongo db driver.

How to connect Informix server using Node js with ODBC connectivity?

However, the linked documentation was an invalid link and the author didn't elaborate on it. I was wondering if anyone knew how or if its even possible.


Solution

  • You will need to configure and start the Informix Wire Listener, an API translation application that will convert MongoDB API calls into SQL for Informix. It runs against newer Informix server (12.10.xC8 or higher, something like that in case you have too old of a server for it to work with).

    Documentation for using it is at https://www.ibm.com/docs/en/informix-servers/14.10?topic=compatibility-wire-listener