MCPcopy
hub / github.com/joeferner/redis-commander / exportKey

Function exportKey

web/static/scripts/redisCommander.js:834–852  ·  view source on GitHub ↗
(connectionId, key)

Source from the content-addressed store, hash-verified

832}
833
834function exportKey (connectionId, key) {
835 var node = null;
836 if (typeof (connectionId) === 'object') {
837 // context menu click
838 node = getKeyTree().get_node(connectionId.reference[0]);
839 key = getFullKeyPath(node);
840 connectionId = getRootConnection(node);
841 }
842 $.ajax({
843 method: 'GET',
844 url: 'tools/forms/export',
845 success: function (res) {
846 var body = $('#body')
847 body.html(res);
848 body.find('#connectionExportField option[value="' + connectionId + '"]').attr('selected', true);
849 body.find('#exportKeyPrefix').val(key);
850 }
851 });
852}
853
854function deleteKey (connectionId, key) {
855 var node = null;

Callers

nothing calls this directly

Calls 4

getKeyTreeFunction · 0.85
getFullKeyPathFunction · 0.85
getRootConnectionFunction · 0.85
$Function · 0.85

Tested by

no test coverage detected