Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A remote database connection definition object that

Using this feature requires the following PTFs:

  • For IBM i 7.4: SJ02815

  • For IBM i 7.5: SJ02127

The “remote database connection definition object” can be passed to the following APIs:

...

The return value is passed to the above APIs as the first parameter, followed by the other parameters as documented for each API.

Example

pjs.query()
Code Block
languagejs
pjs.query("select * from mytable where mycol = ? or mycol = ?", [value1, value2]); // Query runs against default database connection.
pjs.query(pjs.getRemoteDB("remote", "user", "pass"), "select * from mytable where mycol = ? or mycol = ?", [value1, value2]); // Query runs against the remote database "remote". 

...