Home > Mobile >  WeChat small program on cloud function how to use a MSSQL database connection?
WeChat small program on cloud function how to use a MSSQL database connection?

Time:09-20

WeChat small program on cloud function how to use a MSSQL database connection?

Small program JavaScript support
Operating limits
Based on security considerations, the small program does not support the dynamic execution of JS code, namely:
Don't support the use of eval JS code execution
Does not support the use of new Function to create Function

How do you write this? There are a great god can do?
Var connection=new MSSQL. Connection (config, function (err) {this line of code is a waste, how to do? Thank god!

CodePudding user response:

NPM install - save MSSQL

CodePudding user response:

The key, you is feasible in the MSSQL exposed to the public? Why don't use nodejs builds a background? Middleware processing database operations
  • Related