MCPcopy
hub / github.com/simstudioai/sim / isInsideDbTransaction

Function isInsideDbTransaction

packages/db/tx-tripwire.ts:31–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29 * instrumented pool (any `db.transaction(...)` / `sql.begin(...)`).
30 */
31export function isInsideDbTransaction(): boolean {
32 return transactionContext.getStore() === true
33}
34
35function isThenable(value: unknown): value is PromiseLike<unknown> {
36 return (

Callers 1

Calls 1

getStoreMethod · 0.80

Tested by

no test coverage detected