public function getTableNames($schema = '', $refresh = false)
    {
        if (!isset($this->_tableNames[$schema]) || $refresh) {
            return $this->findTableNames($schema)->then(
                function($names) use ($schema) {
                    $this->_tableNames[$schema] = $names;
                    return $names;
                }
            );
        }

        return resolve($this->_tableNames[$schema]);
    }
public function getTableNames($schema = '', $refresh = false)
    {
        if (!isset($this->_tableNames[$schema]) || $refresh) {
            return $this->findTableNames($schema)->then(
                function($names) use ($schema) {
                    $this->_tableNames[$schema] = $names;
                    return $names;
                }
            );
        }

        return resolve($this->_tableNames[$schema]);
    }
public function getTableNames ( $ schema = '' , $ refresh = false ) { if ( ! isset ( $ this -> _tableNames [ $ schema ] ) || $ refresh ) { return $ this -> findTableNames ( $ schema ) -> then ( function ( $ names ) use ( $ schema ) { $ this -> _tableNames [ $ schema ] = $ names ; return $ names ; } ) ; } return resolve ( $ this -> _tableNames [ $ schema ] ) ; }
Returns all table names in the database.
@param string $schema the schema of the tables. Defaults to empty string, meaning the current or default schema name.
If not empty, the returned table names will be prefixed with the schema name.
@param bool   $refresh whether to fetch the latest available table names. If this is false,
table names fetched previously (if available) will be returned.
@return ExtendedPromiseInterface with string[] all table names in the database.
Returns all table names in the database .