1 | <?php |
||
11 | class QueryCommand extends AbstractDatabaseCommand |
||
12 | { |
||
13 | protected function configure() |
||
34 | |||
35 | /** |
||
36 | * @return bool |
||
37 | */ |
||
38 | public function isEnabled() |
||
42 | |||
43 | /** |
||
44 | * Returns the query string with escaped ' characters so it can be used |
||
45 | * within the mysql -e argument. |
||
46 | * |
||
47 | * The -e argument is enclosed by single quotes. As you can't escape |
||
48 | * the single quote within the single quote, you have to end the quote, |
||
49 | * then escape the single quote character and reopen the quote. |
||
50 | * |
||
51 | * @param string $query |
||
52 | * @return string |
||
53 | */ |
||
54 | protected function getEscapedSql($query) |
||
58 | |||
59 | /** |
||
60 | * @param InputInterface $input |
||
61 | * @param OutputInterface $output |
||
62 | * |
||
63 | * @return int|void |
||
64 | */ |
||
65 | protected function execute(InputInterface $input, OutputInterface $output) |
||
85 | } |
||
86 |