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

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

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