We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7797423 commit c60987fCopy full SHA for c60987f
1 file changed
src/Statements/InsertStatement.php
@@ -11,6 +11,7 @@
11
use SqlParser\Statement;
12
use SqlParser\Components\IntoKeyword;
13
use SqlParser\Components\Array2d;
14
+use SqlParser\Components\ArrayObj;
15
16
/**
17
* `INSERT` statement.
@@ -76,7 +77,16 @@ class InsertStatement extends Statement
76
77
78
* Values to be inserted.
79
*
- * @var Array2d
80
+ * @var ArrayObj[]
81
*/
82
public $values;
83
+
84
+ /**
85
+ * @return string
86
+ */
87
+ public function build() {
88
+ return 'INSERT ' . $this->options
89
+ . ' INTO ' . $this->into
90
+ . ' VALUES ' . ArrayObj::build($this->values);
91
+ }
92
}
0 commit comments