1.0.4 • Published 7 years ago

mysqcnl v1.0.4

Weekly downloads
6
License
GPLv3
Repository
github
Last release
7 years ago

MySQcnL

Description

MySQcnL is a NodeJS library built to query large amounts of data from an sql database without spaghetti code, it requires the following node modules:

  • Node-Mysql
  • jsonfile

Functions

createConnection

This is the function which must be called first to use the library

Usage

send it the path of a .JSON which features the following attributes

{
	"limit"		:	"",
	"host"		:	"",
	"user"		:	"",
	"password"	:	"",
	"database"	:	""
}	

SELECT

This is the function which uses select to pull data from the database

Usage

mysqcnl.select({
    wanted: columns to select
    table: table to select from
    where (optional): conditionals
}, callback);
mysqcnl.select({
    wanted: "User, Host",
    table: "user",
    where: "User = 'root'"
} function(data){
...
});

Future Features

Update

Change attributes of a row.

Insert

Add new row to table.

Delete

Remove row from a table.

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago