mysql-q
1.0.1 • Public • Published
Query mysql in json syntax
- createPool
- registerTable
- getTable
const mysql = require('mysql-query');
mysql.createPool(...config);
mysql.registerTable(['users', 'orders']);
mysql.registerTable('transactions');
const users = mysql.getTable('users');
users.findOne({});
users.find();
users.insertOne();
users.updateOne();
users.updateMany();
users.count();
users.join();
users.find({ username: 'rock' })
.select('username createdAt')
.skip(10)
.limit(20)
.sort({ username: 1 , createdAt: -1 });
Versions
Version | Downloads (Last 7 Days) | Tag |
---|
1.0.1 | 1 | latest |
Version History
Version | Downloads (Last 7 Days) | Published |
---|
1.0.1 | 1 | |
1.0.0 | 1 | |
Package Sidebar
Install
Weekly Downloads