MCPcopy Index your code
hub / github.com/pgadmin-org/pgadmin4 / create

Function create

web/pgadmin/static/js/tree/ObjectExplorer/index.jsx:150–157  ·  view source on GitHub ↗
(parentPath, _data)

Source from the content-addressed store, hash-verified

148 };
149 // Create Node
150 const create = async (parentPath, _data) => {
151 try {
152 const _node_path = parentPath + '/' + _data.id;
153 return mtree.addNode(parentPath, _node_path, _data);
154 } catch {
155 return null; // or throw error as you see fit
156 }
157 };
158
159 // Remove Node
160 const remove = async (path, _removeOnlyChild) => {

Callers 1

store.jsFile · 0.50

Calls 1

addNodeMethod · 0.80

Tested by

no test coverage detected