tina4-nodejs 3.13.57 → 3.13.59
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/database.ts +6 -0
package/CLAUDE.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
# CLAUDE.md - AI Developer Guide for tina4-nodejs (v3.13.
|
|
1
|
+
# CLAUDE.md - AI Developer Guide for tina4-nodejs (v3.13.59)
|
|
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.13.
|
|
7
|
+
Tina4 for Node.js/TypeScript v3.13.59 — The Intelligent Native Application 4ramework. A convention-over-configuration structural paradigm. 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
|
@@ -347,6 +347,12 @@ export function parseDatabaseUrl(url: string, username?: string, password?: stri
|
|
|
347
347
|
// sqlite://./relative or sqlite://relative — legacy two-slash form
|
|
348
348
|
const path = url.slice("sqlite://".length);
|
|
349
349
|
result = { type: "sqlite", path };
|
|
350
|
+
} else if (url.startsWith("sqlite:")) {
|
|
351
|
+
// sqlite:/abs/app.db (one slash = a real absolute path) or sqlite:app.db (relative).
|
|
352
|
+
// Keep the leading slash so resolveSqlitePath's isAbsolute() sees the absolute path —
|
|
353
|
+
// this form used to fall through and throw "unsupported scheme" (the naive-abs footgun).
|
|
354
|
+
const path = url.slice("sqlite:".length);
|
|
355
|
+
result = { type: "sqlite", path };
|
|
350
356
|
} else if (url.startsWith("mssql://") || url.startsWith("sqlserver://")) {
|
|
351
357
|
// Handle mssql:// and sqlserver:// with custom parsing (URL class doesn't know these schemes)
|
|
352
358
|
const match = url.match(/(?:mssql|sqlserver):\/\/(?:([^:]+):([^@]+)@)?([^:/]+)(?::(\d+))?\/(.*)/);
|