Which javascript library for accessing mysql can you recommend?

I am using JavaScript separately without working in the browser.

I want to connect to a mysql server running on the same host.

Is there a JavaScript library for this?

Edit: I looked at Jester. It has mysql functionality, but it is baked into the framework.

+2


source to share


2 answers


If you mean server-side Javascript, Jaxer:

http://www.gen-x-design.com/archives/javascript-mysql-with-jaxer/



Otherwise Javascript is mostly used for client side scripting. While you can use XMLHttpRequest and end up with a backend page that can interact with the backend to access the db.

+6


source


npm search mysql

shows several libraries, both direct drivers and ORM. It looks like the fastest server side will be either mysql-libmysqlclient

or db-mysql

. See also MySQL section https://github.com/joyent/node/wiki/modules



0


source







All Articles