diff options
author | Daniel <darthdaniel85@gmail.com> | 2013-12-09 02:04:04 -0500 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2014-08-26 13:14:33 +0200 |
commit | 93792e60746f8d34fa675ba834ca36552f6016df (patch) | |
tree | 01052bbff4b2aafb8483e95bb8d8974dd7d1c164 /framework/Data/Common/TDbMetaData.php | |
parent | 6d4278bcaf8951e748ee08edd8db412588244217 (diff) |
Support for all PRADO DB drivers!
Diffstat (limited to 'framework/Data/Common/TDbMetaData.php')
-rw-r--r-- | framework/Data/Common/TDbMetaData.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/framework/Data/Common/TDbMetaData.php b/framework/Data/Common/TDbMetaData.php index fa3dee0b..5b4568cb 100644 --- a/framework/Data/Common/TDbMetaData.php +++ b/framework/Data/Common/TDbMetaData.php @@ -178,5 +178,15 @@ abstract class TDbMetaData extends TComponent return $lft . str_replace(self::$delimiterIdentifier, '', $name) . $rgt; } + + /** + * Returns all table names in the database. + * This method should be overridden by child classes in order to support this feature + * because the default implementation simply throws an exception. + * @param string $schema the schema of the tables. Defaults to empty string, meaning the current or default schema. + * If not empty, the returned table names will be prefixed with the schema name. + * @return array all table names in the database. + */ + abstract public function findTableNames($schema=''); } |