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
const results =awaitconn.execute('select * from test where id = ?',[1])
24
30
```
25
31
26
-
**Transaction (Experimental)**
32
+
**Stateful Connection (experimental)**
33
+
34
+
If you want to keep session state across multiple queries, create a stateful connection. Remember to call `close()` to release the connection, or you may reach the connection limits.
35
+
36
+
> **Note:**
37
+
>
38
+
> Connections idle for 10 minutes will be closed automatically.
39
+
> The Stateful connection is not concurrent-safe. You are not allowed to run SQLs parallel in the same stateful connection.
0 commit comments