@palbase/backend 38.0.16 → 39.0.0

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.
Files changed (58) hide show
  1. package/dist/bin/palbase-backend.cjs +46 -1
  2. package/dist/bin/palbase-backend.cjs.map +1 -1
  3. package/dist/bin/palbase-backend.js +5 -5
  4. package/dist/{chunk-LFUNRWUE.js → chunk-4J6I4KVQ.js} +67 -3
  5. package/dist/{chunk-LFUNRWUE.js.map → chunk-4J6I4KVQ.js.map} +1 -1
  6. package/dist/{chunk-7WAGQ3VR.js → chunk-AR2I4M7I.js} +497 -17
  7. package/dist/chunk-AR2I4M7I.js.map +1 -0
  8. package/dist/{chunk-YANGWAIM.js → chunk-H7EKL6HC.js} +2 -2
  9. package/dist/{chunk-EHKEMHB4.js → chunk-JJSR4BUX.js} +49 -5
  10. package/dist/chunk-JJSR4BUX.js.map +1 -0
  11. package/dist/{chunk-CS6NQ6PO.js → chunk-JPTFYHP3.js} +2 -2
  12. package/dist/{chunk-CS6NQ6PO.js.map → chunk-JPTFYHP3.js.map} +1 -1
  13. package/dist/{chunk-X7UR3VXA.js → chunk-XZWOMPD3.js} +3 -2
  14. package/dist/chunk-XZWOMPD3.js.map +1 -0
  15. package/dist/{chunk-PDD55QWN.js → chunk-ZNQDL466.js} +2 -2
  16. package/dist/db/index.cjs +378 -14
  17. package/dist/db/index.cjs.map +1 -1
  18. package/dist/db/index.d.cts +1 -1
  19. package/dist/db/index.d.ts +1 -1
  20. package/dist/db/index.js +3 -3
  21. package/dist/engine/index.cjs +46 -1
  22. package/dist/engine/index.cjs.map +1 -1
  23. package/dist/engine/index.d.cts +3 -3
  24. package/dist/engine/index.d.ts +3 -3
  25. package/dist/engine/index.js +5 -5
  26. package/dist/{index-CI7S0Wqv.d.cts → index-B0mjUnxy.d.cts} +25 -2
  27. package/dist/{index-CUy50OLU.d.ts → index-eN4KzGa5.d.ts} +555 -29
  28. package/dist/{index-DRx880KY.d.cts → index-pK2At5Yc.d.cts} +555 -29
  29. package/dist/{index-Ogi30dbt.d.ts → index-yDno9Ju9.d.ts} +25 -2
  30. package/dist/index.cjs +628 -17
  31. package/dist/index.cjs.map +1 -1
  32. package/dist/index.d.cts +183 -8
  33. package/dist/index.d.ts +183 -8
  34. package/dist/index.js +74 -6
  35. package/dist/index.js.map +1 -1
  36. package/dist/openapi/index.cjs.map +1 -1
  37. package/dist/openapi/index.d.cts +2 -2
  38. package/dist/openapi/index.d.ts +2 -2
  39. package/dist/openapi/index.js +2 -2
  40. package/dist/{registry-C7UCkQf0.d.cts → registry-9dNeVN5d.d.cts} +1 -1
  41. package/dist/{registry-DJcvbomD.d.ts → registry-B8ddZiMY.d.ts} +1 -1
  42. package/dist/test/index.cjs +19 -0
  43. package/dist/test/index.cjs.map +1 -1
  44. package/dist/test/index.d.cts +1 -1
  45. package/dist/test/index.d.ts +1 -1
  46. package/dist/test/index.js +20 -2
  47. package/dist/test/index.js.map +1 -1
  48. package/docs/README.md +1 -1
  49. package/docs/database.md +79 -0
  50. package/docs/llms-full.txt +462 -33
  51. package/docs/schema.md +382 -32
  52. package/package.json +1 -1
  53. package/template/package.json +1 -1
  54. package/dist/chunk-7WAGQ3VR.js.map +0 -1
  55. package/dist/chunk-EHKEMHB4.js.map +0 -1
  56. package/dist/chunk-X7UR3VXA.js.map +0 -1
  57. /package/dist/{chunk-YANGWAIM.js.map → chunk-H7EKL6HC.js.map} +0 -0
  58. /package/dist/{chunk-PDD55QWN.js.map → chunk-ZNQDL466.js.map} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { T as Token } from '../module-Dl1KFVtc.cjs';
