@nymphjs/driver-sqlite3 1.0.0-beta.0 → 1.0.0-beta.10

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/CHANGELOG.md CHANGED
@@ -3,6 +3,54 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.0.0-beta.10](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.9...v1.0.0-beta.10) (2023-01-19)
7
+
8
+ ### Features
9
+
10
+ - add wal mode setting to sqlite driver ([0071d66](https://github.com/sciactive/nymphjs/commit/0071d6628534b8b35d49c0238a99fe143fd03207))
11
+
12
+ # [1.0.0-beta.9](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.8...v1.0.0-beta.9) (2023-01-09)
13
+
14
+ **Note:** Version bump only for package @nymphjs/driver-sqlite3
15
+
16
+ # [1.0.0-beta.8](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.7...v1.0.0-beta.8) (2023-01-09)
17
+
18
+ **Note:** Version bump only for package @nymphjs/driver-sqlite3
19
+
20
+ # [1.0.0-beta.7](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.6...v1.0.0-beta.7) (2023-01-05)
21
+
22
+ ### Bug Fixes
23
+
24
+ - sqlite transaction returns wrong instance of nymph if it has been cloned ([b278c76](https://github.com/sciactive/nymphjs/commit/b278c7633722cb1cca7a941187ae2f1ff8ebdc7b))
25
+
26
+ # [1.0.0-beta.6](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.5...v1.0.0-beta.6) (2023-01-05)
27
+
28
+ **Note:** Version bump only for package @nymphjs/driver-sqlite3
29
+
30
+ # [1.0.0-beta.5](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.4...v1.0.0-beta.5) (2022-11-24)
31
+
32
+ **Note:** Version bump only for package @nymphjs/driver-sqlite3
33
+
34
+ # [1.0.0-beta.4](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.3...v1.0.0-beta.4) (2022-11-23)
35
+
36
+ **Note:** Version bump only for package @nymphjs/driver-sqlite3
37
+
38
+ # [1.0.0-beta.3](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.2...v1.0.0-beta.3) (2022-11-21)
39
+
40
+ ### Bug Fixes
41
+
42
+ - don't run query callbacks asynchronously ([02ab89d](https://github.com/sciactive/nymphjs/commit/02ab89d174d6dd366e417d070672587937b4d4b3))
43
+
44
+ # [1.0.0-beta.2](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2022-11-21)
45
+
46
+ **Note:** Version bump only for package @nymphjs/driver-sqlite3
47
+
48
+ # [1.0.0-beta.1](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.0...v1.0.0-beta.1) (2022-11-21)
49
+
50
+ ### Bug Fixes
51
+
52
+ - adjust typescript targets to output node 16 code ([36f15a6](https://github.com/sciactive/nymphjs/commit/36f15a601362ed54f4465ef6527402c026bbcf61))
53
+
6
54
  # [1.0.0-beta.0](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.43...v1.0.0-beta.0) (2022-11-16)
7
55
 
8
56
  ### Features
@@ -1,15 +1,20 @@
1
1
  import SQLite3 from 'better-sqlite3';
2
2
  import { NymphDriver, EntityConstructor, EntityInterface, FormattedSelector, Options, Selector } from '@nymphjs/nymph';
3
3
  import { SQLite3DriverConfig } from './conf';
4
+ declare class InternalStore {
5
+ link: SQLite3.Database;
6
+ connected: boolean;
7
+ transactionsStarted: number;
8
+ constructor(link: SQLite3.Database);
9
+ }
4
10
  export default class SQLite3Driver extends NymphDriver {
5
11
  config: SQLite3DriverConfig;
6
12
  protected prefix: string;
7
- protected connected: boolean;
8
- protected link: SQLite3.Database;
9
- protected transactionsStarted: number;
13
+ protected store: InternalStore;
10
14
  static escape(input: string): string;
11
- constructor(config: Partial<SQLite3DriverConfig>);
12
- connect(): Promise<true>;
15
+ constructor(config: Partial<SQLite3DriverConfig>, store?: InternalStore);
16
+ clone(): SQLite3Driver;
17
+ connect(): Promise<boolean>;
13
18
  disconnect(): Promise<false>;
14
19
  inTransaction(): Promise<boolean>;
15
20
  isConnected(): boolean;
@@ -50,3 +55,4 @@ export default class SQLite3Driver extends NymphDriver {
50
55
  setUID(name: string, curUid: number): Promise<boolean>;
51
56
  startTransaction(name: string): Promise<import("@nymphjs/nymph").Nymph>;
52
57
  }
58
+ export {};