1.2.5 • Published 6 years ago

my-sql-rest-api v1.2.5

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

// myDb.get("funs").then(function(result) { // console.log(result); // });

// myDb // .post("funs", { title: "hahahahha", url: "cccccc" }) // .then(function(result) { // return result; // // { // // "fieldCount": 0, // // "affectedRows": 1, // // "insertId": 4, // // "serverStatus": 2, // // "warningCount": 0, // // "message": "", // // "protocol41": true, // // "changedRows": 0 // // } // });

// myDb // .put("funs", {id:3, title: "33333", url: "33333" ,content:'test'}) // .then(function(result) { // return result; // // { // // "fieldCount": 0, // // "affectedRows": 1, // // "insertId": 0, // // "serverStatus": 2, // // "warningCount": 0, // // "message": "(Rows matched: 1 Changed: 1 Warnings: 0", // // "protocol41": true, // // "changedRows": 1 // // } // }); //

// ctx.body = await myDb // .delete("funs", {id:3}) // .then(function(result) { // return result; // // { // // "fieldCount": 0, // // "affectedRows": 1, // // "insertId": 0, // // "serverStatus": 2, // // "warningCount": 0, // // "message": "", // // "protocol41": true, // // "changedRows": 0 // // } // }); //return;

1.2.5

6 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.1.1

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago