SQL Yoga version 1.1.0 build 4 :: Visit website

Printer friendly version

command dbconn_connect

Connects to a database using the Connection Objects connection settings.

command dbconn_connect
Parameters
TypeNameDescription
OptionalSimple parameter. [pConnName] The name of a Database Connection. The default is the "default connection" for the Database Object.
OptionalSimple parameter. [pDBKey] Database Object connection is associated with. Default is name returned by sqlyoga_getDefaultDatabase().
Description

SQL Yoga will connect to a database if necessary whenever it tries to execute a query. This handler can be used if you need to connect before using a SQL Yoga API call that automatically connects.

Return

Returns empty. Connection id in 'it'. Any errors will be thrown: sqlyoga_connection_err,ERROR