Skip to content

Commit 68e6fa2

Browse files
committed
Adds a section about execute_all.
1 parent 4d13869 commit 68e6fa2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,16 @@ cmd.bind(":phone", "555-1234", sqlite3pp::nocopy);
4848
cmd.execute();
4949
```
5050
51+
```cpp
52+
sqlite3pp::command cmd(
53+
db,
54+
"INSERT INTO contacts (name, phone) VALUES (:user, '555-0000');"
55+
"INSERT INTO contacts (name, phone) VALUES (:user, '555-1111');"
56+
"INSERT INTO contacts (name, phone) VALUES (:user, '555-2222')");
57+
cmd.bind(":user", "Mike", sqlite3pp::nocopy);
58+
cmd.execute_all();
59+
```
60+
5161
## transaction
5262

5363
```cpp

0 commit comments

Comments
 (0)