Closed alanseiden closed 3 years ago
Sample script for connecting to toolkit using a pdo_odbc connection: https://github.com/zendtech/IbmiToolkit/blob/master/samples/connect_pdo_odbc.php
We're thinking it's better to leave this as is and create the PDO connection ahead of time and pass it in, as documented in the link above. That way, people know what they are getting. We could document doing the same for other transports with further examples.
Closing issue.
https://github.com/zendtech/IbmiToolkit/blob/97d9599a9e8d159d5458bf0ad4902b18bf5d702f/ToolkitApi/PdoSupp.php#L56
Other "transport" constructors allow the toolkit the option of creating connections internally. This one gives an error unless a PDO object is passed in as the first parameter to the toolkit constructor. If we don't wish to support toolkit-created PDO connections then we should document the limitation.