@travetto/model-sql 3.1.0 → 3.1.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 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/model-sql",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.2",
|
|
4
4
|
"description": "SQL backing for the travetto model module, with real-time modeling support for SQL schemas.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sql",
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"directory": "module/model-sql"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@travetto/config": "^3.1.
|
|
31
|
-
"@travetto/context": "^3.1.
|
|
32
|
-
"@travetto/model": "^3.1.
|
|
33
|
-
"@travetto/model-query": "^3.1.
|
|
30
|
+
"@travetto/config": "^3.1.1",
|
|
31
|
+
"@travetto/context": "^3.1.1",
|
|
32
|
+
"@travetto/model": "^3.1.2",
|
|
33
|
+
"@travetto/model-query": "^3.1.2"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@travetto/command": "^3.1.
|
|
37
|
-
"@travetto/test": "^3.1.
|
|
36
|
+
"@travetto/command": "^3.1.1",
|
|
37
|
+
"@travetto/test": "^3.1.1"
|
|
38
38
|
},
|
|
39
39
|
"peerDependenciesMeta": {
|
|
40
40
|
"@travetto/command": {
|
package/src/service.ts
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
ModelType,
|
|
3
3
|
BulkOp, BulkResponse, ModelCrudSupport, ModelStorageSupport, ModelBulkSupport,
|
|
4
4
|
NotFoundError, ModelRegistry, ExistsError, OptionalId,
|
|
5
|
-
|
|
5
|
+
ModelIdSource
|
|
6
6
|
} from '@travetto/model';
|
|
7
7
|
import { DataUtil, Class } from '@travetto/base';
|
|
8
8
|
import { SchemaChange } from '@travetto/schema';
|
|
@@ -45,7 +45,7 @@ export class SQLModelService implements
|
|
|
45
45
|
#manager: TableManager;
|
|
46
46
|
#context: AsyncContext;
|
|
47
47
|
#dialect: SQLDialect;
|
|
48
|
-
|
|
48
|
+
idSource: ModelIdSource;
|
|
49
49
|
|
|
50
50
|
readonly config: SQLModelConfig;
|
|
51
51
|
|
|
@@ -109,7 +109,7 @@ export class SQLModelService implements
|
|
|
109
109
|
if (this.#dialect.conn.init) {
|
|
110
110
|
await this.#dialect.conn.init();
|
|
111
111
|
}
|
|
112
|
-
this.
|
|
112
|
+
this.idSource = ModelCrudUtil.uuidSource(this.#dialect.ID_LEN);
|
|
113
113
|
this.#manager = new TableManager(this.#context, this.#dialect);
|
|
114
114
|
await ModelStorageUtil.registerModelChangeListener(this);
|
|
115
115
|
ModelExpiryUtil.registerCull(this);
|