tina4-nodejs 3.10.12 → 3.10.13
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/CLAUDE.md +2 -2
- package/package.json +1 -1
- package/packages/orm/src/baseModel.ts +5 -0
package/CLAUDE.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
# CLAUDE.md — AI Developer Guide for tina4-nodejs (v3.10.
|
|
1
|
+
# CLAUDE.md — AI Developer Guide for tina4-nodejs (v3.10.13)
|
|
2
2
|
|
|
3
3
|
> This file helps AI assistants (Claude, Copilot, Cursor, etc.) understand and work on this codebase effectively.
|
|
4
4
|
|
|
5
5
|
## What This Project Is
|
|
6
6
|
|
|
7
|
-
Tina4 for Node.js/TypeScript v3.10.
|
|
7
|
+
Tina4 for Node.js/TypeScript v3.10.13 — a convention-over-configuration structural paradigm. **Not a framework.** The developer writes TypeScript; Tina4 is invisible infrastructure.
|
|
8
8
|
|
|
9
9
|
The philosophy: zero ceremony, batteries included, file system as source of truth.
|
|
10
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tina4-nodejs",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "This is not a framework. Tina4 for Node.js/TypeScript — zero deps, 38 built-in features.",
|
|
6
6
|
"keywords": ["tina4", "framework", "web", "api", "orm", "graphql", "websocket", "typescript"],
|
|
@@ -266,6 +266,7 @@ export class BaseModel {
|
|
|
266
266
|
this[pk] = result.lastInsertRowid;
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
|
+
db.commit();
|
|
269
270
|
}
|
|
270
271
|
|
|
271
272
|
/**
|
|
@@ -294,6 +295,7 @@ export class BaseModel {
|
|
|
294
295
|
[pkValue],
|
|
295
296
|
);
|
|
296
297
|
}
|
|
298
|
+
db.commit();
|
|
297
299
|
}
|
|
298
300
|
|
|
299
301
|
/**
|
|
@@ -459,6 +461,7 @@ export class BaseModel {
|
|
|
459
461
|
const sql = `CREATE TABLE IF NOT EXISTS "${this.tableName}" (${colDefs.join(", ")})`;
|
|
460
462
|
db.execute(sql);
|
|
461
463
|
}
|
|
464
|
+
db.commit();
|
|
462
465
|
}
|
|
463
466
|
|
|
464
467
|
/**
|
|
@@ -505,6 +508,7 @@ export class BaseModel {
|
|
|
505
508
|
`DELETE FROM "${ModelClass.tableName}" WHERE "${pkCol}" = ?`,
|
|
506
509
|
[pkValue],
|
|
507
510
|
);
|
|
511
|
+
db.commit();
|
|
508
512
|
}
|
|
509
513
|
|
|
510
514
|
/**
|
|
@@ -529,6 +533,7 @@ export class BaseModel {
|
|
|
529
533
|
`UPDATE "${ModelClass.tableName}" SET is_deleted = 0 WHERE "${pkCol}" = ?`,
|
|
530
534
|
[pkValue],
|
|
531
535
|
);
|
|
536
|
+
db.commit();
|
|
532
537
|
this.is_deleted = 0;
|
|
533
538
|
}
|
|
534
539
|
|