public function dump($dst) {
		$host = $this->config['host'];
		$user = $this->config['user'];
		$pwd = $this->config['password'];
		$db = $this->config['database'];

		\Asgard\File\FileSystem::mkdir(dirname($dst));
		$cmd = 'mysqldump --user='.$user.' --password='.$pwd.' --host='.$host.' '.$db.' > '.$dst;
		$process = proc_open($cmd,
			[
				0 => ["pipe", "r"],
				1 => ["pipe", "w"],
				2 => ["pipe", "w"],
			],
			$pipes
		);
		return proc_close($process) === 0;
	}
public function dump($dst) {
		$host = $this->config['host'];
		$user = $this->config['user'];
		$pwd = $this->config['password'];
		$db = $this->config['database'];

		\Asgard\File\FileSystem::mkdir(dirname($dst));
		$cmd = 'mysqldump --user='.$user.' --password='.$pwd.' --host='.$host.' '.$db.' > '.$dst;
		$process = proc_open($cmd,
			[
				0 => ["pipe", "r"],
				1 => ["pipe", "w"],
				2 => ["pipe", "w"],
			],
			$pipes
		);
		return proc_close($process) === 0;
	}
public function dump ( $ dst ) { $ host = $ this -> config [ 'host' ] ; $ user = $ this -> config [ 'user' ] ; $ pwd = $ this -> config [ 'password' ] ; $ db = $ this -> config [ 'database' ] ; \ Asgard \ File \ FileSystem :: mkdir ( dirname ( $ dst ) ) ; $ cmd = 'mysqldump --user=' . $ user . ' --password=' . $ pwd . ' --host=' . $ host . ' ' . $ db . ' > ' . $ dst ; $ process = proc_open ( $ cmd , [ 0 => [ "pipe" , "r" ] , 1 => [ "pipe" , "w" ] , 2 => [ "pipe" , "w" ] , ] , $ pipes ) ; return proc_close ( $ process ) === 0 ; }
Dump an SQL file.
@param  string $dst
@return integer 1 for success, 0 for failure.
@api
Dump an SQL file .