An easy snippet to generate CRUD code for nodeJs MySQL quickly
Usage
prefix |
description |
nd-import |
Include MYSQL |
nd-connServer |
Create Server Connection |
nd-connDb |
Create Database Connection |
nd-createDb |
Create Database |
nd-query |
Manual Query |
nd-createTb |
Create Table |
nd-insert |
Insert Data |
nd-update |
Update Data |
nd-delete |
Delete Data |
nd-select |
Selecting Data |
Example
Input: nd-connDb
Result:
var con = mysql.createConnection({
host: "hostname",
user: "username",
password: "password",
database: "database"
});
Change Logs
30 JULY 2012
| |