| @@ 25-37 (lines=13) @@ | ||
| 22 | /** |
|
| 23 | * {@inheritdoc} |
|
| 24 | */ |
|
| 25 | public function execute() |
|
| 26 | { |
|
| 27 | $this->preExecute(); |
|
| 28 | $result = $this->connection->query($this->getSql()); |
|
| 29 | $this->postExecute(); |
|
| 30 | ||
| 31 | $schemas = array(); |
|
| 32 | foreach ($result as $row) { |
|
| 33 | $schemas[] = new Schema($row['schema_name']); |
|
| 34 | } |
|
| 35 | ||
| 36 | return $schemas; |
|
| 37 | } |
|
| 38 | } |
|
| 39 | ||
| @@ 43-55 (lines=13) @@ | ||
| 40 | /** |
|
| 41 | * {@inheritdoc} |
|
| 42 | */ |
|
| 43 | public function execute() |
|
| 44 | { |
|
| 45 | $this->preExecute(); |
|
| 46 | $result = $this->connection->query($this->getSql()); |
|
| 47 | $this->postExecute(); |
|
| 48 | ||
| 49 | $tables = array(); |
|
| 50 | foreach ($result as $row) { |
|
| 51 | $tables[] = new Table($row['table_name'], new Schema($row['table_schema'])); |
|
| 52 | } |
|
| 53 | ||
| 54 | return $tables; |
|
| 55 | } |
|
| 56 | } |
|
| 57 | ||
| @@ 37-47 (lines=11) @@ | ||
| 34 | /** |
|
| 35 | * {@inheritdoc} |
|
| 36 | */ |
|
| 37 | public function execute() |
|
| 38 | { |
|
| 39 | $this->preExecute(); |
|
| 40 | $result = $this->connection->query($this->getSql()); |
|
| 41 | foreach ($result as $row) { |
|
| 42 | $count = $row['count']; |
|
| 43 | } |
|
| 44 | $this->postExecute(); |
|
| 45 | ||
| 46 | return $count > 0; |
|
| 47 | } |
|
| 48 | } |
|
| 49 | ||
| @@ 41-51 (lines=11) @@ | ||
| 38 | /** |
|
| 39 | * {@inheritdoc} |
|
| 40 | */ |
|
| 41 | public function execute() |
|
| 42 | { |
|
| 43 | $this->preExecute(); |
|
| 44 | $result = $this->connection->query($this->getSql()); |
|
| 45 | foreach ($result as $row) { |
|
| 46 | $count = $row['count']; |
|
| 47 | } |
|
| 48 | $this->postExecute(); |
|
| 49 | ||
| 50 | return (Boolean) $count; |
|
| 51 | } |
|
| 52 | } |
|
| 53 | ||