Hi Marc, first of all, I have no idea about informix at all. But this is what I would do to start informix support for ZF2.
First, you need the driver. You must decide if you want to use PDO or the native ifx extension. If you want to use PDO the driver part is quite simple, because you can use the Zend\Db\Adapter\Driver\Pdo. If not you need to implement the native ifx support. Please look at the classes of Zend\Db\Adapter\Driver\Mysqli to get you started. Second, you need the platform. For example look at the MySQL implementation at Zend\Db\Adapter\Platform\Mysql. The platform is independent from the driver, ie. from PDO or ifx support. Third, you need the SQL implementation. Please look at the classes of Zend\Db\Sql\Platform\Mysql for MySQL inspiration. The concrete implementation for LIMIT and OFFSET can be found in the class Zend\Db\Sql\Platform\Mysql\SelectDecorator. Please could others correct me, if I am wrong in any point? Marc, good luck and have fun. Although I won't need it personally, but it would be nice if you could add your implementation to the framework by a PR if finished or at least create a module for the informix support. Thanks and best regards, Ralf -- List: [email protected] Info: http://framework.zend.com/archives Unsubscribe: [email protected]
