mysql - beginTransaction using async await node js 8
问题描述
I am very new to node js. Recently I have developed a node js application which connects to mysql and does all the crud operation. All this i have done using the async await feature of node 8. Now i am having hard time to implement transaction feature using async await. I want to use the async await feature to perform the beginTransaction commit and rollback wirh completely avoiding callbacks. Is this even possible? Request any help if possible. Thanks
解决方案
推荐阅读
- javafx - 防止 JavaFX Tooltip 聚焦后台阶段
- azure - 在 Azure AD 中设置单租户应用程序
- javascript - 嵌入式谷歌地图未在 Firefox 中完全呈现
- vue.js - Easeljs:“createjs.Ticker.paused = true”不起作用
- iccube - 服务器端PDF导出功能
- java - 如何在 Java 中向 Octoprint 发送 POST 请求?
- solr - 按 document.contentType 搜索
- amp-html - 您可以在非 amp 页面上使用 AMP 标签吗?
- go - Go 中的切片如何不被取消引用?
- html - HTML标签的Python网页抓取