IRISLIB database
DataSource Class Reference

This class implements the IRIS Native API for Object Script DataSource interface. More...

Static Public Member Functions

_.Net.DB.Connection CreateConnection (_.Library.String host, _.Library.Integer port, _.Library.String namespace, user, pwd, _.Library.Integer timeout, _.Library.String logfile)
 CreateConnection accepts url, port,namespace, user, and pwd parameters. More...
 

Detailed Description

This class implements the IRIS Native API for Object Script DataSource interface.

At this time that interface consists solely of the <method>CreateConnection</method> method.

IRIS Native API for ObjectScript

The Native API for ObjectScript follows the API used on other language platforms. It starts with a static API that allows the user to connect to an IRIS Namespace, either local or remote, using an Iris Connection. The connection interface allows the user to then instantiate the IRIS Native API class (<class>Net.DB.Iris</class>). That instance can then be used to access IRIS Global Arrays, manage transactions, invoke functions and methods implemented in routines or classes, and instantiate remote iterators.

Member Function Documentation

◆ CreateConnection()

_.Net.DB.Connection CreateConnection ( _.Library.String  host,
_.Library.Integer  port,
_.Library.String  namespace,
  user,
  pwd,
_.Library.Integer  timeout,
_.Library.String  logfile 
)
static

CreateConnection accepts url, port,namespace, user, and pwd parameters.

Refer to <class>Net.DB.Connection</class> for more information on these parameters. CreateConnection() returns an instance of <class>Net.DB.Connection</class>.

host input The host name or address, defaults to 127.0.0.1
port input The port on which to connect
namespace input The namespace to connect to
user input The user's name
pwd input User's password
timeout input The number of seconds to wait for the connection to be established. Optional.
logfile input The name of the file to be used for logging. If specified, connection activity will be logged to that file. Optional.
return An oref referencing an instance of <class>Net.DB.Connection</class>