create-nserve 1.0.3 → 1.0.4
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import express from 'express'
|
|
2
2
|
import routers from './handler/router'
|
|
3
|
-
import
|
|
3
|
+
import esql from '@aicblock/esql'
|
|
4
4
|
import { LoadConfig } from '@aicblock/nserve/lib/tools'
|
|
5
5
|
import { join } from 'path'
|
|
6
6
|
import models from '@/model'
|
|
@@ -16,7 +16,7 @@ const initDatabase = async () => {
|
|
|
16
16
|
throw Error('Failed to read the database configuration file')
|
|
17
17
|
}
|
|
18
18
|
try {
|
|
19
|
-
global.mysql = new
|
|
19
|
+
global.mysql = new esql({
|
|
20
20
|
connConfig: {
|
|
21
21
|
database,
|
|
22
22
|
user,
|