@mikro-orm/libsql 7.1.0-dev.42 → 7.1.0-dev.44
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/LibSqlConnection.d.ts +3 -0
- package/LibSqlConnection.js +4 -0
- package/package.json +3 -3
package/LibSqlConnection.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseSqliteConnection, type Dictionary } from '@mikro-orm/sql';
|
|
2
2
|
import { type Options } from 'libsql';
|
|
3
|
+
import type { Routine, Transaction } from '@mikro-orm/core';
|
|
3
4
|
import { LibSqlDialect } from './LibSqlDialect.js';
|
|
4
5
|
/** libSQL database connection supporting both local and remote databases. */
|
|
5
6
|
export declare class LibSqlConnection extends BaseSqliteConnection {
|
|
@@ -8,6 +9,8 @@ export declare class LibSqlConnection extends BaseSqliteConnection {
|
|
|
8
9
|
skipOnConnect?: boolean;
|
|
9
10
|
}): Promise<void>;
|
|
10
11
|
createKyselyDialect(options: Dictionary & Options): LibSqlDialect;
|
|
12
|
+
/** libsql's `Database.function()` is declared but throws "not implemented"; better-sqlite3 has the UDF bridge. */
|
|
13
|
+
callRoutine<T>(routine: Routine, _args?: Record<string, unknown>, _ctx?: Transaction): Promise<T>;
|
|
11
14
|
/** @inheritDoc */
|
|
12
15
|
executeDump(source: string): Promise<void>;
|
|
13
16
|
private validateAttachSupport;
|
package/LibSqlConnection.js
CHANGED
|
@@ -18,6 +18,10 @@ export class LibSqlConnection extends BaseSqliteConnection {
|
|
|
18
18
|
onCreateConnection: this.options.onCreateConnection ?? this.config.get('onCreateConnection'),
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
|
+
/** libsql's `Database.function()` is declared but throws "not implemented"; better-sqlite3 has the UDF bridge. */
|
|
22
|
+
async callRoutine(routine, _args = {}, _ctx) {
|
|
23
|
+
throw new Error(`Stored routines are not supported on libSQL. The libsql client does not implement user-defined-function registration; calling routine ${routine.name} would fail at runtime. Use the better-sqlite3 driver for cross-DB testing, or call against a server-side database.`);
|
|
24
|
+
}
|
|
21
25
|
/** @inheritDoc */
|
|
22
26
|
async executeDump(source) {
|
|
23
27
|
await this.ensureConnection();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/libsql",
|
|
3
|
-
"version": "7.1.0-dev.
|
|
3
|
+
"version": "7.1.0-dev.44",
|
|
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
|
"keywords": [
|
|
6
6
|
"data-mapper",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"copy": "node ../../scripts/copy.mjs"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@mikro-orm/sql": "7.1.0-dev.
|
|
50
|
+
"@mikro-orm/sql": "7.1.0-dev.44",
|
|
51
51
|
"kysely": "0.29.2",
|
|
52
52
|
"libsql": "0.5.29"
|
|
53
53
|
},
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@mikro-orm/core": "^7.0.17"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@mikro-orm/core": "7.1.0-dev.
|
|
58
|
+
"@mikro-orm/core": "7.1.0-dev.44"
|
|
59
59
|
},
|
|
60
60
|
"engines": {
|
|
61
61
|
"node": ">= 22.17.0"
|