2
- import { E as EnvServiceDatabase, a as DBClient, b as RuntimeServices } from '../index-DRx880KY.cjs';
2
+ import { E as EnvServiceDatabase, a as DBClient, b as RuntimeServices } from '../index-pK2At5Yc.cjs';
3
3
  import 'zod';
4
4
  import '../db/env.cjs';
5
5
  import '../stack.cjs';
@@ -1,5 +1,5 @@
1
1
  import { T as Token } from '../module-Dl1KFVtc.js';
2
- import { E as EnvServiceDatabase, a as DBClient, b as RuntimeServices } from '../index-CUy50OLU.js';
2
+ import { E as EnvServiceDatabase, a as DBClient, b as RuntimeServices } from '../index-eN4KzGa5.js';
3
3
  import 'zod';
4
4
  import '../db/env.js';
5
5
  import '../stack.js';
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  __requestALS,
6
6
  makeTypedSurface
7
- } from "../chunk-X7UR3VXA.js";
7
+ } from "../chunk-XZWOMPD3.js";
8
8
  import {
9
9
  assertNoExpressionHandles,
10
10
  assertUsableFilter,
@@ -14,7 +14,7 @@ import {
14
14
  isColumnExpr,
15
15
  isNowExpr,
16
16
  isSqlFragment
17
- } from "../chunk-LFUNRWUE.js";
17
+ } from "../chunk-4J6I4KVQ.js";
18
18
  import {
19
19
  __name
20
20
  } from "../chunk-VXPNPVAG.js";
@@ -1834,6 +1834,24 @@ function createMockDB() {
1834
1834
  throw new Error(`lockRows(${table}): \u015Fu id'ler yok: ${missing.join(", ")} \u2014 kilitlenecek sat\u0131r bulunamad\u0131.`);
1835
1835
  }
1836
1836
  },
1837
+ /**
1838
+ * `lockRowsWhere` — `lockRows` ile AYNI gerekçe, aynı parite seviyesi.
1839
+ *
1840
+ * Kilit tek işlemli bir sahte depoda anlamsız, ama motorun REDDETTİĞİ bir
1841
+ * çağrı burada da reddedilmeli: boş filtre (bütün tabloyu kilitlemek) ve
1842
+ * tanınmayan bir kilit modu. Fake bunları geçirseydi, yazarın testi
1843
+ * üretimde patlayan bir çağrıya karşı yeşil olurdu.
1844
+ */
1845
+ async lockRowsWhere(table, where, opts) {
1846
+ const mode = opts?.mode ?? "update";
1847
+ if (mode !== "update" && mode !== "share" && mode !== "noKeyUpdate") {
1848
+ throw new Error(`lockRowsWhere(${table}): bilinmeyen mode "${String(mode)}" \u2014 "update", "share" ya da "noKeyUpdate".`);
1849
+ }
1850
+ if (Object.keys(where).length === 0) throw new Error(`lockRowsWhere(${table}): bo\u015F filtre`);
1851
+ assertUsableFilter("lockRowsWhere", table, where);
1852
+ refuseFragment("lockRowsWhere", table, where);
1853
+ (store.get(table) ?? []).filter((r) => rowMatchesFilter("lockRowsWhere", table, r, where));
1854
+ },
1837
1855
  /** Sahte depoda kilit yok; sözleşme (çağrı patlamaz) korunuyor. */
1838
1856
  async advisoryXactLock(_key) {
1839
1857
  return void 0;