@travetto/model-sql 8.0.0-alpha.0 → 8.0.0-alpha.2
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/package.json +7 -7
- package/src/service.ts +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/model-sql",
|
|
3
|
-
"version": "8.0.0-alpha.
|
|
3
|
+
"version": "8.0.0-alpha.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "SQL backing for the travetto model module, with real-time modeling support for SQL schemas.",
|
|
6
6
|
"keywords": [
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"directory": "module/model-sql"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@travetto/config": "^8.0.0-alpha.
|
|
32
|
-
"@travetto/context": "^8.0.0-alpha.
|
|
33
|
-
"@travetto/model": "^8.0.0-alpha.
|
|
34
|
-
"@travetto/model-query": "^8.0.0-alpha.
|
|
31
|
+
"@travetto/config": "^8.0.0-alpha.2",
|
|
32
|
+
"@travetto/context": "^8.0.0-alpha.2",
|
|
33
|
+
"@travetto/model": "^8.0.0-alpha.2",
|
|
34
|
+
"@travetto/model-query": "^8.0.0-alpha.2"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@travetto/cli": "^8.0.0-alpha.
|
|
38
|
-
"@travetto/test": "^8.0.0-alpha.
|
|
37
|
+
"@travetto/cli": "^8.0.0-alpha.3",
|
|
38
|
+
"@travetto/test": "^8.0.0-alpha.2"
|
|
39
39
|
},
|
|
40
40
|
"peerDependenciesMeta": {
|
|
41
41
|
"@travetto/cli": {
|
package/src/service.ts
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import { castTo, type Class } from '@travetto/runtime';
|
|
8
8
|
import { DataUtil } from '@travetto/schema';
|
|
9
9
|
import type { AsyncContext } from '@travetto/context';
|
|
10
|
-
import { Injectable } from '@travetto/di';
|
|
10
|
+
import { Injectable, PostConstruct } from '@travetto/di';
|
|
11
11
|
import {
|
|
12
12
|
type ModelQuery, type ModelQueryCrudSupport, type ModelQueryFacetSupport, type ModelQuerySupport,
|
|
13
13
|
type PageableModelQuery, type ValidStringFields, type WhereClauseRaw, QueryVerifier, type ModelQuerySuggestSupport,
|
|
@@ -98,7 +98,8 @@ export class SQLModelService implements
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
|
|
101
|
+
@PostConstruct()
|
|
102
|
+
async initializeClient(): Promise<void> {
|
|
102
103
|
await this.#dialect.connection.init?.();
|
|
103
104
|
this.idSource = ModelCrudUtil.uuidSource(this.#dialect.ID_LENGTH);
|
|
104
105
|
this.#manager = new TableManager(this.#context, this.#dialect);
|