Skip to content

Commit 182c78b

Browse files
committed
SqlDocument: added getSqlQueries()
1 parent ddd19a2 commit 182c78b

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

src/SqlDocument.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,21 @@ public function isEmpty()
2828
}
2929

3030

31+
/**
32+
* @return string[]
33+
*/
34+
public function getSqlQueries(IDriver $driver)
35+
{
36+
$output = array();
37+
38+
foreach ($this->statements as $statement) {
39+
$output[] = $statement->toSql($driver);
40+
}
41+
42+
return $output;
43+
}
44+
45+
3146
/**
3247
* @return string
3348
*/

0 commit comments

Comments
 (0)