ZF-1011: get a list of all supported db adapters

Issue Type: New Feature Created: 2007-03-04T07:14:59.000+0000 Last Updated: 2008-12-04T13:00:00.000+0000 Status: Resolved Fix version(s): - 1.8.0 (30/Apr/09)

Reporter: Marc Bennewitz (GIATA mbH) (mben) Assignee: Ralph Schindler (ralph) Tags: - Zend_Db

Related issues: Attachments:



add static method: Zend_Db::listSupportedAdapters(void) return array of all database adapters which supported by Zend_Framework and installed php

<pre class="highlight">
  '' => ''
  [, '' => ''[, ...]]


<pre class="highlight">
  'pdo_mysql' => 'MySQL over PDO',
  'pdo_sqlite' => 'SQLite over PDO',
  'oracle>'  => 'Oracle',
  'mysqli' => 'MySQLi',
  'db2' => 'DB2',


Posted by Bill Karwin (bkarwin) on 2007-03-05T12:02:36.000+0000

This seems like a useful feature, but it has no way of discovering any new adapters, including adapters that are implemented by a third-party, outside the Zend_Db_Adapter package space.

Posted by Marc Bennewitz (GIATA mbH) (mben) on 2007-03-05T13:37:34.000+0000

Adapters outside of ZF can't open with Zend_Db::factory(). Otherwise it must create an interface to add other adapters to ZF like:

<pre class="highlight">
Zend_Db::addAdapter(, [, ])

Posted by Wil Sinclair (wil) on 2008-03-25T20:43:52.000+0000

Please categorize/fix as needed.

Posted by Wil Sinclair (wil) on 2008-04-18T13:11:57.000+0000

This doesn't appear to have been fixed in 1.5.0. Please update if this is not correct.

Posted by Wil Sinclair (wil) on 2008-12-04T12:53:16.000+0000

Reassigning as Ralph is the maintainer of Zend_Db

Posted by Wil Sinclair (wil) on 2008-12-04T13:00:00.000+0000

This would likely be a feature in a large environment component if we were to implement it. Closing for now as it is very old with no votes.

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.