You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When instantiating the toolkit, users who pass in a database connection that is not ibm_db2 must either specify the transport type in parameter 4 or change toolkit.ini. It's extra work and makes it hard to remember what parameters need to be passed. The toolkit could, instead, automatically detect the transport type when a database connection is passed as parameter 1.
Here is the constructor:
ibm_db2 and odbc database connections could be detected with get_resource_type(). The result will be DB2 Connection, DB2 Persistent Connection, odbc link, or odbc link persistent.
PDO database connections could be detected with $databaseNameOrResource instanceof PDO.
The text was updated successfully, but these errors were encountered:
When instantiating the toolkit, users who pass in a database connection that is not ibm_db2 must either specify the transport type in parameter 4 or change toolkit.ini. It's extra work and makes it hard to remember what parameters need to be passed. The toolkit could, instead, automatically detect the transport type when a database connection is passed as parameter 1.
Here is the constructor:
IbmiToolkit/ToolkitApi/ToolkitService.php
Line 25 in e9852fb
DB2 Connection
,DB2 Persistent Connection
,odbc link
, orodbc link persistent
.$databaseNameOrResource instanceof PDO
.The text was updated successfully, but these errors were encountered: