@travetto/model-sql 3.1.1 → 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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. 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.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",
@@ -29,8 +29,8 @@
29
29
  "dependencies": {
30
30
  "@travetto/config": "^3.1.1",
31
31
  "@travetto/context": "^3.1.1",
32
- "@travetto/model": "^3.1.1",
33
- "@travetto/model-query": "^3.1.1"
32
+ "@travetto/model": "^3.1.2",
33
+ "@travetto/model-query": "^3.1.2"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@travetto/command": "^3.1.1",
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
- ModelUuidGenerator
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
- uuid: ModelUuidGenerator;
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.uuid = ModelCrudUtil.uuidGenerator(this.#dialect.ID_LEN);
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);