@mikro-orm/better-sqlite 6.0.0-dev.50 → 6.0.0-dev.52
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/BetterSqlitePlatform.js +2 -2
- package/index.mjs +3 -1
- package/package.json +3 -3
package/BetterSqlitePlatform.js
CHANGED
|
@@ -86,9 +86,9 @@ class BetterSqlitePlatform extends knex_1.AbstractSqlPlatform {
|
|
|
86
86
|
getSearchJsonPropertyKey(path, type, aliased) {
|
|
87
87
|
const [a, ...b] = path;
|
|
88
88
|
if (aliased) {
|
|
89
|
-
return (0, core_1.
|
|
89
|
+
return (0, core_1.raw)(alias => `json_extract(${this.quoteIdentifier(`${alias}.${a}`)}, '$.${b.join('.')}')`);
|
|
90
90
|
}
|
|
91
|
-
return `json_extract(${this.quoteIdentifier(a)}, '$.${b.join('.')}')
|
|
91
|
+
return (0, core_1.raw)(`json_extract(${this.quoteIdentifier(a)}, '$.${b.join('.')}')`);
|
|
92
92
|
}
|
|
93
93
|
getIndexName(tableName, columns, type) {
|
|
94
94
|
if (type === 'primary') {
|
package/index.mjs
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import mod from "./index.js";
|
|
2
2
|
|
|
3
3
|
export default mod;
|
|
4
|
+
export const ALIAS_REPLACEMENT = mod.ALIAS_REPLACEMENT;
|
|
5
|
+
export const ALIAS_REPLACEMENT_RE = mod.ALIAS_REPLACEMENT_RE;
|
|
4
6
|
export const ARRAY_OPERATORS = mod.ARRAY_OPERATORS;
|
|
5
7
|
export const AbstractNamingStrategy = mod.AbstractNamingStrategy;
|
|
6
8
|
export const AbstractSchemaGenerator = mod.AbstractSchemaGenerator;
|
|
@@ -191,7 +193,6 @@ export const compareBuffers = mod.compareBuffers;
|
|
|
191
193
|
export const compareObjects = mod.compareObjects;
|
|
192
194
|
export const defineConfig = mod.defineConfig;
|
|
193
195
|
export const equals = mod.equals;
|
|
194
|
-
export const expr = mod.expr;
|
|
195
196
|
export const helper = mod.helper;
|
|
196
197
|
export const knex = mod.knex;
|
|
197
198
|
export const parseJsonSafe = mod.parseJsonSafe;
|
|
@@ -199,6 +200,7 @@ export const raw = mod.raw;
|
|
|
199
200
|
export const ref = mod.ref;
|
|
200
201
|
export const rel = mod.rel;
|
|
201
202
|
export const serialize = mod.serialize;
|
|
203
|
+
export const sql = mod.sql;
|
|
202
204
|
export const t = mod.t;
|
|
203
205
|
export const types = mod.types;
|
|
204
206
|
export const wrap = mod.wrap;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/better-sqlite",
|
|
3
|
-
"version": "6.0.0-dev.
|
|
3
|
+
"version": "6.0.0-dev.52",
|
|
4
4
|
"description": "TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.mjs",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@mikro-orm/knex": "~6.0.0-dev.
|
|
61
|
+
"@mikro-orm/knex": "~6.0.0-dev.52",
|
|
62
62
|
"better-sqlite3": "8.2.0",
|
|
63
63
|
"fs-extra": "11.1.1",
|
|
64
64
|
"sqlstring-sqlite": "0.1.1"
|
|
@@ -67,6 +67,6 @@
|
|
|
67
67
|
"@mikro-orm/core": "^5.6.16"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
|
-
"@mikro-orm/core": "~6.0.0-dev.
|
|
70
|
+
"@mikro-orm/core": "~6.0.0-dev.52"
|
|
71
71
|
}
|
|
72
72
|
}
|