@travetto/model-sqlite 7.0.4 → 7.0.6

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 CHANGED
@@ -29,10 +29,10 @@ Out of the box, by installing the module, everything should be wired up by defau
29
29
 
30
30
  **Code: Wiring up a custom Model Source**
31
31
  ```typescript
32
- import { AsyncContext } from '@travetto/context';
32
+ import type { AsyncContext } from '@travetto/context';
33
33
  import { InjectableFactory } from '@travetto/di';
34
34
 
35
- import { SQLModelService, SQLModelConfig } from '@travetto/model-sql';
35
+ import { SQLModelService, type SQLModelConfig } from '@travetto/model-sql';
36
36
  import { SqliteDialect } from '@travetto/model-sqlite';
37
37
 
38
38
  export class Init {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/model-sqlite",
3
- "version": "7.0.4",
3
+ "version": "7.0.6",
4
4
  "type": "module",
5
5
  "description": "SQLite backing for the travetto model module, with real-time modeling support for SQL schemas.",
6
6
  "keywords": [
@@ -27,13 +27,13 @@
27
27
  "directory": "module/model-sqlite"
28
28
  },
29
29
  "dependencies": {
30
- "@travetto/config": "^7.0.4",
31
- "@travetto/context": "^7.0.4",
32
- "@travetto/model": "^7.0.4",
33
- "@travetto/model-query": "^7.0.4",
34
- "@travetto/model-sql": "^7.0.4",
30
+ "@travetto/config": "^7.0.6",
31
+ "@travetto/context": "^7.0.6",
32
+ "@travetto/model": "^7.0.6",
33
+ "@travetto/model-query": "^7.0.6",
34
+ "@travetto/model-sql": "^7.0.6",
35
35
  "@types/better-sqlite3": "^7.6.13",
36
- "better-sqlite3": "^12.5.0"
36
+ "better-sqlite3": "^12.6.0"
37
37
  },
38
38
  "travetto": {
39
39
  "displayName": "SQLite Model Service",
package/src/connection.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  import fs from 'node:fs/promises';
2
2
  import path from 'node:path';
3
3
 
4
- import sqlDb, { type Database, Options } from 'better-sqlite3';
5
- import { Pool, createPool } from 'generic-pool';
4
+ import sqlDb, { type Database, type Options } from 'better-sqlite3';
5
+ import { type Pool, createPool } from 'generic-pool';
6
6
 
7
7
  import { ShutdownManager, Util, Runtime, AppError, castTo } from '@travetto/runtime';
8
- import { AsyncContext, WithAsyncContext } from '@travetto/context';
8
+ import { type AsyncContext, WithAsyncContext } from '@travetto/context';
9
9
  import { ExistsError } from '@travetto/model';
10
- import { SQLModelConfig, Connection } from '@travetto/model-sql';
10
+ import { type SQLModelConfig, Connection } from '@travetto/model-sql';
11
11
 
12
12
  const RECOVERABLE_MESSAGE = /database( table| schema)? is (locked|busy)/;
13
13
 
package/src/dialect.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { SchemaFieldConfig } from '@travetto/schema';
1
+ import type { SchemaFieldConfig } from '@travetto/schema';
2
2
  import { Injectable } from '@travetto/di';
3
- import { AsyncContext } from '@travetto/context';
4
- import { WhereClause } from '@travetto/model-query';
3
+ import type { AsyncContext } from '@travetto/context';
4
+ import type { WhereClause } from '@travetto/model-query';
5
5
  import { castTo } from '@travetto/runtime';
6
6
 
7
- import { SQLModelConfig, SQLDialect, VisitStack, type SQLTableDescription } from '@travetto/model-sql';
7
+ import { type SQLModelConfig, SQLDialect, type VisitStack, type SQLTableDescription } from '@travetto/model-sql';
8
8
 
9
9
  import { SqliteConnection } from './connection.ts';
10
10