MCPcopy
hub / github.com/Vincit/objection.js / execute

Method execute

lib/queryBuilder/QueryBuilder.js:440–451  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

438 }
439
440 async execute() {
441 // Take a clone so that we don't modify this instance during execution.
442 const builder = this.clone();
443
444 try {
445 await beforeExecute(builder);
446 const result = await doExecute(builder);
447 return await afterExecute(builder, result);
448 } catch (error) {
449 return await handleExecuteError(builder, error);
450 }
451 }
452
453 throwIfNotFound(data = {}) {
454 return this.runAfter((result) => {

Callers 8

thenMethod · 0.95
catchMethod · 0.95
createDontExistMapFunction · 0.45
runMethod · 0.45
_insertMethod · 0.45
runMethod · 0.45
_runForNodeMethod · 0.45

Calls 5

cloneMethod · 0.95
beforeExecuteFunction · 0.85
doExecuteFunction · 0.85
handleExecuteErrorFunction · 0.85
afterExecuteFunction · 0.70

Tested by

no test coverage detected