redis db context menu

This commit is contained in:
Jan Prochazka
2022-03-27 13:42:08 +02:00
parent e06894372f
commit 4bd7cd26d0
6 changed files with 40 additions and 11 deletions

View File

@@ -142,6 +142,7 @@ module.exports = {
createDatabase_meta: true,
async createDatabase({ conid, name }) {
const opened = await this.ensureOpened(conid);
if (opened.connection.isReadOnly) return false;
opened.subprocess.send({ msgtype: 'createDatabase', name });
return { status: 'ok' };
},