|
|
|
@ -13,6 +13,7 @@ class Xsql {
|
|
|
|
|
this.pool = {}; |
|
|
|
|
this.metaDb = {}; |
|
|
|
|
this.metaDb.tables = {}; |
|
|
|
|
this.metaDb.routines = {} |
|
|
|
|
|
|
|
|
|
this.sqlConfig = sqlConfig; |
|
|
|
|
this.pool = pool; |
|
|
|
@ -49,10 +50,11 @@ class Xsql {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
self.iterateToCacheTables(results); |
|
|
|
|
self.iterateToCacheTablePks(results); |
|
|
|
|
self.iterateToCacheTableColumns(results); |
|
|
|
|
self.iterateToCacheTableFks(results); |
|
|
|
|
self.iterateToCacheTables(results) |
|
|
|
|
self.iterateToCacheTablePks(results) |
|
|
|
|
self.iterateToCacheTableColumns(results) |
|
|
|
|
self.iterateToCacheTableFks(results) |
|
|
|
|
self.iterateToCacheRoutines(results) |
|
|
|
|
|
|
|
|
|
// osx mysql server has limitations related to open_tables
|
|
|
|
|
self.pool.query("FLUSH TABLES", [], (err, results) => { |
|
|
|
@ -741,6 +743,14 @@ class Xsql {
|
|
|
|
|
return schemaRoutes; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
getProcList() { |
|
|
|
|
let procRoutes = [] |
|
|
|
|
for (var procName in this.metaDb.routines) { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
return procRoutes |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
getJoinType(joinInQueryParams) { |
|
|
|
|
//console.log('joinInQueryParams',joinInQueryParams);
|
|
|
|
|
|
|
|
|
|