Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

Is there any mysql framework for node.js? I found only https://github.com/felixge/node-mysql but this only allows executing "raw" mysql statements. I am looking for some tool which will provide easier way of manipulating mysql database and data.

Especially I need pagination and joining mechanisms...

I am not looking for a full framework because I am using restify to build RESTapi - just need a module to retrieve/save data to mysql db. So I need only "model" part of MVC ;).

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

It sounds like you may be looking for an ORM. If that's the case, you can take a look at Sequelize. It will let you define your objects, and then simply 'save' and 'fetch' them, without really having to worry about how its doing it.

share|improve this answer
add comment

You can look at db-mysql module. This module provides api for creating queries. Here is module GitHub page.

share|improve this answer
1  
Please change "GitHup" to "GitHub" –  Mattias Apr 3 '13 at 19:17
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.