File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 24
24
"@types/pg" : " ^7.4.10" ,
25
25
"jest" : " ^26.0.1" ,
26
26
"log4js" : " ^6.2.1" ,
27
- "mysql " : " ^2.15 .0" ,
27
+ "mysql2 " : " ^2.1 .0" ,
28
28
"node-ssh-forward" : " ^0.6.3" ,
29
29
"pg" : " ^7.4.3" ,
30
+ "sqlint" : " ^0.9.2" ,
30
31
"sqlite3" : " ^4.2.0" ,
31
32
"vscode-languageclient" : " ^6.1.3" ,
32
33
"vscode-languageserver" : " ^6.1.1" ,
33
34
"vscode-languageserver-textdocument" : " ^1.0.1" ,
34
- "yargs" : " ^12.0.1" ,
35
- "sqlint" : " ^0.9.2"
35
+ "yargs" : " ^12.0.1"
36
36
},
37
37
"devDependencies" : {
38
38
"@rollup/plugin-commonjs" : " ^11.1.0" ,
Original file line number Diff line number Diff line change 1
1
declare module 'yargs'
2
+ declare module 'mysql2'
Original file line number Diff line number Diff line change 1
- import * as mysql from 'mysql'
1
+ import * as mysql from 'mysql2'
2
+ import * as mysqlType from 'mysql'
2
3
import { Settings } from '../SettingStore'
3
4
import AbstractClient , { RawField } from './AbstractClient'
4
5
5
6
export default class MysqlClient extends AbstractClient {
6
- connection : mysql . Connection | null = null
7
+ connection : mysqlType . Connection | null = null
7
8
8
9
constructor ( settings : Settings ) {
9
10
super ( settings )
@@ -47,7 +48,7 @@ export default class MysqlClient extends AbstractClient {
47
48
reject ( new Error ( err . message ) )
48
49
return
49
50
}
50
- const tables = results . map ( ( v : any ) => v [ ` table_name` ] )
51
+ const tables = results . map ( ( v : any ) => v [ ' table_name' ] || v [ 'TABLE_NAME' ] )
51
52
resolve ( tables )
52
53
} )
53
54
} )
You can’t perform that action at this time.
0 commit comments