MCPcopy Create free account
hub / github.com/porsager/postgres / savepoint

Function savepoint

deno/src/index.js:284–290  ·  view source on GitHub ↗
(name, fn)

Source from the content-addressed store, hash-verified

282 return result
283
284 function savepoint(name, fn) {
285 if (name && Array.isArray(name.raw))
286 return savepoint(sql => sql.apply(sql, arguments))
287
288 arguments.length === 1 && (fn = name, name = null)
289 return scope(c, fn, 's' + savepoints++ + (name ? '_' + name : ''))
290 }
291
292 function handler(q) {
293 q.catch(e => uncaughtError || (uncaughtError = e))

Callers

nothing calls this directly

Calls 1

scopeFunction · 0.70

Tested by

no test coverage detected