Skip to content

Commit

Permalink
Adds a section about execute_all.
Browse files Browse the repository at this point in the history
  • Loading branch information
iwongu committed Nov 30, 2017
1 parent 4d13869 commit 68e6fa2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ cmd.bind(":phone", "555-1234", sqlite3pp::nocopy);
cmd.execute();
```
```cpp
sqlite3pp::command cmd(
db,
"INSERT INTO contacts (name, phone) VALUES (:user, '555-0000');"
"INSERT INTO contacts (name, phone) VALUES (:user, '555-1111');"
"INSERT INTO contacts (name, phone) VALUES (:user, '555-2222')");
cmd.bind(":user", "Mike", sqlite3pp::nocopy);
cmd.execute_all();
```

## transaction

```cpp
Expand Down

0 comments on commit 68e6fa2

Please sign in to comment.