@mikro-orm/sqlite 7.0.0-dev.9 → 7.0.0-dev.90
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/README.md +3 -2
- package/SqliteMikroORM.d.ts +7 -8
- package/SqliteMikroORM.js +6 -8
- package/index.d.ts +1 -1
- package/package.json +7 -11
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/SqliteMikroORM.d.ts
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { MikroORM, type Options, type IDatabaseDriver, type EntityManager, type EntityManagerType } from '@mikro-orm/core';
|
|
2
|
-
import { SqliteDriver } from './SqliteDriver.js';
|
|
1
|
+
import { type AnyEntity, type EntityClass, type EntitySchema, MikroORM, type Options, type IDatabaseDriver, type EntityManager, type EntityManagerType } from '@mikro-orm/core';
|
|
3
2
|
import type { SqlEntityManager } from '@mikro-orm/knex';
|
|
3
|
+
import { SqliteDriver } from './SqliteDriver.js';
|
|
4
|
+
export type SqliteOptions<EM extends SqlEntityManager<SqliteDriver> = SqlEntityManager<SqliteDriver>, Entities extends (string | EntityClass<AnyEntity> | EntitySchema)[] = (string | EntityClass<AnyEntity> | EntitySchema)[]> = Options<SqliteDriver, EM, Entities>;
|
|
5
|
+
export declare function defineSqliteConfig<EM extends SqlEntityManager<SqliteDriver> = SqlEntityManager<SqliteDriver>, Entities extends (string | EntityClass<AnyEntity> | EntitySchema)[] = (string | EntityClass<AnyEntity> | EntitySchema)[]>(options: Options<SqliteDriver, EM, Entities>): Options<SqliteDriver, EM, Entities>;
|
|
4
6
|
/**
|
|
5
7
|
* @inheritDoc
|
|
6
8
|
*/
|
|
7
|
-
export declare class SqliteMikroORM<EM extends
|
|
8
|
-
private static DRIVER;
|
|
9
|
+
export declare class SqliteMikroORM<EM extends SqlEntityManager<SqliteDriver> = SqlEntityManager<SqliteDriver>, Entities extends (string | EntityClass<AnyEntity> | EntitySchema)[] = (string | EntityClass<AnyEntity> | EntitySchema)[]> extends MikroORM<SqliteDriver, EM, Entities> {
|
|
9
10
|
/**
|
|
10
11
|
* @inheritDoc
|
|
11
12
|
*/
|
|
12
|
-
static init<D extends IDatabaseDriver = SqliteDriver, EM extends EntityManager = D[typeof EntityManagerType] & EntityManager>(options
|
|
13
|
+
static init<D extends IDatabaseDriver = SqliteDriver, 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<SqliteDriver, EM, Entities>);
|
|
17
18
|
}
|
|
18
|
-
export type SqliteOptions = Options<SqliteDriver>;
|
|
19
|
-
export declare function defineSqliteConfig(options: SqliteOptions): Options<SqliteDriver, SqlEntityManager<SqliteDriver> & EntityManager<IDatabaseDriver<import("@mikro-orm/core").Connection>>>;
|
package/SqliteMikroORM.js
CHANGED
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
import { defineConfig, MikroORM, } from '@mikro-orm/core';
|
|
2
2
|
import { SqliteDriver } from './SqliteDriver.js';
|
|
3
|
+
export function defineSqliteConfig(options) {
|
|
4
|
+
return defineConfig({ driver: SqliteDriver, ...options });
|
|
5
|
+
}
|
|
3
6
|
/**
|
|
4
7
|
* @inheritDoc
|
|
5
8
|
*/
|
|
6
9
|
export class SqliteMikroORM extends MikroORM {
|
|
7
|
-
static DRIVER = SqliteDriver;
|
|
8
10
|
/**
|
|
9
11
|
* @inheritDoc
|
|
10
12
|
*/
|
|
11
13
|
static async init(options) {
|
|
12
|
-
return super.init(options);
|
|
14
|
+
return super.init(defineSqliteConfig(options));
|
|
13
15
|
}
|
|
14
16
|
/**
|
|
15
17
|
* @inheritDoc
|
|
16
18
|
*/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
constructor(options) {
|
|
20
|
+
super(defineSqliteConfig(options));
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
|
-
/* v8 ignore next 3 */
|
|
22
|
-
export function defineSqliteConfig(options) {
|
|
23
|
-
return defineConfig({ driver: SqliteDriver, ...options });
|
|
24
|
-
}
|
package/index.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ export * from '@mikro-orm/knex';
|
|
|
2
2
|
export * from './SqliteConnection.js';
|
|
3
3
|
export * from './SqliteDriver.js';
|
|
4
4
|
export * from './SqlitePlatform.js';
|
|
5
|
-
export { SqliteMikroORM as MikroORM, SqliteOptions as Options, defineSqliteConfig as defineConfig, } from './SqliteMikroORM.js';
|
|
5
|
+
export { SqliteMikroORM as MikroORM, type SqliteOptions as Options, defineSqliteConfig as defineConfig, } from './SqliteMikroORM.js';
|
package/package.json
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/sqlite",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.0.0-dev.
|
|
4
|
+
"version": "7.0.0-dev.90",
|
|
5
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.",
|
|
6
|
-
"typings": "index.d.ts",
|
|
7
6
|
"exports": {
|
|
8
7
|
"./package.json": "./package.json",
|
|
9
|
-
".":
|
|
10
|
-
"types": "./index.d.ts",
|
|
11
|
-
"default": "./index.js"
|
|
12
|
-
}
|
|
8
|
+
".": "./index.js"
|
|
13
9
|
},
|
|
14
10
|
"repository": {
|
|
15
11
|
"type": "git",
|
|
@@ -42,7 +38,7 @@
|
|
|
42
38
|
},
|
|
43
39
|
"homepage": "https://mikro-orm.io",
|
|
44
40
|
"engines": {
|
|
45
|
-
"node": ">= 22.
|
|
41
|
+
"node": ">= 22.17.0"
|
|
46
42
|
},
|
|
47
43
|
"scripts": {
|
|
48
44
|
"build": "yarn clean && yarn compile && yarn copy",
|
|
@@ -54,16 +50,16 @@
|
|
|
54
50
|
"access": "public"
|
|
55
51
|
},
|
|
56
52
|
"dependencies": {
|
|
57
|
-
"@mikro-orm/knex": "7.0.0-dev.
|
|
53
|
+
"@mikro-orm/knex": "7.0.0-dev.90",
|
|
58
54
|
"better-sqlite3": "11.8.1",
|
|
59
55
|
"sqlstring-sqlite": "0.1.1"
|
|
60
56
|
},
|
|
61
57
|
"devDependencies": {
|
|
62
|
-
"@mikro-orm/core": "^6.
|
|
63
|
-
"kysely": "0.28.
|
|
58
|
+
"@mikro-orm/core": "^6.6.2",
|
|
59
|
+
"kysely": "0.28.8"
|
|
64
60
|
},
|
|
65
61
|
"peerDependencies": {
|
|
66
|
-
"@mikro-orm/core": "7.0.0-dev.
|
|
62
|
+
"@mikro-orm/core": "7.0.0-dev.90",
|
|
67
63
|
"kysely": "*"
|
|
68
64
|
}
|
|
69
65
|
}
|