New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-mysql78

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-mysql78 - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

2

package.json
{
"name": "node-mysql78",
"version": "2.0.1",
"version": "2.0.2",
"description": "node-mysql78",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -45,3 +45,3 @@ # node-mysql78

>## 使用 use you can see ./test/test.js
>## 使用 use for testing, you can see ./test/test.js.
>>### 初始化 init

@@ -96,2 +96,25 @@ ```

>>### The SQL transaction
```
let up = new UpInfo().getGuest();//Simulated user upload
let cmds = ["update test set data=? where idpk=?"
, "update test set item=? where idpk=?"
]
let values = [[up.getNewid(), "1"]
, [up.getNewid(), "2"]]
let errtexts = ["If the first command goes wrong, what do we want to see."
, "What do we want to see if the second command fails."]
let logtext = "What do we want to write in the past journal. Just like a normal call's cmdText. "
let logvalues = ["Just like a normal call's val1", "Just like a normal call's val2"]
let tmp=await mysql78.doT(cmds, values, errtexts, logtext, logvalues, up)
//tmp="ok" or errtext
```
>>### create system table
```
let up = new UpInfo().getGuest();//Simulated user upload
mysql78.creatTb(up )
```
***

@@ -98,0 +121,0 @@ >## 框架简要说明

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc