PHP 클래스 N98\Magento\Command\Database\QueryCommand

상속: extends AbstractDatabaseCommand
파일 보기 프로젝트 열기: netz98/n98-magerun

공개 메소드들

메소드 설명
isEnabled ( ) : boolean

보호된 메소드들

메소드 설명
configure ( )
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | void
getEscapedSql ( string $query ) : string Returns the query string with escaped ' characters so it can be used within the mysql -e argument.

메소드 상세

configure() 보호된 메소드

protected configure ( )

execute() 보호된 메소드

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | void
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
리턴 integer | void

getEscapedSql() 보호된 메소드

The -e argument is enclosed by single quotes. As you can't escape the single quote within the single quote, you have to end the quote, then escape the single quote character and reopen the quote.
protected getEscapedSql ( string $query ) : string
$query string
리턴 string

isEnabled() 공개 메소드

public isEnabled ( ) : boolean
리턴 boolean