PDO4You\Describe::showTables PHP Метод

showTables() публичный статический Метод

Method which shows and describes the tables of the database
public static showTables ( string $schema = null ) : void
$schema string Name of the schema used
Результат void
    public static function showTables($schema = null)
    {
        try {
            $driver = Singleton::getDriver();
            switch ($driver) {
                case 'mysql':
                    self::showMySqlTables();
                    break;
                case 'pgsql':
                    self::showPgSqlTables($schema);
                    break;
                case 'cubrid':
                    self::showCubridTables();
                    break;
                case 'mssql':
                case 'sqlsrv':
                    self::showMsSqlTables($schema);
                    break;
                default:
                    throw new PDOException(Singleton::$exception['not-implemented'] . ' PDO4You::showTables()');
            }
        } catch (PDOException $e) {
            Singleton::stackTrace($e, false);
        }
    }