mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 04:26:01 +00:00
create, drop collection from menu
This commit is contained in:
@@ -88,6 +88,12 @@ const driver = {
|
||||
columns: [],
|
||||
};
|
||||
},
|
||||
async script(pool, sql) {
|
||||
let func;
|
||||
func = eval(`(db,ObjectId) => { ${sql} }`);
|
||||
const db = await getScriptableDb(pool);
|
||||
func(db, ObjectId);
|
||||
},
|
||||
async stream(pool, sql, options) {
|
||||
let func;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user