Zend Framework

get a list of all supported db adapters

Details

  • Type: New Feature New Feature
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: 0.8.0
  • Fix Version/s: 1.8.0
  • Component/s: Zend_Db
  • Labels:
    None
  • Fix Version Priority:
    Nice to Have

Description

Hi,

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

array(
  '<adapter>' => '<full name>'
  [, '<adapter>' => '<full name>'[, ...]]
)

e.g:

array(
  'pdo_mysql' => 'MySQL over PDO',
  'pdo_sqlite' => 'SQLite over PDO',
  'oracle>'  => 'Oracle',
  'mysqli' => 'MySQLi',
  'db2' => 'DB2',
)

Activity

Hide
Bill Karwin added a comment -

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.

Show
Bill Karwin added a comment - 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.
Hide
Marc Bennewitz (GIATA mbH) added a comment -

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

Zend_Db::addAdapter(<string uniqueKey>, <string class>[, <string fullName>])
Show
Marc Bennewitz (GIATA mbH) added a comment - Adapters outside of ZF can't open with Zend_Db::factory(). Otherwise it must create an interface to add other adapters to ZF like:
Zend_Db::addAdapter(<string uniqueKey>, <string class>[, <string fullName>])
Hide
Wil Sinclair added a comment -

Please categorize/fix as needed.

Show
Wil Sinclair added a comment - Please categorize/fix as needed.
Hide
Wil Sinclair added a comment -

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

Show
Wil Sinclair added a comment - This doesn't appear to have been fixed in 1.5.0. Please update if this is not correct.
Hide
Wil Sinclair added a comment -

Reassigning as Ralph is the maintainer of Zend_Db

Show
Wil Sinclair added a comment - Reassigning as Ralph is the maintainer of Zend_Db
Hide
Wil Sinclair added a comment -

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.

Show
Wil Sinclair added a comment - 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.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
1d
Original Estimate - 1 day
Remaining:
1d
Remaining Estimate - 1 day
Logged:
Not Specified
Time Spent - Not Specified