Class: Informix

Informix

new Informix(opts)

Class representing the IBM Informix client
Parameters:
Name Type Description
opts object Constructor options
Source:

Methods

createContext() → {Context}

Create a new context to execute SQL statements and use transactions safely
Source:
Returns:
- A context object.
Type
Context

options(opts)

Set options
Parameters:
Name Type Description
opts object Options
Source:

prepare(sql) → {Promise.<Statement, Error>}

Prepare a statement
Parameters:
Name Type Description
sql string SQL statement to prepare
Source:
Returns:
- A promise to a statement object or an Error if rejected.
Type
Promise.<Statement, Error>

query(sql) → {Promise.<Cursor, Error>}

Run a SQL query
Parameters:
Name Type Description
sql string SQL query to run
Source:
Returns:
- A promise to a results cursor or an Error if rejected.
Type
Promise.<Cursor, Error>