ags-sql-gen 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +69 -57
- package/connection.js +142 -0
- package/database/dbConnection.js +3 -3
- package/getJokes.js +13 -0
- package/index.js +4 -158
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
|
|
1
2
|
# AGS SQL Library
|
|
2
3
|
|
|
3
4
|
AGS is a lightweight Node.js MySQL helper library that simplifies database operations such as **SELECT**, **INSERT**, **UPDATE**, **DELETE**, and **JOIN** queries.
|
|
4
5
|
It also includes a fun bonus function: `getDadJokes()` — because debugging is better with a laugh. 😄
|
|
5
6
|
|
|
6
|
-
---
|
|
7
7
|
|
|
8
8
|
## 🚀 Features
|
|
9
9
|
|
|
10
|
-
- Simple MySQL query wrapper using async/await
|
|
10
|
+
- Simple MySQL query wrapper using async/await
|
|
11
11
|
- Automatic handling for:
|
|
12
12
|
- Single or multiple table queries
|
|
13
13
|
- Batch insert, update, and delete
|
|
@@ -15,78 +15,90 @@ It also includes a fun bonus function: `getDadJokes()` — because debugging is
|
|
|
15
15
|
- Minimal setup required — just plug in your MySQL connection
|
|
16
16
|
- Fun extra: fetches a random dad joke via `curl`
|
|
17
17
|
|
|
18
|
-
---
|
|
19
|
-
|
|
20
18
|
## 📦 Installation
|
|
21
19
|
|
|
22
20
|
```bash
|
|
23
|
-
npm install ags-sql-lib
|
|
21
|
+
npm install ags-sql-lib
|
|
22
|
+
npm install mysql2
|
|
23
|
+
```
|
|
24
|
+
## Usage Sample
|
|
24
25
|
|
|
25
|
-
|
|
26
|
+
### Importing
|
|
27
|
+
```js
|
|
26
28
|
import AGS from "ags-sql-lib";
|
|
27
29
|
|
|
28
30
|
const sql = new AGS("root", "password", "localhost", "my_database");
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
await sql.insertInto("
|
|
31
|
+
```
|
|
32
|
+
### select
|
|
33
|
+
Select all columns
|
|
34
|
+
```js
|
|
35
|
+
const result = await sql.select("*", "tblusers");
|
|
36
|
+
|
|
37
|
+
Select from multiple tables
|
|
38
|
+
const result = await sql.select("*", ["tblusers", "products"]);
|
|
39
|
+
|
|
40
|
+
Single
|
|
41
|
+
const user = await sql.selectWithId("id", "*", "tblusers", 1);
|
|
42
|
+
|
|
43
|
+
Multiple
|
|
44
|
+
const users = await sql.selectWithId("id", "*", "tblusers", [1, 2, 3]);
|
|
45
|
+
```
|
|
46
|
+
### InsertInto
|
|
47
|
+
Single insert
|
|
48
|
+
```js
|
|
49
|
+
await sql.insertInto("tblusers", { name: "John", age: 25 });
|
|
50
|
+
```
|
|
51
|
+
Multiple inserts
|
|
52
|
+
```js
|
|
53
|
+
await sql.insertInto("tblusers", [
|
|
48
54
|
{ name: "Alice", age: 22 },
|
|
49
55
|
{ name: "Bob", age: 30 }
|
|
50
56
|
]);
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
await sql.delete("
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
57
|
+
```
|
|
58
|
+
### Update
|
|
59
|
+
Single update
|
|
60
|
+
```js
|
|
61
|
+
await sql.update("id", "tblusers", { age: 26 }, 1);
|
|
62
|
+
```
|
|
63
|
+
Multiple updates
|
|
64
|
+
```js
|
|
65
|
+
await sql.update("id", "tblusers", [{ age: 22 }, { age: 28 }], [1, 2]);
|
|
66
|
+
```
|
|
67
|
+
### DELETE
|
|
68
|
+
Single delete
|
|
69
|
+
```js
|
|
70
|
+
await sql.delete("tblusers", "id", 1);
|
|
71
|
+
|
|
72
|
+
Multiple delete
|
|
73
|
+
await sql.delete("tblusers", "id", [2, 3]);
|
|
74
|
+
```
|
|
75
|
+
### Joining Table
|
|
76
|
+
|
|
77
|
+
LEFT JOIN example
|
|
78
|
+
```js
|
|
69
79
|
const result = await sql.selectLeftAndRightJoin(
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
80
|
+
"tblusers",
|
|
81
|
+
"tblorders",
|
|
82
|
+
"tblusers.name, tblorders.total",
|
|
83
|
+
"tblusers.id = tblorders.user_id",
|
|
84
|
+
"tblusers.id",
|
|
75
85
|
"LEFT JOIN",
|
|
76
86
|
1
|
|
77
87
|
);
|
|
78
|
-
|
|
79
|
-
|
|
88
|
+
```
|
|
89
|
+
INNER JOIN
|
|
90
|
+
```js
|
|
80
91
|
const result = await sql.selectInnerJoin(
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
92
|
+
"tblusers",
|
|
93
|
+
"tblorders",
|
|
94
|
+
"tblusers.name, tblorders.total",
|
|
95
|
+
"tblusers.id = tblorders.user_id"
|
|
85
96
|
);
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
97
|
+
```
|
|
98
|
+
### BONUS
|
|
99
|
+
```js
|
|
89
100
|
import { getDadJokes } from "ags-sql-lib";
|
|
90
101
|
|
|
91
102
|
const joke = await getDadJokes();
|
|
92
103
|
console.log(joke);
|
|
104
|
+
|
package/connection.js
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
const connection = require("./database/dbConnection");
|
|
2
|
+
|
|
3
|
+
module.exports = class {
|
|
4
|
+
#sqlOperation;
|
|
5
|
+
|
|
6
|
+
constructor(user, password, host, database) {
|
|
7
|
+
this.#sqlOperation = connection(user, password, host, database);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
async select(columnName, tableName) {
|
|
11
|
+
try {
|
|
12
|
+
if(Array.isArray(tableName)){
|
|
13
|
+
let result = [];
|
|
14
|
+
for(let i in tableName){
|
|
15
|
+
const sql = `SELECT * FROM ${tableName[i]}`;
|
|
16
|
+
const [selectResult] = await this.#sqlOperation.query(sql);
|
|
17
|
+
result.push(selectResult);
|
|
18
|
+
}
|
|
19
|
+
return result;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const sql = `SELECT ${columnName || "*"} FROM ${tableName}`;
|
|
23
|
+
const [result] = await this.#sqlOperation.query(sql);
|
|
24
|
+
return result;
|
|
25
|
+
} catch (error) {
|
|
26
|
+
console.log(error);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
async selectWithId(yourIdName, columnName, tableName, idValue) {
|
|
31
|
+
|
|
32
|
+
try {
|
|
33
|
+
if(Array.isArray(idValue)){
|
|
34
|
+
let result = [];
|
|
35
|
+
for(let i in idValue){
|
|
36
|
+
const sql = `SELECT ${columnName || "*"} FROM ${tableName} WHERE ${
|
|
37
|
+
yourIdName || "Id"
|
|
38
|
+
} = ${idValue[i]}`;
|
|
39
|
+
const [selectResult] = await this.#sqlOperation.query(sql)
|
|
40
|
+
result.push(selectResult[0]);
|
|
41
|
+
}
|
|
42
|
+
return result;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const sql = `SELECT ${columnName || "*"} FROM ${tableName} WHERE ${
|
|
46
|
+
yourIdName || "Id"
|
|
47
|
+
} = ${idValue}`;
|
|
48
|
+
const [selectResult] = await this.#sqlOperation.query(sql)
|
|
49
|
+
return selectResult[0];
|
|
50
|
+
|
|
51
|
+
} catch (error) {
|
|
52
|
+
console.log(error);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
async insertInto(tableName, objectValue) {
|
|
57
|
+
try {
|
|
58
|
+
if(Array.isArray(objectValue)){
|
|
59
|
+
let result = [];
|
|
60
|
+
for(let i in objectValue){
|
|
61
|
+
const sql = `INSERT INTO ${tableName} SET ?`;
|
|
62
|
+
const [insertResult] = await this.#sqlOperation.query(sql, [objectValue[i]]);
|
|
63
|
+
result.push(insertResult);
|
|
64
|
+
}
|
|
65
|
+
return result;
|
|
66
|
+
}
|
|
67
|
+
const sql = `INSERT INTO ${tableName} SET ?`;
|
|
68
|
+
const [insertResult] = await this.#sqlOperation.query(sql, [objectValue]);
|
|
69
|
+
return insertResult;
|
|
70
|
+
} catch (error) {
|
|
71
|
+
console.log(error);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
async update(yourIdName, tableName, objectValue, idValue) {
|
|
76
|
+
|
|
77
|
+
try {
|
|
78
|
+
if(Array.isArray(objectValue) && Array.isArray(idValue)){
|
|
79
|
+
let result = [];
|
|
80
|
+
for(let i in objectValue){
|
|
81
|
+
const sql = `UPDATE ${tableName} SET ? WHERE ${yourIdName} = ${idValue[i]}`;
|
|
82
|
+
const [updateResult] = await this.#sqlOperation.query(sql, [objectValue[i]]);
|
|
83
|
+
result.push(updateResult);
|
|
84
|
+
}
|
|
85
|
+
return result;
|
|
86
|
+
}
|
|
87
|
+
const sql = `UPDATE ${tableName} SET ? WHERE ${yourIdName} = ${idValue}`;
|
|
88
|
+
const [updateResult] = await this.#sqlOperation.query(sql, [objectValue]);
|
|
89
|
+
return updateResult;
|
|
90
|
+
} catch (error) {
|
|
91
|
+
console.log(error);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
async delete(tableName, yourIdName, idValue) {
|
|
96
|
+
try {
|
|
97
|
+
if(Array.isArray(idValue)){
|
|
98
|
+
let result = [];
|
|
99
|
+
for(let i in idValue){
|
|
100
|
+
const sql = `DELETE FROM ${tableName} WHERE ${yourIdName || "Id"} = ${idValue[i]}`;
|
|
101
|
+
const [deleteResult] = await this.#sqlOperation.query(sql);
|
|
102
|
+
result.push(deleteResult);
|
|
103
|
+
}
|
|
104
|
+
return result;
|
|
105
|
+
}
|
|
106
|
+
const sql = `DELETE FROM ${tableName} WHERE ${yourIdName || "Id"} = ${idValue}`;
|
|
107
|
+
const [deleteResult] = await this.#sqlOperation.query(sql);
|
|
108
|
+
return deleteResult;
|
|
109
|
+
} catch (error) {
|
|
110
|
+
console.log(error);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
async selectLeftAndRightJoin(tbl_a, tbl_b, columnName, onCondition, yourIdName, joinType, idValue) {
|
|
115
|
+
try {
|
|
116
|
+
if(Array.isArray(idValue)){
|
|
117
|
+
let result = [];
|
|
118
|
+
for(let i in idValue){
|
|
119
|
+
const sql = `SELECT ${columnName || "*"} FROM ${tbl_a} ${joinType} ${tbl_b} ON ${onCondition} WHERE ${yourIdName} = ${idValue[i]}`;
|
|
120
|
+
const [selectResult] = await this.#sqlOperation.query(sql);
|
|
121
|
+
result.push(selectResult[0]);
|
|
122
|
+
}
|
|
123
|
+
return result;
|
|
124
|
+
}
|
|
125
|
+
const sql = `SELECT ${columnName || "*"} FROM ${tbl_a} ${joinType} ${tbl_b} ON ${onCondition} WHERE ${yourIdName} = ${idValue}`;
|
|
126
|
+
const [selectResult] = await this.#sqlOperation.query(sql);
|
|
127
|
+
return selectResult;
|
|
128
|
+
} catch (error) {
|
|
129
|
+
console.log(error);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
async selectInnerJoin(tbl_a, tbl_b, columnName, onCondition){
|
|
134
|
+
try {
|
|
135
|
+
const sql = `SELECT ${columnName || "*"} FROM ${tbl_a} INNER JOIN ${tbl_b} ON ${onCondition}`;
|
|
136
|
+
const [result] = await this.#sqlOperation.query(sql);
|
|
137
|
+
return result;
|
|
138
|
+
} catch (error) {
|
|
139
|
+
console.log(error);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
};
|
package/database/dbConnection.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
const mysql = require("mysql2");
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
module.exports = (user, password, host, database) => {
|
|
4
4
|
const dbConnection = mysql
|
|
5
5
|
.createPool({
|
|
6
6
|
user: user,
|
|
@@ -11,4 +11,4 @@ export const db = (user, password, host, database) => {
|
|
|
11
11
|
.promise();
|
|
12
12
|
|
|
13
13
|
return dbConnection;
|
|
14
|
-
}
|
|
14
|
+
}
|
package/getJokes.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const { exec } = require("child_process");
|
|
2
|
+
|
|
3
|
+
module.exports = async () => {
|
|
4
|
+
return new Promise((resolve, reject) => {
|
|
5
|
+
try {
|
|
6
|
+
exec("curl https://icanhazdadjoke.com", (error, stdout, stderr) => {
|
|
7
|
+
return resolve(stdout);
|
|
8
|
+
});
|
|
9
|
+
} catch (error) {
|
|
10
|
+
return reject(error);
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
};
|
package/index.js
CHANGED
|
@@ -1,158 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
#sqlOperation;
|
|
7
|
-
|
|
8
|
-
constructor(aUser, aPassword, aHost, aDatabase) {
|
|
9
|
-
this.#sqlOperation = db(aUser, aPassword, aHost, aDatabase);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
async select(columnName, tableName) {
|
|
13
|
-
try {
|
|
14
|
-
if(Array.isArray(tableName)){
|
|
15
|
-
let result = [];
|
|
16
|
-
for(let i in tableName){
|
|
17
|
-
const sql = `SELECT * FROM ${tableName[i]}`;
|
|
18
|
-
const [selectResult] = await this.#sqlOperation.query(sql);
|
|
19
|
-
result.push(selectResult);
|
|
20
|
-
}
|
|
21
|
-
return result;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
const sql = `SELECT ${columnName || "*"} FROM ${tableName}`;
|
|
25
|
-
const [result] = await this.#sqlOperation.query(sql);
|
|
26
|
-
return result;
|
|
27
|
-
} catch (error) {
|
|
28
|
-
console.log(error);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
async selectWithId(yourIdName, columnName, tableName, idValue) {
|
|
33
|
-
|
|
34
|
-
try {
|
|
35
|
-
if(Array.isArray(idValue)){
|
|
36
|
-
let result = [];
|
|
37
|
-
for(let i in idValue){
|
|
38
|
-
const sql = `SELECT ${columnName || "*"} FROM ${tableName} WHERE ${
|
|
39
|
-
yourIdName || "Id"
|
|
40
|
-
} = ${idValue[i]}`;
|
|
41
|
-
const [selectResult] = await this.#sqlOperation.query(sql)
|
|
42
|
-
result.push(selectResult[0]);
|
|
43
|
-
}
|
|
44
|
-
return result;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
const sql = `SELECT ${columnName || "*"} FROM ${tableName} WHERE ${
|
|
48
|
-
yourIdName || "Id"
|
|
49
|
-
} = ${idValue}`;
|
|
50
|
-
const [selectResult] = await this.#sqlOperation.query(sql)
|
|
51
|
-
return selectResult[0];
|
|
52
|
-
|
|
53
|
-
} catch (error) {
|
|
54
|
-
console.log(error);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
async insertInto(tableName, objectValue) {
|
|
59
|
-
try {
|
|
60
|
-
if(Array.isArray(objectValue)){
|
|
61
|
-
let result = [];
|
|
62
|
-
for(let i in objectValue){
|
|
63
|
-
const sql = `INSERT INTO ${tableName} SET ?`;
|
|
64
|
-
const [insertResult] = await this.#sqlOperation.query(sql, [objectValue[i]]);
|
|
65
|
-
result.push(insertResult);
|
|
66
|
-
}
|
|
67
|
-
return result;
|
|
68
|
-
}
|
|
69
|
-
const sql = `INSERT INTO ${tableName} SET ?`;
|
|
70
|
-
const [insertResult] = await this.#sqlOperation.query(sql, [objectValue]);
|
|
71
|
-
return insertResult;
|
|
72
|
-
} catch (error) {
|
|
73
|
-
console.log(error);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
async update(yourIdName, tableName, objectValue, idValue) {
|
|
78
|
-
|
|
79
|
-
try {
|
|
80
|
-
if(Array.isArray(objectValue) && Array.isArray(idValue)){
|
|
81
|
-
let result = [];
|
|
82
|
-
for(let i in objectValue){
|
|
83
|
-
const sql = `UPDATE ${tableName} SET ? WHERE ${yourIdName} = ${idValue[i]}`;
|
|
84
|
-
const [updateResult] = await this.#sqlOperation.query(sql, [objectValue[i]]);
|
|
85
|
-
result.push(updateResult);
|
|
86
|
-
}
|
|
87
|
-
return result;
|
|
88
|
-
}
|
|
89
|
-
const sql = `UPDATE ${tableName} SET ? WHERE ${yourIdName} = ${idValue}`;
|
|
90
|
-
const [updateResult] = await this.#sqlOperation.query(sql, [objectValue]);
|
|
91
|
-
return updateResult;
|
|
92
|
-
} catch (error) {
|
|
93
|
-
console.log(error);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
async delete(tableName, yourIdName, idValue) {
|
|
98
|
-
try {
|
|
99
|
-
if(Array.isArray(idValue)){
|
|
100
|
-
let result = [];
|
|
101
|
-
for(let i in idValue){
|
|
102
|
-
const sql = `DELETE FROM ${tableName} WHERE ${yourIdName || "Id"} = ${idValue[i]}`;
|
|
103
|
-
const [deleteResult] = await this.#sqlOperation.query(sql);
|
|
104
|
-
result.push(deleteResult);
|
|
105
|
-
}
|
|
106
|
-
return result;
|
|
107
|
-
}
|
|
108
|
-
const sql = `DELETE FROM ${tableName} WHERE ${yourIdName || "Id"} = ${idValue}`;
|
|
109
|
-
const [deleteResult] = await this.#sqlOperation.query(sql);
|
|
110
|
-
return deleteResult;
|
|
111
|
-
} catch (error) {
|
|
112
|
-
console.log(error);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
async selectLeftAndRightJoin(tbl_a, tbl_b, columnName, onCondition, yourIdName, joinType, idValue) {
|
|
117
|
-
try {
|
|
118
|
-
if(Array.isArray(idValue)){
|
|
119
|
-
let result = [];
|
|
120
|
-
for(let i in idValue){
|
|
121
|
-
const sql = `SELECT ${columnName || "*"} FROM ${tbl_a} ${joinType} ${tbl_b} ON ${onCondition} WHERE ${yourIdName} = ${idValue[i]}`;
|
|
122
|
-
const [selectResult] = await this.#sqlOperation.query(sql);
|
|
123
|
-
result.push(selectResult[0]);
|
|
124
|
-
}
|
|
125
|
-
return result;
|
|
126
|
-
}
|
|
127
|
-
const sql = `SELECT ${columnName || "*"} FROM ${tbl_a} ${joinType} ${tbl_b} ON ${onCondition} WHERE ${yourIdName} = ${idValue}`;
|
|
128
|
-
const [selectResult] = await this.#sqlOperation.query(sql);
|
|
129
|
-
return selectResult;
|
|
130
|
-
} catch (error) {
|
|
131
|
-
console.log(error);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
async selectInnerJoin(tbl_a, tbl_b, columnName, onCondition){
|
|
136
|
-
try {
|
|
137
|
-
const sql = `SELECT ${columnName || "*"} FROM ${tbl_a} INNER JOIN ${tbl_b} ON ${onCondition}`;
|
|
138
|
-
const [result] = await this.#sqlOperation.query(sql);
|
|
139
|
-
return result;
|
|
140
|
-
} catch (error) {
|
|
141
|
-
console.log(error);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
export const getDadJokes = async () => {
|
|
147
|
-
return new Promise((resolve, reject) => {
|
|
148
|
-
try {
|
|
149
|
-
exec("curl https://icanhazdadjoke.com", (error, stdout, stderr) => {
|
|
150
|
-
return resolve(stdout);
|
|
151
|
-
});
|
|
152
|
-
} catch (error) {
|
|
153
|
-
return reject(error);
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
export default AGS;
|
|
1
|
+
module.exports = {
|
|
2
|
+
connect: require("./connection"),
|
|
3
|
+
getJokes: require("./getJokes")
|
|
4
|
+
};
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ags-sql-gen",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.3",
|
|
4
|
+
"description": "lightweight Node.js MySQL helper library",
|
|
5
5
|
"main": "index.js",
|
|
6
|
+
"type": "commonjs",
|
|
6
7
|
"scripts": {
|
|
7
8
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
9
|
},
|
|
9
|
-
"type": "module",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "git+https://github.com/Adrian294-AGS/AGS-SQL-Template.git"
|