uql-orm 0.96.0 → 0.96.1
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.
|
@@ -56,16 +56,15 @@ function conjunction(parts) {
|
|
|
56
56
|
/** The most operands one level of a chain holds. */
|
|
57
57
|
const CHAIN_WIDTH = 16;
|
|
58
58
|
/**
|
|
59
|
-
* `parts` joined by `op`, a
|
|
60
|
-
*
|
|
59
|
+
* `parts` joined by `op`, a list past 16 split in parenthesized halves so its depth grows with the log of its
|
|
60
|
+
* length: a flat chain is as deep as it is long, which the Rust Turso engine refuses past 100 and SQLite past 1000.
|
|
61
61
|
*/
|
|
62
62
|
function chain(parts, op) {
|
|
63
63
|
if (parts.length <= CHAIN_WIDTH) {
|
|
64
64
|
return parts.join(` ${op} `);
|
|
65
65
|
}
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
return groups.map((group) => `(${chain(group, op)})`).join(` ${op} `);
|
|
66
|
+
const half = Math.ceil(parts.length / 2);
|
|
67
|
+
return `(${chain(parts.slice(0, half), op)}) ${op} (${chain(parts.slice(half), op)})`;
|
|
69
68
|
}
|
|
70
69
|
/**
|
|
71
70
|
* How `op` reads a JSON value: an ordered comparison as a number, an equality as its operand compares,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"homepage": "https://uql-orm.dev",
|
|
4
4
|
"description": "JSON-native TypeScript ORM for Bun, Browsers, Edge, Deno, Node, Workers. Supports PostgreSQL, PGlite, MySQL, MariaDB, SQLite, CockroachDB, SQL Server, Turso, Neon, Cloudflare D1 and MongoDB. Queries are plain JSON, typed to the leaf.",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "0.96.
|
|
6
|
+
"version": "0.96.1",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"engines": {
|
|
9
9
|
"node": ">=24"
|