Skip to content

Commit 670b440

Browse files
committed
update readme
1 parent 93ccd4e commit 670b440

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,21 +94,21 @@ It is possible to retain and reuse statments this will keep the query plan and i
9494
ps << tmp;
9595

9696
// now you can execute it with `operator>>` or `execute()`.
97-
// If the statment was executed once it will not be executed again when it goes out of scope.
97+
// If the statement was executed once it will not be executed again when it goes out of scope.
9898
// But beware that it will execute on destruction if it wasn't executed!
9999
ps >> [&](int a,int b){ ... };
100100

101101
// after a successfull execution the statment needs to be reset to be execute again. This will reset the bound values too!
102-
ps.reset();
102+
ps->reset();
103103

104104
// If you dont need the returned values you can execute it like this
105-
ps.execute(); // the statment will not be reset!
105+
ps->execute(); // the statment will not be reset!
106106

107107
// there is a convinience operator to execute and reset in one go
108108
ps++;
109109

110110
// To disable the execution of a statment when it goes out of scope and wasn't used
111-
ps.used(true); // or false if you want it to execute even if it was used
111+
ps->used(true); // or false if you want it to execute even if it was used
112112

113113
// Usage Example:
114114

0 commit comments

Comments
 (0)