@palbase/backend 38.0.16 → 39.1.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.
- package/dist/bin/palbase-backend.cjs +46 -1
- package/dist/bin/palbase-backend.cjs.map +1 -1
- package/dist/bin/palbase-backend.js +5 -5
- package/dist/{chunk-LFUNRWUE.js → chunk-4J6I4KVQ.js} +67 -3
- package/dist/{chunk-LFUNRWUE.js.map → chunk-4J6I4KVQ.js.map} +1 -1
- package/dist/{chunk-7WAGQ3VR.js → chunk-AR2I4M7I.js} +497 -17
- package/dist/chunk-AR2I4M7I.js.map +1 -0
- package/dist/{chunk-YANGWAIM.js → chunk-H7EKL6HC.js} +2 -2
- package/dist/{chunk-EHKEMHB4.js → chunk-JJSR4BUX.js} +49 -5
- package/dist/chunk-JJSR4BUX.js.map +1 -0
- package/dist/{chunk-CS6NQ6PO.js → chunk-JPTFYHP3.js} +2 -2
- package/dist/{chunk-CS6NQ6PO.js.map → chunk-JPTFYHP3.js.map} +1 -1
- package/dist/{chunk-X7UR3VXA.js → chunk-XZWOMPD3.js} +3 -2
- package/dist/chunk-XZWOMPD3.js.map +1 -0
- package/dist/{chunk-PDD55QWN.js → chunk-ZNQDL466.js} +2 -2
- package/dist/db/index.cjs +378 -14
- package/dist/db/index.cjs.map +1 -1
- package/dist/db/index.d.cts +1 -1
- package/dist/db/index.d.ts +1 -1
- package/dist/db/index.js +3 -3
- package/dist/engine/index.cjs +46 -1
- package/dist/engine/index.cjs.map +1 -1
- package/dist/engine/index.d.cts +3 -3
- package/dist/engine/index.d.ts +3 -3
- package/dist/engine/index.js +5 -5
- package/dist/{index-CI7S0Wqv.d.cts → index-B0mjUnxy.d.cts} +25 -2
- package/dist/{index-CUy50OLU.d.ts → index-eN4KzGa5.d.ts} +555 -29
- package/dist/{index-DRx880KY.d.cts → index-pK2At5Yc.d.cts} +555 -29
- package/dist/{index-Ogi30dbt.d.ts → index-yDno9Ju9.d.ts} +25 -2
- package/dist/index.cjs +629 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +216 -8
- package/dist/index.d.ts +216 -8
- package/dist/index.js +75 -6
- package/dist/index.js.map +1 -1
- package/dist/openapi/index.cjs.map +1 -1
- package/dist/openapi/index.d.cts +2 -2
- package/dist/openapi/index.d.ts +2 -2
- package/dist/openapi/index.js +2 -2
- package/dist/{registry-C7UCkQf0.d.cts → registry-9dNeVN5d.d.cts} +1 -1
- package/dist/{registry-DJcvbomD.d.ts → registry-B8ddZiMY.d.ts} +1 -1
- package/dist/test/index.cjs +19 -0
- package/dist/test/index.cjs.map +1 -1
- package/dist/test/index.d.cts +1 -1
- package/dist/test/index.d.ts +1 -1
- package/dist/test/index.js +20 -2
- package/dist/test/index.js.map +1 -1
- package/docs/README.md +1 -1
- package/docs/database.md +129 -0
- package/docs/llms-full.txt +512 -33
- package/docs/schema.md +382 -32
- package/package.json +1 -1
- package/template/package.json +1 -1
- package/dist/chunk-7WAGQ3VR.js.map +0 -1
- package/dist/chunk-EHKEMHB4.js.map +0 -1
- package/dist/chunk-X7UR3VXA.js.map +0 -1
- /package/dist/{chunk-YANGWAIM.js.map → chunk-H7EKL6HC.js.map} +0 -0
- /package/dist/{chunk-PDD55QWN.js.map → chunk-ZNQDL466.js.map} +0 -0
package/dist/test/index.d.cts
CHANGED
|
@@ -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-
|
|
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';
|
package/dist/test/index.d.ts
CHANGED
|
@@ -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-
|
|
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';
|
package/dist/test/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
__requestALS,
|
|
6
6
|
makeTypedSurface
|
|
7
|
-
} from "../chunk-
|
|
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-
|
|
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;
|