@param mixed[][] $tables

@return string[]
506752
protected function _getPortableTablesList($tables)
    {
        $list = [];
        foreach ($tables as $value) {
            $value = $this->_getPortableTableDefinition($value);

            if (! $value) {
                continue;
            }

            $list[] = $value;
        }

        return $list;
    }
41007
public function getTableDetail($table)
    {
        $tables = $this->getTableDetails();

        $table = $this->db->replacePrefix($table);

        if (!isset($tables[$table])) {
            return false;
        }

        return $tables[$table];
    }
1049319
protected function generateTablesAndIndices( array $tables )
	{
		$this->method = 'create';

		foreach ( $tables as $table ) {
			$this->table = $table;
			$this->migrationName = 'create_'. $this->table .'_table';
			$this->fields = $this->schemaGenerator->getFields( $this->table );

			$this->generate();
		}
	}
37294
protected function parseTable($tables, $options = [])
    {
        $item = [];
        foreach ((array)$tables as $key => $table) {
            if (!is_numeric($key)) {
                if (strpos($key, '@think')) {
                    $key = strstr($key, '@think', true);
                }
                $key    = $this->parseSqlTable($key);
                $item[] = $this->parseKey($key) . ' ' . $this->parseKey($table);
            } else {
                $table = $this->parseSqlTable($table);
                if (isset($options['alias'][$table])) {
                    $item[] = $this->parseKey($table) . ' ' . $this->parseKey($options['alias'][$table]);
                } else {
                    $item[] = $this->parseKey($table);
                }
            }
        }
        return implode(',', $item);
    }
233121
protected function handleTables(array $tables)
    {
        if (empty($tables)) {
            return '';
        }

        $sql = [];

        foreach ($tables as $name => $alias) {
            if (is_string($name)) {
                $sql[] = $this->wrap($name) . ' AS ' . $this->wrap($alias);
            } else {
                $sql[] = $this->wrap($alias);
            }
        }
        return implode(', ', $sql);
    }
1207629
private function tableClb($matches)
    {
        return $this->implementation->reprTable($this->connection, $this->prefix.$matches[1]);
    }
483198
private function _prepareTables(array $tablesArray)
	{
		if(count($tablesArray) === 0)
		{
			throw new \Exception('"table"-method of the statement have to invoked before!');
		}

		$tables = ' ';
		foreach($tablesArray as $table)
		{
			$tables .= $table->getExpression() . ', ';
		}
		$tables       = substr($tables, 0, strlen($tables) - 2);
		$this->tables = $tables . ' ';
	}
90352
public function queriedTables()
    {
        $tables = array();

        foreach ($this->from as $key => $tableClause) {
            if (is_array($tableClause)) {
                $table = '"' . $tableClause['table'] . '"';
            } elseif (is_string($tableClause) && preg_match('/JOIN +("[^"]+") +(AS|ON) +/i', $tableClause, $matches)) {
                $table = $matches[1];
            } else {
                $table = $tableClause;
            }

            // Handle string replacements
            if ($this->replacementsOld) {
                $table = str_replace($this->replacementsOld, $this->replacementsNew, $table);
            }

            $tables[] = preg_replace('/^"|"$/', '', $table);
        }

        return $tables;
    }
423764
public function addTable($tables)
    {
        if (!is_array($tables)) {
            $tables = array_map(function ($t) {
                return trim($t);
            }, explode(',', $tables));
        }

        $this->tables = array_merge($this->tables, $tables);

        return $this;
    }
996106
public function getIndexes($table): ?array
	{
		return $this->driverQuery($this->getSql()->indexList($this->prefixTable($table)), FALSE);
	}
954351
public function table($tables)
    {
        if (!is_array($tables)) {
            // because a single table is converted to an array anyways,
            // this makes sense.
            $tables = func_get_args();
        }

        $instance = new static($this->connection, $this->getFetchMode());
        $tables = $this->addTablePrefix($tables, false);
        $instance->addStatement('tables', $tables);
        return $instance;
    }
572406
public function table($table, ...$tables)
    {
        array_unshift($tables, $table);

        foreach ($tables as $table) {
            list($tableAlias, $tableName) = $this->dialect()->parseTable($table);

            if (!is_scalar($tableName)) {
                throw new SqlException('Derived tables are not supported in UPDATE statement.');
            }

            $tableKey = $tableAlias ?: $tableName;

            $tableName = $this->dialect()->quoteTable($tableName);

            if ($tableAlias) {
                $tableAlias = $this->dialect()->quoteName($tableAlias);
            }

            $this->tables[$tableKey] = [
                'tableKey' => $tableKey,
                'table'    => $tableName,
                'alias'    => $tableAlias,
            ];
        }

        return $this;
    }
71877
public function getFirstTable($tables=null)
    {
        if (!$tables) {
            $tables = static::getQuery()->get('table');
        }
        if ($tables) {
            if (is_string($tables)) {
                return DataHelper::explode(',\s*', $tables)[0];
            } elseif (is_array($tables)) {
                return static::getFirstTable(current($tables));
            }
        }
        
        return $tables;
    }
152621
public static function dropTables($tables)
    {
        if (!is_array($tables)) {
            $tables = array($tables);
        }

        return self::query("DROP TABLE `" . implode('`,`', $tables) . "`");
    }
855802
public static function fetch($tables)
    {
        foreach ($tables as $table) {
            $result = Driver::query("SELECT * FROM $table", Driver::INDEX);
            $fields = $result->columnCount();
            $rows = $result->rowCount();
            $data = Driver::read("SELECT * FROM $table", Driver::INDEX);
            //
            $content = (!isset($content) ? '' : $content).self::stucture($table);
            //

            $st_counter = 0;
            foreach ($data as $row) {
                if ($st_counter % 100 == 0 || $st_counter == 0) {
                    $content .= "\n-- Table Data\nINSERT INTO ".$table.' VALUES';
                }
                //
                $content .= "\n(";
                //
                for ($j = 0; $j < $fields; $j++) {
                    $row[$j] = str_replace("\n", '\\n', addslashes($row[$j]));
                    //
                    if (isset($row[$j])) {
                        if (!empty($row[$j])) {
                            $content .= '"'.$row[$j].'"';
                        } else {
                            $content .= 'NULL';
                        }
                    }
                    //
                    else {
                        $content .= '""';
                    }
                    //
                    if ($j < ($fields - 1)) {
                        $content .= ',';
                    }
                }
                //
                $content .= ')';
                //
                if ((($st_counter + 1) % 100 == 0 && $st_counter != 0) || $st_counter + 1 == $rows) {
                    $content .= ';';
                }
                //
                else {
                    $content .= ',';
                }
                //
                $st_counter = $st_counter + 1;
            }

            $content .= "\n\n\n";
        }

        return $content;
    }
65807
private function getTableColumns($tables)
    {
        $database = \OxidEsales\Eshop\Core\DatabaseProvider::getMaster(\OxidEsales\Eshop\Core\DatabaseProvider::FETCH_MODE_ASSOC);

        $columns = array();
        foreach ($tables as $table) {
            $tmp = $database->getAll("SHOW COLUMNS FROM `$table`");
            foreach ($tmp as $sub) {
                $key = $sub['Field'];
                unset($sub['Field']);
                $columns[$table][$key] = $sub;
            }
        }

        return $columns;
    }
200731
public function checkTables(array $tables)
    {
        $check = implode(',', $tables);

        $result = $this->getConnection()->pdo()->query("CHECK TABLE $check");

        return $result ? $result->fetchAll(PDO::FETCH_ASSOC) : $result;
    }