mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 12:35:59 +00:00
tree loader
This commit is contained in:
@@ -203,6 +203,7 @@ const driver = {
|
||||
|
||||
async scanKeys(dbhan, pattern, cursor = 0, count) {
|
||||
const [nextCursor, keys] = await dbhan.client.scan(cursor, 'MATCH', pattern || '*', 'COUNT', count);
|
||||
const dbsize = await dbhan.client.dbsize();
|
||||
const keysMapped = keys.map((key) => ({
|
||||
key,
|
||||
}));
|
||||
@@ -210,6 +211,7 @@ const driver = {
|
||||
return {
|
||||
nextCursor,
|
||||
keys: keysMapped,
|
||||
dbsize,
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user