forked from pkolaczk/latte
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Example of it's usage: pub async fn insert(db, i) { ... let stmt_keys = []; let stmt_values = []; ... stmt_keys.push(some_prepared_statement_name); stmt_values.push([ user_id, user_name, permissions, ]); ... db.batch_prepared(stmt_keys, stmt_values).await? ... } To reuse the same gathered values in non-batch call do following: pub async fn insert(db, i) { ... db.execute_prepared(stmt_keys[0], stmt_values[0]).await? ... }
- Loading branch information
1 parent
0ad2000
commit 231541b
Showing
3 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters