mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 02:06:01 +00:00
18 lines
377 B
JavaScript
18 lines
377 B
JavaScript
const connections = require('./connections');
|
|
const socket = require('../utility/socket');
|
|
|
|
module.exports = {
|
|
opened: [],
|
|
|
|
async ensureOpened(id) {
|
|
const existing = this.opened.find(x => x.connection.id == id);
|
|
if (existing) return existing;
|
|
|
|
},
|
|
|
|
listDatabases_meta: 'get',
|
|
async listDatabases({ id }) {
|
|
const opened = this.ensureOpened(id);
|
|
},
|
|
};
|