You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-6Lines changed: 4 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -104,8 +104,6 @@ Creates a prepared statement and lets you fill the `?` with values.
104
104
105
105
Takes several statements and wraps them into a single transaction for the server to process. Use `statement : [...actions...]` to create such a transaction. Only `select`, `insert` and `raw` commands are allowed right now.
106
106
107
-
Be aware: This is only tested and working with PostgreSQL currently.
108
-
109
107
{
110
108
"action" : "transaction",
111
109
"statements" : [
@@ -117,12 +115,12 @@ Be aware: This is only tested and working with PostgreSQL currently.
117
115
},
118
116
{
119
117
"action" : "raw",
120
-
"command" : "UPDATE account SET balance=balance+? WHERE name=?",
118
+
"command" : "UPDATE account SET balance=balance+1 WHERE name='Mr. Test'",
121
119
},
122
120
{
123
-
"action" : "select",
124
-
"table" : "account",
125
-
"fields" : ["balance"]
121
+
"action" : "prepared",
122
+
"statement" : "UPDATE account SET balance=balance+? WHERE name=?",
0 commit comments