@mikro-orm/libsql 7.0.0-dev.1 → 7.0.0-dev.100
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 +2 -2
- package/LibSqlConnection.js +10 -16
- package/LibSqlDialect.js +7 -11
- package/LibSqlDriver.d.ts +6 -3
- package/LibSqlDriver.js +10 -9
- package/LibSqlMikroORM.d.ts +8 -9
- package/LibSqlMikroORM.js +9 -16
- package/LibSqlPlatform.d.ts +1 -1
- package/LibSqlPlatform.js +4 -8
- package/README.md +3 -2
- package/index.d.ts +5 -5
- package/index.js +5 -25
- package/package.json +10 -19
- package/index.mjs +0 -235
package/LibSqlConnection.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BaseSqliteConnection, type Dictionary } from '@mikro-orm/
|
|
1
|
+
import { BaseSqliteConnection, type Dictionary } from '@mikro-orm/sql';
|
|
2
2
|
import { type Options } from 'libsql';
|
|
3
|
-
import { LibSqlDialect } from './LibSqlDialect';
|
|
3
|
+
import { LibSqlDialect } from './LibSqlDialect.js';
|
|
4
4
|
export declare class LibSqlConnection extends BaseSqliteConnection {
|
|
5
5
|
private database;
|
|
6
6
|
createKyselyDialect(options: Dictionary & Options): LibSqlDialect;
|
package/LibSqlConnection.js
CHANGED
|
@@ -1,28 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.LibSqlConnection = void 0;
|
|
7
|
-
const knex_1 = require("@mikro-orm/knex");
|
|
8
|
-
const fs_extra_1 = require("fs-extra");
|
|
9
|
-
const libsql_1 = __importDefault(require("libsql"));
|
|
10
|
-
const LibSqlDialect_1 = require("./LibSqlDialect");
|
|
11
|
-
class LibSqlConnection extends knex_1.BaseSqliteConnection {
|
|
1
|
+
import { BaseSqliteConnection } from '@mikro-orm/sql';
|
|
2
|
+
import Database from 'libsql';
|
|
3
|
+
import { LibSqlDialect } from './LibSqlDialect.js';
|
|
4
|
+
export class LibSqlConnection extends BaseSqliteConnection {
|
|
12
5
|
database;
|
|
13
6
|
createKyselyDialect(options) {
|
|
14
7
|
const dbName = options.url ?? this.config.get('dbName');
|
|
15
8
|
options.authToken ??= this.config.get('password');
|
|
16
|
-
return new
|
|
9
|
+
return new LibSqlDialect({
|
|
17
10
|
database: async () => {
|
|
18
|
-
return this.database = new
|
|
11
|
+
return this.database = new Database(dbName, options);
|
|
19
12
|
},
|
|
20
13
|
onCreateConnection: this.options.onCreateConnection ?? this.config.get('onCreateConnection'),
|
|
21
14
|
});
|
|
22
15
|
}
|
|
23
|
-
/*
|
|
16
|
+
/* v8 ignore next */
|
|
24
17
|
async loadFile(path) {
|
|
25
|
-
|
|
18
|
+
await this.ensureConnection();
|
|
19
|
+
const { readFile } = globalThis.process.getBuiltinModule('node:fs/promises');
|
|
20
|
+
this.database.exec((await readFile(path)).toString());
|
|
26
21
|
}
|
|
27
22
|
}
|
|
28
|
-
exports.LibSqlConnection = LibSqlConnection;
|
package/LibSqlDialect.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LibSqlDialect = void 0;
|
|
4
|
-
const kysely_1 = require("kysely");
|
|
1
|
+
import { SqliteDialect, SqliteDriver, } from 'kysely';
|
|
5
2
|
const CONNECTION_TIMEOUT = 10_000;
|
|
6
3
|
class ConnectionMutex {
|
|
7
4
|
#promise;
|
|
@@ -39,7 +36,7 @@ class LibSqlConnection {
|
|
|
39
36
|
};
|
|
40
37
|
}
|
|
41
38
|
const query = sql.trim().toLowerCase();
|
|
42
|
-
/*
|
|
39
|
+
/* v8 ignore next */
|
|
43
40
|
if (query.startsWith('select') || ((query.startsWith('insert into') || query.startsWith('update ')) && query.includes(' returning '))) {
|
|
44
41
|
return {
|
|
45
42
|
rows: stmt.all(parameters),
|
|
@@ -52,10 +49,10 @@ class LibSqlConnection {
|
|
|
52
49
|
rows: [],
|
|
53
50
|
};
|
|
54
51
|
}
|
|
55
|
-
/* istanbul ignore next */
|
|
56
52
|
async *streamQuery(compiledQuery) {
|
|
57
53
|
const { sql, parameters } = compiledQuery;
|
|
58
54
|
const stmt = this.db.prepare(sql);
|
|
55
|
+
/* v8 ignore next */
|
|
59
56
|
if (!sql.toLowerCase().startsWith('select')) {
|
|
60
57
|
throw new Error('Sqlite driver only supports streaming of select queries');
|
|
61
58
|
}
|
|
@@ -66,7 +63,7 @@ class LibSqlConnection {
|
|
|
66
63
|
}
|
|
67
64
|
}
|
|
68
65
|
}
|
|
69
|
-
class LibSqlKyselyDriver extends
|
|
66
|
+
class LibSqlKyselyDriver extends SqliteDriver {
|
|
70
67
|
config;
|
|
71
68
|
db;
|
|
72
69
|
connection;
|
|
@@ -78,14 +75,14 @@ class LibSqlKyselyDriver extends kysely_1.SqliteDriver {
|
|
|
78
75
|
async init() {
|
|
79
76
|
this.db = await this.config.database();
|
|
80
77
|
this.connection = new LibSqlConnection(this.db);
|
|
81
|
-
/*
|
|
78
|
+
/* v8 ignore next */
|
|
82
79
|
if (this.config.onCreateConnection) {
|
|
83
80
|
await this.config.onCreateConnection(this.connection);
|
|
84
81
|
}
|
|
85
82
|
}
|
|
86
83
|
async acquireConnection() {
|
|
87
84
|
await this.connectionMutex.lock();
|
|
88
|
-
/*
|
|
85
|
+
/* v8 ignore next */
|
|
89
86
|
if (!this.connection.isValid()) {
|
|
90
87
|
await this.destroy();
|
|
91
88
|
await this.init();
|
|
@@ -99,7 +96,7 @@ class LibSqlKyselyDriver extends kysely_1.SqliteDriver {
|
|
|
99
96
|
this.db.close();
|
|
100
97
|
}
|
|
101
98
|
}
|
|
102
|
-
class LibSqlDialect extends
|
|
99
|
+
export class LibSqlDialect extends SqliteDialect {
|
|
103
100
|
config;
|
|
104
101
|
constructor(config) {
|
|
105
102
|
super(config);
|
|
@@ -109,4 +106,3 @@ class LibSqlDialect extends kysely_1.SqliteDialect {
|
|
|
109
106
|
return new LibSqlKyselyDriver(this.config);
|
|
110
107
|
}
|
|
111
108
|
}
|
|
112
|
-
exports.LibSqlDialect = LibSqlDialect;
|
package/LibSqlDriver.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import type { Configuration } from '@mikro-orm/core';
|
|
2
|
-
import { AbstractSqlDriver } from '@mikro-orm/
|
|
3
|
-
import { LibSqlConnection } from './LibSqlConnection';
|
|
1
|
+
import type { Configuration, Constructor } from '@mikro-orm/core';
|
|
2
|
+
import { AbstractSqlDriver } from '@mikro-orm/sql';
|
|
3
|
+
import { LibSqlConnection } from './LibSqlConnection.js';
|
|
4
|
+
import { LibSqlMikroORM } from './LibSqlMikroORM.js';
|
|
4
5
|
export declare class LibSqlDriver extends AbstractSqlDriver<LibSqlConnection> {
|
|
5
6
|
constructor(config: Configuration);
|
|
7
|
+
/** @inheritDoc */
|
|
8
|
+
getORMClass(): Constructor<LibSqlMikroORM>;
|
|
6
9
|
}
|
package/LibSqlDriver.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const LibSqlPlatform_1 = require("./LibSqlPlatform");
|
|
7
|
-
class LibSqlDriver extends knex_1.AbstractSqlDriver {
|
|
1
|
+
import { AbstractSqlDriver } from '@mikro-orm/sql';
|
|
2
|
+
import { LibSqlConnection } from './LibSqlConnection.js';
|
|
3
|
+
import { LibSqlPlatform } from './LibSqlPlatform.js';
|
|
4
|
+
import { LibSqlMikroORM } from './LibSqlMikroORM.js';
|
|
5
|
+
export class LibSqlDriver extends AbstractSqlDriver {
|
|
8
6
|
constructor(config) {
|
|
9
|
-
super(config, new
|
|
7
|
+
super(config, new LibSqlPlatform(), LibSqlConnection, ['kysely', 'libsql']);
|
|
8
|
+
}
|
|
9
|
+
/** @inheritDoc */
|
|
10
|
+
getORMClass() {
|
|
11
|
+
return LibSqlMikroORM;
|
|
10
12
|
}
|
|
11
13
|
}
|
|
12
|
-
exports.LibSqlDriver = LibSqlDriver;
|
package/LibSqlMikroORM.d.ts
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { MikroORM, type Options, type IDatabaseDriver, type EntityManager, type EntityManagerType } from '@mikro-orm/core';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { type AnyEntity, type EntityClass, type EntitySchema, MikroORM, type Options, type IDatabaseDriver, type EntityManager, type EntityManagerType } from '@mikro-orm/core';
|
|
2
|
+
import type { SqlEntityManager } from '@mikro-orm/sql';
|
|
3
|
+
import { LibSqlDriver } from './LibSqlDriver.js';
|
|
4
|
+
export type LibSqlOptions<EM extends SqlEntityManager<LibSqlDriver> = SqlEntityManager<LibSqlDriver>, Entities extends (string | EntityClass<AnyEntity> | EntitySchema)[] = (string | EntityClass<AnyEntity> | EntitySchema)[]> = Options<LibSqlDriver, EM, Entities>;
|
|
5
|
+
export declare function defineLibSqlConfig<EM extends SqlEntityManager<LibSqlDriver> = SqlEntityManager<LibSqlDriver>, Entities extends (string | EntityClass<AnyEntity> | EntitySchema)[] = (string | EntityClass<AnyEntity> | EntitySchema)[]>(options: LibSqlOptions<EM, Entities>): Options<LibSqlDriver, EM, Entities>;
|
|
4
6
|
/**
|
|
5
7
|
* @inheritDoc
|
|
6
8
|
*/
|
|
7
|
-
export declare class LibSqlMikroORM<EM extends
|
|
8
|
-
private static DRIVER;
|
|
9
|
+
export declare class LibSqlMikroORM<EM extends SqlEntityManager<LibSqlDriver> = SqlEntityManager<LibSqlDriver>, Entities extends (string | EntityClass<AnyEntity> | EntitySchema)[] = (string | EntityClass<AnyEntity> | EntitySchema)[]> extends MikroORM<LibSqlDriver, EM, Entities> {
|
|
9
10
|
/**
|
|
10
11
|
* @inheritDoc
|
|
11
12
|
*/
|
|
12
|
-
static init<D extends IDatabaseDriver = LibSqlDriver, EM extends EntityManager = D[typeof EntityManagerType] & EntityManager>(options
|
|
13
|
+
static init<D extends IDatabaseDriver = LibSqlDriver, EM extends EntityManager<D> = D[typeof EntityManagerType] & EntityManager<D>, Entities extends (string | EntityClass<AnyEntity> | EntitySchema)[] = (string | EntityClass<AnyEntity> | EntitySchema)[]>(options: Options<D, EM, Entities>): Promise<MikroORM<D, EM, Entities>>;
|
|
13
14
|
/**
|
|
14
15
|
* @inheritDoc
|
|
15
16
|
*/
|
|
16
|
-
|
|
17
|
+
constructor(options: Options<LibSqlDriver, EM, Entities>);
|
|
17
18
|
}
|
|
18
|
-
export type LibSqlOptions = Options<LibSqlDriver>;
|
|
19
|
-
export declare function defineLibSqlConfig(options: LibSqlOptions): Options<LibSqlDriver, SqlEntityManager<LibSqlDriver> & EntityManager<IDatabaseDriver<import("@mikro-orm/core").Connection>>>;
|
package/LibSqlMikroORM.js
CHANGED
|
@@ -1,29 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const LibSqlDriver_1 = require("./LibSqlDriver");
|
|
1
|
+
import { defineConfig, MikroORM, } from '@mikro-orm/core';
|
|
2
|
+
import { LibSqlDriver } from './LibSqlDriver.js';
|
|
3
|
+
export function defineLibSqlConfig(options) {
|
|
4
|
+
return defineConfig({ driver: LibSqlDriver, ...options });
|
|
5
|
+
}
|
|
7
6
|
/**
|
|
8
7
|
* @inheritDoc
|
|
9
8
|
*/
|
|
10
|
-
class LibSqlMikroORM extends
|
|
11
|
-
static DRIVER = LibSqlDriver_1.LibSqlDriver;
|
|
9
|
+
export class LibSqlMikroORM extends MikroORM {
|
|
12
10
|
/**
|
|
13
11
|
* @inheritDoc
|
|
14
12
|
*/
|
|
15
13
|
static async init(options) {
|
|
16
|
-
return super.init(options);
|
|
14
|
+
return super.init(defineLibSqlConfig(options));
|
|
17
15
|
}
|
|
18
16
|
/**
|
|
19
17
|
* @inheritDoc
|
|
20
18
|
*/
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
constructor(options) {
|
|
20
|
+
super(defineLibSqlConfig(options));
|
|
23
21
|
}
|
|
24
22
|
}
|
|
25
|
-
exports.LibSqlMikroORM = LibSqlMikroORM;
|
|
26
|
-
/* istanbul ignore next */
|
|
27
|
-
function defineLibSqlConfig(options) {
|
|
28
|
-
return (0, core_1.defineConfig)({ driver: LibSqlDriver_1.LibSqlDriver, ...options });
|
|
29
|
-
}
|
package/LibSqlPlatform.d.ts
CHANGED
package/LibSqlPlatform.js
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LibSqlPlatform = void 0;
|
|
4
1
|
// @ts-ignore
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
class LibSqlPlatform extends
|
|
2
|
+
import SqlString from 'sqlstring-sqlite';
|
|
3
|
+
import { BaseSqlitePlatform } from '@mikro-orm/sql';
|
|
4
|
+
export class LibSqlPlatform extends BaseSqlitePlatform {
|
|
8
5
|
escape(value) {
|
|
9
|
-
return
|
|
6
|
+
return SqlString.escape(value, true, this.timezone);
|
|
10
7
|
}
|
|
11
8
|
}
|
|
12
|
-
exports.LibSqlPlatform = LibSqlPlatform;
|
package/README.md
CHANGED
|
@@ -11,7 +11,6 @@ TypeScript ORM for Node.js based on Data Mapper, [Unit of Work](https://mikro-or
|
|
|
11
11
|
[](https://discord.gg/w8bjxFHS7X)
|
|
12
12
|
[](https://www.npmjs.com/package/@mikro-orm/core)
|
|
13
13
|
[](https://coveralls.io/r/mikro-orm/mikro-orm?branch=master)
|
|
14
|
-
[](https://codeclimate.com/github/mikro-orm/mikro-orm/maintainability)
|
|
15
14
|
[](https://github.com/mikro-orm/mikro-orm/actions?workflow=tests)
|
|
16
15
|
|
|
17
16
|
## 🤔 Unit of What?
|
|
@@ -141,7 +140,7 @@ There is also auto-generated [CHANGELOG.md](CHANGELOG.md) file based on commit m
|
|
|
141
140
|
- [Composite and Foreign Keys as Primary Key](https://mikro-orm.io/docs/composite-keys)
|
|
142
141
|
- [Filters](https://mikro-orm.io/docs/filters)
|
|
143
142
|
- [Using `QueryBuilder`](https://mikro-orm.io/docs/query-builder)
|
|
144
|
-
- [
|
|
143
|
+
- [Populating relations](https://mikro-orm.io/docs/populating-relations)
|
|
145
144
|
- [Property Validation](https://mikro-orm.io/docs/property-validation)
|
|
146
145
|
- [Lifecycle Hooks](https://mikro-orm.io/docs/events#hooks)
|
|
147
146
|
- [Vanilla JS Support](https://mikro-orm.io/docs/usage-with-js)
|
|
@@ -382,6 +381,8 @@ See also the list of contributors who [participated](https://github.com/mikro-or
|
|
|
382
381
|
|
|
383
382
|
Please ⭐️ this repository if this project helped you!
|
|
384
383
|
|
|
384
|
+
> If you'd like to support my open-source work, consider sponsoring me directly at [github.com/sponsors/b4nan](https://github.com/sponsors/b4nan).
|
|
385
|
+
|
|
385
386
|
## 📝 License
|
|
386
387
|
|
|
387
388
|
Copyright © 2018 [Martin Adámek](https://github.com/b4nan).
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from '@mikro-orm/
|
|
2
|
-
export * from './LibSqlConnection';
|
|
3
|
-
export * from './LibSqlDriver';
|
|
4
|
-
export * from './LibSqlPlatform';
|
|
5
|
-
export { LibSqlMikroORM as MikroORM, LibSqlOptions as Options, defineLibSqlConfig as defineConfig, } from './LibSqlMikroORM';
|
|
1
|
+
export * from '@mikro-orm/sql';
|
|
2
|
+
export * from './LibSqlConnection.js';
|
|
3
|
+
export * from './LibSqlDriver.js';
|
|
4
|
+
export * from './LibSqlPlatform.js';
|
|
5
|
+
export { LibSqlMikroORM as MikroORM, type LibSqlOptions as Options, defineLibSqlConfig as defineConfig, } from './LibSqlMikroORM.js';
|
package/index.js
CHANGED
|
@@ -1,25 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.defineConfig = exports.MikroORM = void 0;
|
|
18
|
-
/* istanbul ignore file */
|
|
19
|
-
__exportStar(require("@mikro-orm/knex"), exports);
|
|
20
|
-
__exportStar(require("./LibSqlConnection"), exports);
|
|
21
|
-
__exportStar(require("./LibSqlDriver"), exports);
|
|
22
|
-
__exportStar(require("./LibSqlPlatform"), exports);
|
|
23
|
-
var LibSqlMikroORM_1 = require("./LibSqlMikroORM");
|
|
24
|
-
Object.defineProperty(exports, "MikroORM", { enumerable: true, get: function () { return LibSqlMikroORM_1.LibSqlMikroORM; } });
|
|
25
|
-
Object.defineProperty(exports, "defineConfig", { enumerable: true, get: function () { return LibSqlMikroORM_1.defineLibSqlConfig; } });
|
|
1
|
+
export * from '@mikro-orm/sql';
|
|
2
|
+
export * from './LibSqlConnection.js';
|
|
3
|
+
export * from './LibSqlDriver.js';
|
|
4
|
+
export * from './LibSqlPlatform.js';
|
|
5
|
+
export { LibSqlMikroORM as MikroORM, defineLibSqlConfig as defineConfig, } from './LibSqlMikroORM.js';
|
package/package.json
CHANGED
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/libsql",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "7.0.0-dev.100",
|
|
4
5
|
"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
|
-
"main": "index.js",
|
|
6
|
-
"module": "index.mjs",
|
|
7
|
-
"typings": "index.d.ts",
|
|
8
6
|
"exports": {
|
|
9
7
|
"./package.json": "./package.json",
|
|
10
|
-
".":
|
|
11
|
-
"import": {
|
|
12
|
-
"types": "./index.d.ts",
|
|
13
|
-
"default": "./index.mjs"
|
|
14
|
-
},
|
|
15
|
-
"require": "./index.js"
|
|
16
|
-
}
|
|
8
|
+
".": "./index.js"
|
|
17
9
|
},
|
|
18
10
|
"repository": {
|
|
19
11
|
"type": "git",
|
|
@@ -46,10 +38,10 @@
|
|
|
46
38
|
},
|
|
47
39
|
"homepage": "https://mikro-orm.io",
|
|
48
40
|
"engines": {
|
|
49
|
-
"node": ">= 22.
|
|
41
|
+
"node": ">= 22.17.0"
|
|
50
42
|
},
|
|
51
43
|
"scripts": {
|
|
52
|
-
"build": "yarn clean && yarn compile && yarn copy
|
|
44
|
+
"build": "yarn clean && yarn compile && yarn copy",
|
|
53
45
|
"clean": "yarn run -T rimraf ./dist",
|
|
54
46
|
"compile": "yarn run -T tsc -p tsconfig.build.json",
|
|
55
47
|
"copy": "node ../../scripts/copy.mjs"
|
|
@@ -58,17 +50,16 @@
|
|
|
58
50
|
"access": "public"
|
|
59
51
|
},
|
|
60
52
|
"dependencies": {
|
|
61
|
-
"@mikro-orm/
|
|
62
|
-
"
|
|
63
|
-
"libsql": "0.4.7",
|
|
53
|
+
"@mikro-orm/sql": "7.0.0-dev.100",
|
|
54
|
+
"libsql": "0.5.22",
|
|
64
55
|
"sqlstring-sqlite": "0.1.1"
|
|
65
56
|
},
|
|
66
57
|
"devDependencies": {
|
|
67
|
-
"@mikro-orm/core": "^6.
|
|
68
|
-
"kysely": "
|
|
58
|
+
"@mikro-orm/core": "^6.6.2",
|
|
59
|
+
"kysely": "0.28.9"
|
|
69
60
|
},
|
|
70
61
|
"peerDependencies": {
|
|
71
|
-
"@mikro-orm/core": "7.0.0-dev.
|
|
62
|
+
"@mikro-orm/core": "7.0.0-dev.100",
|
|
72
63
|
"kysely": "*"
|
|
73
64
|
}
|
|
74
65
|
}
|
package/index.mjs
DELETED
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
import mod from "./index.js";
|
|
2
|
-
|
|
3
|
-
export default mod;
|
|
4
|
-
export const ALIAS_REPLACEMENT = mod.ALIAS_REPLACEMENT;
|
|
5
|
-
export const ALIAS_REPLACEMENT_RE = mod.ALIAS_REPLACEMENT_RE;
|
|
6
|
-
export const ARRAY_OPERATORS = mod.ARRAY_OPERATORS;
|
|
7
|
-
export const AbstractNamingStrategy = mod.AbstractNamingStrategy;
|
|
8
|
-
export const AbstractSchemaGenerator = mod.AbstractSchemaGenerator;
|
|
9
|
-
export const AbstractSqlConnection = mod.AbstractSqlConnection;
|
|
10
|
-
export const AbstractSqlDriver = mod.AbstractSqlDriver;
|
|
11
|
-
export const AbstractSqlPlatform = mod.AbstractSqlPlatform;
|
|
12
|
-
export const AfterCreate = mod.AfterCreate;
|
|
13
|
-
export const AfterDelete = mod.AfterDelete;
|
|
14
|
-
export const AfterUpdate = mod.AfterUpdate;
|
|
15
|
-
export const AfterUpsert = mod.AfterUpsert;
|
|
16
|
-
export const ArrayCollection = mod.ArrayCollection;
|
|
17
|
-
export const ArrayCriteriaNode = mod.ArrayCriteriaNode;
|
|
18
|
-
export const ArrayType = mod.ArrayType;
|
|
19
|
-
export const BaseEntity = mod.BaseEntity;
|
|
20
|
-
export const BaseSqliteConnection = mod.BaseSqliteConnection;
|
|
21
|
-
export const BaseSqlitePlatform = mod.BaseSqlitePlatform;
|
|
22
|
-
export const BeforeCreate = mod.BeforeCreate;
|
|
23
|
-
export const BeforeDelete = mod.BeforeDelete;
|
|
24
|
-
export const BeforeUpdate = mod.BeforeUpdate;
|
|
25
|
-
export const BeforeUpsert = mod.BeforeUpsert;
|
|
26
|
-
export const BigIntType = mod.BigIntType;
|
|
27
|
-
export const BlobType = mod.BlobType;
|
|
28
|
-
export const BooleanType = mod.BooleanType;
|
|
29
|
-
export const Cascade = mod.Cascade;
|
|
30
|
-
export const ChangeSet = mod.ChangeSet;
|
|
31
|
-
export const ChangeSetComputer = mod.ChangeSetComputer;
|
|
32
|
-
export const ChangeSetPersister = mod.ChangeSetPersister;
|
|
33
|
-
export const ChangeSetType = mod.ChangeSetType;
|
|
34
|
-
export const CharacterType = mod.CharacterType;
|
|
35
|
-
export const Check = mod.Check;
|
|
36
|
-
export const CheckConstraintViolationException = mod.CheckConstraintViolationException;
|
|
37
|
-
export const Collection = mod.Collection;
|
|
38
|
-
export const CommitOrderCalculator = mod.CommitOrderCalculator;
|
|
39
|
-
export const Config = mod.Config;
|
|
40
|
-
export const Configuration = mod.Configuration;
|
|
41
|
-
export const ConfigurationLoader = mod.ConfigurationLoader;
|
|
42
|
-
export const Connection = mod.Connection;
|
|
43
|
-
export const ConnectionException = mod.ConnectionException;
|
|
44
|
-
export const ConstraintViolationException = mod.ConstraintViolationException;
|
|
45
|
-
export const CreateRequestContext = mod.CreateRequestContext;
|
|
46
|
-
export const CriteriaNode = mod.CriteriaNode;
|
|
47
|
-
export const CriteriaNodeFactory = mod.CriteriaNodeFactory;
|
|
48
|
-
export const Cursor = mod.Cursor;
|
|
49
|
-
export const CursorError = mod.CursorError;
|
|
50
|
-
export const DatabaseDriver = mod.DatabaseDriver;
|
|
51
|
-
export const DatabaseObjectExistsException = mod.DatabaseObjectExistsException;
|
|
52
|
-
export const DatabaseObjectNotFoundException = mod.DatabaseObjectNotFoundException;
|
|
53
|
-
export const DatabaseSchema = mod.DatabaseSchema;
|
|
54
|
-
export const DatabaseTable = mod.DatabaseTable;
|
|
55
|
-
export const DataloaderType = mod.DataloaderType;
|
|
56
|
-
export const DataloaderUtils = mod.DataloaderUtils;
|
|
57
|
-
export const DateTimeType = mod.DateTimeType;
|
|
58
|
-
export const DateType = mod.DateType;
|
|
59
|
-
export const DeadlockException = mod.DeadlockException;
|
|
60
|
-
export const DecimalType = mod.DecimalType;
|
|
61
|
-
export const DefaultLogger = mod.DefaultLogger;
|
|
62
|
-
export const DeferMode = mod.DeferMode;
|
|
63
|
-
export const DoubleType = mod.DoubleType;
|
|
64
|
-
export const DriverException = mod.DriverException;
|
|
65
|
-
export const EagerProps = mod.EagerProps;
|
|
66
|
-
export const Embeddable = mod.Embeddable;
|
|
67
|
-
export const Embedded = mod.Embedded;
|
|
68
|
-
export const EnsureRequestContext = mod.EnsureRequestContext;
|
|
69
|
-
export const Entity = mod.Entity;
|
|
70
|
-
export const EntityAssigner = mod.EntityAssigner;
|
|
71
|
-
export const EntityCaseNamingStrategy = mod.EntityCaseNamingStrategy;
|
|
72
|
-
export const EntityComparator = mod.EntityComparator;
|
|
73
|
-
export const EntityFactory = mod.EntityFactory;
|
|
74
|
-
export const EntityHelper = mod.EntityHelper;
|
|
75
|
-
export const EntityIdentifier = mod.EntityIdentifier;
|
|
76
|
-
export const EntityLoader = mod.EntityLoader;
|
|
77
|
-
export const EntityManager = mod.EntityManager;
|
|
78
|
-
export const EntityManagerType = mod.EntityManagerType;
|
|
79
|
-
export const EntityMetadata = mod.EntityMetadata;
|
|
80
|
-
export const EntityRepository = mod.EntityRepository;
|
|
81
|
-
export const EntityRepositoryType = mod.EntityRepositoryType;
|
|
82
|
-
export const EntitySchema = mod.EntitySchema;
|
|
83
|
-
export const EntitySerializer = mod.EntitySerializer;
|
|
84
|
-
export const EntityTransformer = mod.EntityTransformer;
|
|
85
|
-
export const EntityValidator = mod.EntityValidator;
|
|
86
|
-
export const Enum = mod.Enum;
|
|
87
|
-
export const EnumArrayType = mod.EnumArrayType;
|
|
88
|
-
export const EnumType = mod.EnumType;
|
|
89
|
-
export const EventManager = mod.EventManager;
|
|
90
|
-
export const EventType = mod.EventType;
|
|
91
|
-
export const EventTypeMap = mod.EventTypeMap;
|
|
92
|
-
export const ExceptionConverter = mod.ExceptionConverter;
|
|
93
|
-
export const FileCacheAdapter = mod.FileCacheAdapter;
|
|
94
|
-
export const Filter = mod.Filter;
|
|
95
|
-
export const FloatType = mod.FloatType;
|
|
96
|
-
export const FlushMode = mod.FlushMode;
|
|
97
|
-
export const ForeignKeyConstraintViolationException = mod.ForeignKeyConstraintViolationException;
|
|
98
|
-
export const Formula = mod.Formula;
|
|
99
|
-
export const GeneratedCacheAdapter = mod.GeneratedCacheAdapter;
|
|
100
|
-
export const GroupOperator = mod.GroupOperator;
|
|
101
|
-
export const HiddenProps = mod.HiddenProps;
|
|
102
|
-
export const Hydrator = mod.Hydrator;
|
|
103
|
-
export const IdentityMap = mod.IdentityMap;
|
|
104
|
-
export const Index = mod.Index;
|
|
105
|
-
export const IntegerType = mod.IntegerType;
|
|
106
|
-
export const IntervalType = mod.IntervalType;
|
|
107
|
-
export const InvalidFieldNameException = mod.InvalidFieldNameException;
|
|
108
|
-
export const IsolationLevel = mod.IsolationLevel;
|
|
109
|
-
export const JSON_KEY_OPERATORS = mod.JSON_KEY_OPERATORS;
|
|
110
|
-
export const JoinType = mod.JoinType;
|
|
111
|
-
export const JsonProperty = mod.JsonProperty;
|
|
112
|
-
export const JsonType = mod.JsonType;
|
|
113
|
-
export const Kysely = mod.Kysely;
|
|
114
|
-
export const LibSqlConnection = mod.LibSqlConnection;
|
|
115
|
-
export const LibSqlDriver = mod.LibSqlDriver;
|
|
116
|
-
export const LibSqlPlatform = mod.LibSqlPlatform;
|
|
117
|
-
export const LoadStrategy = mod.LoadStrategy;
|
|
118
|
-
export const LockMode = mod.LockMode;
|
|
119
|
-
export const LockWaitTimeoutException = mod.LockWaitTimeoutException;
|
|
120
|
-
export const ManyToMany = mod.ManyToMany;
|
|
121
|
-
export const ManyToOne = mod.ManyToOne;
|
|
122
|
-
export const MediumIntType = mod.MediumIntType;
|
|
123
|
-
export const MemoryCacheAdapter = mod.MemoryCacheAdapter;
|
|
124
|
-
export const MetadataDiscovery = mod.MetadataDiscovery;
|
|
125
|
-
export const MetadataError = mod.MetadataError;
|
|
126
|
-
export const MetadataProvider = mod.MetadataProvider;
|
|
127
|
-
export const MetadataStorage = mod.MetadataStorage;
|
|
128
|
-
export const MetadataValidator = mod.MetadataValidator;
|
|
129
|
-
export const MikroORM = mod.MikroORM;
|
|
130
|
-
export const MongoNamingStrategy = mod.MongoNamingStrategy;
|
|
131
|
-
export const MsSqlNativeQueryBuilder = mod.MsSqlNativeQueryBuilder;
|
|
132
|
-
export const MySqlExceptionConverter = mod.MySqlExceptionConverter;
|
|
133
|
-
export const MySqlNativeQueryBuilder = mod.MySqlNativeQueryBuilder;
|
|
134
|
-
export const MySqlPlatform = mod.MySqlPlatform;
|
|
135
|
-
export const MySqlSchemaHelper = mod.MySqlSchemaHelper;
|
|
136
|
-
export const NativeQueryBuilder = mod.NativeQueryBuilder;
|
|
137
|
-
export const NodeState = mod.NodeState;
|
|
138
|
-
export const NonUniqueFieldNameException = mod.NonUniqueFieldNameException;
|
|
139
|
-
export const NotFoundError = mod.NotFoundError;
|
|
140
|
-
export const NotNullConstraintViolationException = mod.NotNullConstraintViolationException;
|
|
141
|
-
export const NullCacheAdapter = mod.NullCacheAdapter;
|
|
142
|
-
export const NullHighlighter = mod.NullHighlighter;
|
|
143
|
-
export const ObjectBindingPattern = mod.ObjectBindingPattern;
|
|
144
|
-
export const ObjectCriteriaNode = mod.ObjectCriteriaNode;
|
|
145
|
-
export const ObjectHydrator = mod.ObjectHydrator;
|
|
146
|
-
export const OnInit = mod.OnInit;
|
|
147
|
-
export const OnLoad = mod.OnLoad;
|
|
148
|
-
export const OneToMany = mod.OneToMany;
|
|
149
|
-
export const OneToOne = mod.OneToOne;
|
|
150
|
-
export const OptimisticLockError = mod.OptimisticLockError;
|
|
151
|
-
export const OptionalProps = mod.OptionalProps;
|
|
152
|
-
export const PlainObject = mod.PlainObject;
|
|
153
|
-
export const Platform = mod.Platform;
|
|
154
|
-
export const PopulateHint = mod.PopulateHint;
|
|
155
|
-
export const PopulatePath = mod.PopulatePath;
|
|
156
|
-
export const PostgreSqlNativeQueryBuilder = mod.PostgreSqlNativeQueryBuilder;
|
|
157
|
-
export const PrimaryKey = mod.PrimaryKey;
|
|
158
|
-
export const PrimaryKeyProp = mod.PrimaryKeyProp;
|
|
159
|
-
export const Property = mod.Property;
|
|
160
|
-
export const QueryBuilder = mod.QueryBuilder;
|
|
161
|
-
export const QueryBuilderHelper = mod.QueryBuilderHelper;
|
|
162
|
-
export const QueryFlag = mod.QueryFlag;
|
|
163
|
-
export const QueryHelper = mod.QueryHelper;
|
|
164
|
-
export const QueryOperator = mod.QueryOperator;
|
|
165
|
-
export const QueryOrder = mod.QueryOrder;
|
|
166
|
-
export const QueryOrderNumeric = mod.QueryOrderNumeric;
|
|
167
|
-
export const QueryType = mod.QueryType;
|
|
168
|
-
export const Raw = mod.Raw;
|
|
169
|
-
export const RawQueryFragment = mod.RawQueryFragment;
|
|
170
|
-
export const ReadOnlyException = mod.ReadOnlyException;
|
|
171
|
-
export const Ref = mod.Ref;
|
|
172
|
-
export const Reference = mod.Reference;
|
|
173
|
-
export const ReferenceKind = mod.ReferenceKind;
|
|
174
|
-
export const ReflectMetadataProvider = mod.ReflectMetadataProvider;
|
|
175
|
-
export const RequestContext = mod.RequestContext;
|
|
176
|
-
export const SCALAR_TYPES = mod.SCALAR_TYPES;
|
|
177
|
-
export const ScalarCriteriaNode = mod.ScalarCriteriaNode;
|
|
178
|
-
export const ScalarReference = mod.ScalarReference;
|
|
179
|
-
export const SchemaComparator = mod.SchemaComparator;
|
|
180
|
-
export const SchemaGenerator = mod.SchemaGenerator;
|
|
181
|
-
export const SchemaHelper = mod.SchemaHelper;
|
|
182
|
-
export const SerializationContext = mod.SerializationContext;
|
|
183
|
-
export const SerializedPrimaryKey = mod.SerializedPrimaryKey;
|
|
184
|
-
export const ServerException = mod.ServerException;
|
|
185
|
-
export const SimpleLogger = mod.SimpleLogger;
|
|
186
|
-
export const SmallIntType = mod.SmallIntType;
|
|
187
|
-
export const SqlEntityManager = mod.SqlEntityManager;
|
|
188
|
-
export const SqlEntityRepository = mod.SqlEntityRepository;
|
|
189
|
-
export const SqlSchemaGenerator = mod.SqlSchemaGenerator;
|
|
190
|
-
export const SqliteExceptionConverter = mod.SqliteExceptionConverter;
|
|
191
|
-
export const SqliteNativeQueryBuilder = mod.SqliteNativeQueryBuilder;
|
|
192
|
-
export const SqliteSchemaHelper = mod.SqliteSchemaHelper;
|
|
193
|
-
export const StringType = mod.StringType;
|
|
194
|
-
export const SyntaxErrorException = mod.SyntaxErrorException;
|
|
195
|
-
export const TableExistsException = mod.TableExistsException;
|
|
196
|
-
export const TableNotFoundException = mod.TableNotFoundException;
|
|
197
|
-
export const TextType = mod.TextType;
|
|
198
|
-
export const TimeType = mod.TimeType;
|
|
199
|
-
export const TinyIntType = mod.TinyIntType;
|
|
200
|
-
export const TransactionContext = mod.TransactionContext;
|
|
201
|
-
export const TransactionEventBroadcaster = mod.TransactionEventBroadcaster;
|
|
202
|
-
export const Transactional = mod.Transactional;
|
|
203
|
-
export const Type = mod.Type;
|
|
204
|
-
export const Uint8ArrayType = mod.Uint8ArrayType;
|
|
205
|
-
export const UnderscoreNamingStrategy = mod.UnderscoreNamingStrategy;
|
|
206
|
-
export const Unique = mod.Unique;
|
|
207
|
-
export const UniqueConstraintViolationException = mod.UniqueConstraintViolationException;
|
|
208
|
-
export const UnitOfWork = mod.UnitOfWork;
|
|
209
|
-
export const UnknownType = mod.UnknownType;
|
|
210
|
-
export const Utils = mod.Utils;
|
|
211
|
-
export const UuidType = mod.UuidType;
|
|
212
|
-
export const ValidationError = mod.ValidationError;
|
|
213
|
-
export const WrappedEntity = mod.WrappedEntity;
|
|
214
|
-
export const assign = mod.assign;
|
|
215
|
-
export const colors = mod.colors;
|
|
216
|
-
export const compareArrays = mod.compareArrays;
|
|
217
|
-
export const compareBooleans = mod.compareBooleans;
|
|
218
|
-
export const compareBuffers = mod.compareBuffers;
|
|
219
|
-
export const compareObjects = mod.compareObjects;
|
|
220
|
-
export const createSqlFunction = mod.createSqlFunction;
|
|
221
|
-
export const defineConfig = mod.defineConfig;
|
|
222
|
-
export const equals = mod.equals;
|
|
223
|
-
export const getOnConflictFields = mod.getOnConflictFields;
|
|
224
|
-
export const getOnConflictReturningFields = mod.getOnConflictReturningFields;
|
|
225
|
-
export const helper = mod.helper;
|
|
226
|
-
export const isRaw = mod.isRaw;
|
|
227
|
-
export const parseJsonSafe = mod.parseJsonSafe;
|
|
228
|
-
export const raw = mod.raw;
|
|
229
|
-
export const ref = mod.ref;
|
|
230
|
-
export const rel = mod.rel;
|
|
231
|
-
export const serialize = mod.serialize;
|
|
232
|
-
export const sql = mod.sql;
|
|
233
|
-
export const t = mod.t;
|
|
234
|
-
export const types = mod.types;
|
|
235
|
-
export const wrap = mod.wrap;
|