daxConnect(
const database, // database (ORACLE, DB2, MYSQL)
[const connection, // connection / alias
const username, // user identification
const password, // users password
const maxcursor]) // max. cursor pool size (default=16)
Connects to a database. Currently ODBC, ORACLE, DB2 and MYSQL
are supported on the platforms they are available for.
Returns a database link handle used for subsequent operations.
The meaning of connection varies depending on the type of database:
| Database |
Connection |
| ODBC |
Data source name |
| Oracle |
SQL*Net name |
| DB2 |
Database alias |
| MySQL |
database[:host[:port[:socket]]]
Examples:
test |
Database test on current host by default port. |
:boston |
Default database on host boston. |
test::50 |
Database test on current host by port 50 |
|
|