Skip to content

Commit 2cd22d9

Browse files
authored
Update README.md
1 parent ac29296 commit 2cd22d9

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,17 @@ $values = [
115115
116116
$batchSize = 500; // insert 500 (default), 100 minimum rows in one query
117117
118-
Batch::insert($table, $columns, $values, $batchSize);
118+
$result = Batch::insert($table, $columns, $values, $batchSize);
119+
```
120+
121+
```
122+
// result : false or array
123+
124+
sample array result:
125+
Array
126+
(
127+
[totalValues] => 384
128+
[totalBatch] => 500
129+
[totalQuery] => 1
130+
)
119131
```

0 commit comments

Comments
 (0)