function select(table: string, option?: selectoption): promise<any[]>;
const cloud = require("@alipay/faas-server-sdk");
exports.main = async (event, context) => {
const mysql = cloud.mysql();
return await mysql.select('some-table', {
where: {
type: 'target',
},
columns: ['author', 'title'],
// orders: 'createtime', 二者等价
orders: [['createtime', 'asc']],
limit: 20,
skip: 10,
});
};