@nymphjs/driver-postgresql 1.0.0-alpha.9 → 1.0.0-beta.1

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,166 @@
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.1](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.0...v1.0.0-beta.1) (2022-11-21)
7
+
8
+ ### Bug Fixes
9
+
10
+ - adjust typescript targets to output node 16 code ([36f15a6](https://github.com/sciactive/nymphjs/commit/36f15a601362ed54f4465ef6527402c026bbcf61))
11
+
12
+ # [1.0.0-beta.0](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.43...v1.0.0-beta.0) (2022-11-16)
13
+
14
+ ### Features
15
+
16
+ - update packages and fix issues, new guid package to use latest esm nanoid ([fd66aab](https://github.com/sciactive/nymphjs/commit/fd66aab465e6b1d83f4238bb16bc88d851ef5e92))
17
+
18
+ # [1.0.0-alpha.43](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.42...v1.0.0-alpha.43) (2022-03-07)
19
+
20
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
21
+
22
+ # [1.0.0-alpha.42](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.41...v1.0.0-alpha.42) (2022-03-06)
23
+
24
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
25
+
26
+ # [1.0.0-alpha.41](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.40...v1.0.0-alpha.41) (2022-03-06)
27
+
28
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
29
+
30
+ # [1.0.0-alpha.40](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.39...v1.0.0-alpha.40) (2022-03-05)
31
+
32
+ ### Bug Fixes
33
+
34
+ - allow queryIterSync to fail silently for undefined result ([ace517e](https://github.com/sciactive/nymphjs/commit/ace517ecdf7fb3124982fd3c4a6853cd64d8e9af))
35
+
36
+ # [1.0.0-alpha.39](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.38...v1.0.0-alpha.39) (2022-03-05)
37
+
38
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
39
+
40
+ # [1.0.0-alpha.38](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.37...v1.0.0-alpha.38) (2022-02-10)
41
+
42
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
43
+
44
+ # [1.0.0-alpha.37](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.36...v1.0.0-alpha.37) (2022-02-02)
45
+
46
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
47
+
48
+ # [1.0.0-alpha.36](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.35...v1.0.0-alpha.36) (2022-01-26)
49
+
50
+ ### Features
51
+
52
+ - entity count return option ([f1e34e8](https://github.com/sciactive/nymphjs/commit/f1e34e8f74d9fdda58989fc101f4381243a86ec3))
53
+
54
+ # [1.0.0-alpha.35](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.34...v1.0.0-alpha.35) (2022-01-19)
55
+
56
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
57
+
58
+ # [1.0.0-alpha.34](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.33...v1.0.0-alpha.34) (2022-01-08)
59
+
60
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
61
+
62
+ # [1.0.0-alpha.33](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.32...v1.0.0-alpha.33) (2022-01-08)
63
+
64
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
65
+
66
+ # [1.0.0-alpha.32](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.31...v1.0.0-alpha.32) (2022-01-08)
67
+
68
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
69
+
70
+ # [1.0.0-alpha.31](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.30...v1.0.0-alpha.31) (2022-01-08)
71
+
72
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
73
+
74
+ # [1.0.0-alpha.30](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.29...v1.0.0-alpha.30) (2022-01-07)
75
+
76
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
77
+
78
+ # [1.0.0-alpha.29](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.28...v1.0.0-alpha.29) (2022-01-07)
79
+
80
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
81
+
82
+ # [1.0.0-alpha.28](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.27...v1.0.0-alpha.28) (2022-01-07)
83
+
84
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
85
+
86
+ # [1.0.0-alpha.27](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.26...v1.0.0-alpha.27) (2022-01-05)
87
+
88
+ ### Features
89
+
90
+ - update smui to latest versions ([7ed7bd3](https://github.com/sciactive/nymphjs/commit/7ed7bd34d01a155c7001a2671de25ef2f3363682))
91
+
92
+ # [1.0.0-alpha.26](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.25...v1.0.0-alpha.26) (2021-12-30)
93
+
94
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
95
+
96
+ # [1.0.0-alpha.25](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.24...v1.0.0-alpha.25) (2021-12-30)
97
+
98
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
99
+
100
+ # [1.0.0-alpha.24](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.23...v1.0.0-alpha.24) (2021-12-30)
101
+
102
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
103
+
104
+ # [1.0.0-alpha.23](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.22...v1.0.0-alpha.23) (2021-12-30)
105
+
106
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
107
+
108
+ # [1.0.0-alpha.22](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.21...v1.0.0-alpha.22) (2021-12-14)
109
+
110
+ ### Features
111
+
112
+ - update smui to latest versions ([912873b](https://github.com/sciactive/nymphjs/commit/912873b863d1ae5d51c359a3c0558bff38ce85cd))
113
+
114
+ # [1.0.0-alpha.21](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.20...v1.0.0-alpha.21) (2021-11-29)
115
+
116
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
117
+
118
+ # [1.0.0-alpha.20](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.19...v1.0.0-alpha.20) (2021-11-24)
119
+
120
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
121
+
122
+ # [1.0.0-alpha.19](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.18...v1.0.0-alpha.19) (2021-11-18)
123
+
124
+ ### Features
125
+
126
+ - update smui and other packages to latest versions ([2465340](https://github.com/sciactive/nymphjs/commit/24653400d887bc04c41c3c4ee0c73ce2f2289e0d))
127
+
128
+ # [1.0.0-alpha.18](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.17...v1.0.0-alpha.18) (2021-11-09)
129
+
130
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
131
+
132
+ # [1.0.0-alpha.17](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.16...v1.0.0-alpha.17) (2021-10-14)
133
+
134
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
135
+
136
+ # [1.0.0-alpha.16](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.15...v1.0.0-alpha.16) (2021-10-14)
137
+
138
+ ### Bug Fixes
139
+
140
+ - don't ignore built files in npm packages ([7d688db](https://github.com/sciactive/nymphjs/commit/7d688dbec362f1f71fb451a1d0dbcaecc15d99fc))
141
+
142
+ # [1.0.0-alpha.15](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.14...v1.0.0-alpha.15) (2021-10-14)
143
+
144
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
145
+
146
+ # [1.0.0-alpha.14](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.13...v1.0.0-alpha.14) (2021-10-14)
147
+
148
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
149
+
150
+ # [1.0.0-alpha.13](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.12...v1.0.0-alpha.13) (2021-10-14)
151
+
152
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
153
+
154
+ # [1.0.0-alpha.12](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.11...v1.0.0-alpha.12) (2021-10-13)
155
+
156
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
157
+
158
+ # [1.0.0-alpha.11](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.10...v1.0.0-alpha.11) (2021-10-13)
159
+
160
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
161
+
162
+ # [1.0.0-alpha.10](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.9...v1.0.0-alpha.10) (2021-10-12)
163
+
164
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
165
+
6
166
  # [1.0.0-alpha.9](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.8...v1.0.0-alpha.9) (2021-10-12)
7
167
 
8
168
  **Note:** Version bump only for package @nymphjs/driver-postgresql
@@ -1,11 +1,11 @@
1
1
  import { Pool, PoolClient } from 'pg';
2
2
  import { NymphDriver, EntityConstructor, EntityInterface, FormattedSelector, Options, Selector } from '@nymphjs/nymph';
3
3
  import { PostgreSQLDriverConfig } from './conf';
4
- declare type PostgreSQLDriverConnection = {
4
+ type PostgreSQLDriverConnection = {
5
5
  client: PoolClient;
6
6
  done: () => void;
7
7
  };
8
- declare type PostgreSQLDriverTransaction = {
8
+ type PostgreSQLDriverTransaction = {
9
9
  connection: PostgreSQLDriverConnection | null;
10
10
  count: number;
11
11
  };
@@ -44,10 +44,16 @@ export default class PostgreSQLDriver extends NymphDriver {
44
44
  protected performQuerySync(options: Options, formattedSelectors: FormattedSelector[], etype: string): {
45
45
  result: any;
46
46
  };
47
+ getEntities<T extends EntityConstructor = EntityConstructor>(options: Options<T> & {
48
+ return: 'count';
49
+ }, ...selectors: Selector[]): Promise<number>;
47
50
  getEntities<T extends EntityConstructor = EntityConstructor>(options: Options<T> & {
48
51
  return: 'guid';
49
52
  }, ...selectors: Selector[]): Promise<string[]>;
50
53
  getEntities<T extends EntityConstructor = EntityConstructor>(options?: Options<T>, ...selectors: Selector[]): Promise<ReturnType<T['factorySync']>[]>;
54
+ protected getEntitiesSync<T extends EntityConstructor = EntityConstructor>(options: Options<T> & {
55
+ return: 'count';
56
+ }, ...selectors: Selector[]): number;
51
57
  protected getEntitiesSync<T extends EntityConstructor = EntityConstructor>(options: Options<T> & {
52
58
  return: 'guid';
53
59
  }, ...selectors: Selector[]): string[];