src/Db/Schema.php
protected function refreshTablesMetadata($schema = '') {
        $schema = $schema !== '' ? $schema : $this->defaultSchema;
        $metaTypes = $this->tableMetaImplemented;
        return $this->getTableNames($schema, true)->then(
            function($names) use ($metaTypes) {
                $promises = [];
                $this->_tableMetadata = [];
                foreach ($names as $name) {
                    $promises[] = $this->refreshTableMetadata($name, true);
                }
                return !empty($promises) ? all($promises) : resolve(true);
            }
        );
    }
protected function refreshTablesMetadata($schema = '') {
        $schema = $schema !== '' ? $schema : $this->defaultSchema;
        $metaTypes = $this->tableMetaImplemented;
        return $this->getTableNames($schema, true)->then(
            function($names) use ($metaTypes) {
                $promises = [];
                $this->_tableMetadata = [];
                foreach ($names as $name) {
                    $promises[] = $this->refreshTableMetadata($name, true);
                }
                return !empty($promises) ? all($promises) : resolve(true);
            }
        );
    }
Refresh table schemas in cache and $_tableSchemas
@param string $schema
@return ExtendedPromiseInterface