node-dao
Node-Dao - Simple MongoDb-like interface to MySql, PostgreSql, SqlLite and Mongo databases
look like this:
var rsa = await daoConnection;
find method samples:
;
so, dao request
;
will be translated for MySQL like that
SELECT * FROM messages WHERE name = “john” ORDER BY name DESC LIMIT 1 OFFSET 1;
If you call count() instread toArray() then the request will be generated as:
SELECT FROM messages WHERE name = “john” LIMIT 1 OFFSET 1;