public function dump()
	{
		$pdo = $this->pdo();

		$sql = '';

		foreach ($this->list_tables() as $table)
		{
			$query = $pdo->query("SELECT * FROM `{$table}`");

			while ($row = $query->fetch(\PDO::FETCH_NUM)) 
			{
				$values = array();

				foreach ($row as $column) 
				{
					$values[] = is_null($column) ? 'NULL' : $pdo->quote($column);
				}

				$sql .= "INSERT INTO `{$table}` VALUES (".join(',', $values). ");\n";
			}
		}

		return $sql;
	}
public function dump()
	{
		$pdo = $this->pdo();

		$sql = '';

		foreach ($this->list_tables() as $table)
		{
			$query = $pdo->query("SELECT * FROM `{$table}`");

			while ($row = $query->fetch(\PDO::FETCH_NUM)) 
			{
				$values = array();

				foreach ($row as $column) 
				{
					$values[] = is_null($column) ? 'NULL' : $pdo->quote($column);
				}

				$sql .= "INSERT INTO `{$table}` VALUES (".join(',', $values). ");\n";
			}
		}

		return $sql;
	}
public function dump ( ) { $ pdo = $ this -> pdo ( ) ; $ sql = '' ; foreach ( $ this -> list_tables ( ) as $ table ) { $ query = $ pdo -> query ( "SELECT * FROM `{$table}`" ) ; while ( $ row = $ query -> fetch ( \ PDO :: FETCH_NUM ) ) { $ values = array ( ) ; foreach ( $ row as $ column ) { $ values [ ] = is_null ( $ column ) ? 'NULL' : $ pdo -> quote ( $ column ) ; } $ sql .= "INSERT INTO `{$table}` VALUES (" . join ( ',' , $ values ) . ");\n" ; } } return $ sql ; }
Dump the contents of the database as insert statements

@return string
Dump the contents of the database as insert statements