Forum Discussion

divergentor's avatar
divergentor
Occasional Contributor
7 years ago

Is it possible to connect to SQL DB from JavaScript?

Is it possible to connect to SQL DB from JavaScript?
I found a lot of examples how to connect from soapui scripts to sql via Groove, but no examples via javaScript.
All scripts in my project are written on javascript, that is why I cannot use groove in this case.
For JS all option how to connect to db contain 'require' command to connect external library, and when I tried it I had

"ERROR:org.mozilla.javascript.EcmaError: ReferenceError: "require" is not defined"

What is my general reason to do it? I want insert Load test results into DB, to build performance graphs.

Could anybody suggest the solution?
Thank you in advance.

No RepliesBe the first to reply