xxDBC

The xxDBC Object alows you to connect to a local or remote Database for executing commands and Queries. Actually there are three different connections: 

  • ODBC (Windows)
  • ORACLE (Windows, Linux)
  • DB2 (Windows, Linux)

Constructor

var connection = new xxDBC();


Properties

PropertyDescription
DataSourceSpecifies the logical name of database connection associated with this object, this is the name specified in the XX/1 main configuration xxscfg.xml. If this property is not set, the default as defined in the XX/1 main configuration applies.

 

 

Methods

MethodDescription
OpenOpens the connection to the database
CloseCloses an existing database connection
GetLastErrorRetrieves the last error which occurred on a connection
ExecuteQueryExecutes the specified SQL statement and returns an xxResultSet object
ExecuteUpdateExecutes an SQL statement which results in update of database