首页 > 代码库 > MySQL driver for Node
MySQL driver for Node
【MySQL driver for Node】
1、安装
2、一个示例
From this example, you can learn the following:
- Every method you invoke on a connection is queued and executed in sequence.
- Closing the connection is done using
end()
which makes sure all remaining queries are executed before sending a quit packet to the mysql server.
3、处理connect回调。The recommended way to establish a connection is this:
4、直接query也能建立连接。However, a connection can also be implicitly established by invoking a query:
参考:https://github.com/mysqljs/mysql
MySQL driver for Node
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。