orchid-orm 1.37.2 → 1.37.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1790,6 +1790,9 @@ function transaction(fnOrOptions, fn) {
1790
1790
  function ensureTransaction(cb) {
1791
1791
  return this.$queryBuilder.ensureTransaction(cb);
1792
1792
  }
1793
+ function isInTransaction() {
1794
+ return this.$queryBuilder.isInTransaction();
1795
+ }
1793
1796
 
1794
1797
  var __defProp$1 = Object.defineProperty;
1795
1798
  var __defProps = Object.defineProperties;
@@ -1862,6 +1865,7 @@ const orchidORM = (_a, tables) => {
1862
1865
  const result = {
1863
1866
  $transaction: transaction,
1864
1867
  $ensureTransaction: ensureTransaction,
1868
+ $isInTransaction: isInTransaction,
1865
1869
  $adapter: adapter,
1866
1870
  $queryBuilder: qb,
1867
1871
  $query: (...args) => qb.query(...args),