dbtasker 1.0.0

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/app.js ADDED
@@ -0,0 +1,32 @@
1
+ const mysql = require("mysql2/promise");
2
+ const mdatabase = require("./index");
3
+
4
+
5
+ const DBInfo = {
6
+ port: 3301,
7
+ host: "localhost",
8
+ user: "root",
9
+ password: "1234",
10
+ database: "test",
11
+ waitForConnections: true,
12
+ connectionLimit: 100,
13
+ queueLimit: 0,
14
+ };
15
+ let pool = mysql.createPool({
16
+ port: DBInfo.port,
17
+ host: DBInfo.host,
18
+ user: DBInfo.user,
19
+ password: DBInfo.password,
20
+ database: DBInfo.database,
21
+ waitForConnections: DBInfo.waitForConnections,
22
+ connectionLimit: DBInfo.connectionLimit,
23
+ queueLimit: DBInfo.queueLimit
24
+ });
25
+
26
+ module.exports = {
27
+ DBInfo
28
+ }
29
+
30
+
31
+
32
+