@nymphjs/driver-postgresql 1.0.0-beta.7 → 1.0.0-beta.70

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,293 @@
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.70](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.69...v1.0.0-beta.70) (2024-09-20)
7
+
8
+ ### Bug Fixes
9
+
10
+ - optimize postgres queries ([764c95c](https://github.com/sciactive/nymphjs/commit/764c95c626290204b162245892e93c14bffd46a6))
11
+
12
+ # [1.0.0-beta.69](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.68...v1.0.0-beta.69) (2024-09-19)
13
+
14
+ ### Bug Fixes
15
+
16
+ - create postgres tables outside of transaction ([d95e320](https://github.com/sciactive/nymphjs/commit/d95e32025432540fea3523d8a6c6081122d5fc14))
17
+
18
+ # [1.0.0-beta.68](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.67...v1.0.0-beta.68) (2024-09-19)
19
+
20
+ ### Features
21
+
22
+ - add more indexes for postgres and sqlite ([704993e](https://github.com/sciactive/nymphjs/commit/704993ef10f049a886c36de15827736ef5d54c78))
23
+
24
+ # [1.0.0-beta.67](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.66...v1.0.0-beta.67) (2024-09-03)
25
+
26
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
27
+
28
+ # [1.0.0-beta.66](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.65...v1.0.0-beta.66) (2024-08-06)
29
+
30
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
31
+
32
+ # [1.0.0-beta.65](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.64...v1.0.0-beta.65) (2024-08-05)
33
+
34
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
35
+
36
+ # [1.0.0-beta.64](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.63...v1.0.0-beta.64) (2024-08-04)
37
+
38
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
39
+
40
+ # [1.0.0-beta.63](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.62...v1.0.0-beta.63) (2024-06-18)
41
+
42
+ ### Bug Fixes
43
+
44
+ - undo ts compilation to module change ([84be6d4](https://github.com/sciactive/nymphjs/commit/84be6d434be29f8afd53907d15be2eb77d1736ce))
45
+
46
+ ### Features
47
+
48
+ - allow importing from text and iterables ([9d766bd](https://github.com/sciactive/nymphjs/commit/9d766bdad4b0f17bc2dd68b0336a0064857eb4e9))
49
+ - export data iterator ([b86aa19](https://github.com/sciactive/nymphjs/commit/b86aa19fc77d744b5a683046dfb697fc4746df5c))
50
+
51
+ # [1.0.0-beta.62](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.61...v1.0.0-beta.62) (2024-06-15)
52
+
53
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
54
+
55
+ # [1.0.0-beta.61](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.60...v1.0.0-beta.61) (2024-06-14)
56
+
57
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
58
+
59
+ # [1.0.0-beta.60](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.59...v1.0.0-beta.60) (2024-06-14)
60
+
61
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
62
+
63
+ # [1.0.0-beta.59](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.58...v1.0.0-beta.59) (2024-06-14)
64
+
65
+ ### Features
66
+
67
+ - add uniqueness constraint feature, refactor some types ([8133d32](https://github.com/sciactive/nymphjs/commit/8133d32b2c04907182dca2e9171b8217ed1b57e4))
68
+
69
+ # [1.0.0-beta.58](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.57...v1.0.0-beta.58) (2024-06-12)
70
+
71
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
72
+
73
+ # [1.0.0-beta.57](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.56...v1.0.0-beta.57) (2024-06-12)
74
+
75
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
76
+
77
+ # [1.0.0-beta.56](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.55...v1.0.0-beta.56) (2024-06-11)
78
+
79
+ ### Bug Fixes
80
+
81
+ - import entities without transaction ([db56609](https://github.com/sciactive/nymphjs/commit/db56609efaadc16d5d1bbc8e9b50084aa8a076b9))
82
+
83
+ ### Features
84
+
85
+ - make transaction optional during import and off by default ([08d79f8](https://github.com/sciactive/nymphjs/commit/08d79f8f803c846ac79c0c489fc754437dae082b))
86
+
87
+ # [1.0.0-beta.55](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.54...v1.0.0-beta.55) (2024-05-26)
88
+
89
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
90
+
91
+ # [1.0.0-beta.54](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.53...v1.0.0-beta.54) (2024-05-26)
92
+
93
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
94
+
95
+ # [1.0.0-beta.53](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.52...v1.0.0-beta.53) (2024-05-26)
96
+
97
+ ### Features
98
+
99
+ - add pragma statements config to sqlite3 driver ([b0f27e2](https://github.com/sciactive/nymphjs/commit/b0f27e24df85663ea777565e5d352775efcad858))
100
+
101
+ # [1.0.0-beta.52](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.51...v1.0.0-beta.52) (2024-05-25)
102
+
103
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
104
+
105
+ # [1.0.0-beta.51](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.50...v1.0.0-beta.51) (2024-04-12)
106
+
107
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
108
+
109
+ # [1.0.0-beta.50](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.49...v1.0.0-beta.50) (2024-04-08)
110
+
111
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
112
+
113
+ # [1.0.0-beta.49](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.48...v1.0.0-beta.49) (2024-03-04)
114
+
115
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
116
+
117
+ # [1.0.0-beta.48](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.47...v1.0.0-beta.48) (2023-11-10)
118
+
119
+ ### Bug Fixes
120
+
121
+ - avoid trying to roll back a transaction twice ([e26ef31](https://github.com/sciactive/nymphjs/commit/e26ef312b617edcc715c81e7f92875dfaa7a904a))
122
+
123
+ # [1.0.0-beta.47](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.46...v1.0.0-beta.47) (2023-11-10)
124
+
125
+ ### Bug Fixes
126
+
127
+ - nymph stays in a new transaction on the parent instance ([1857046](https://github.com/sciactive/nymphjs/commit/185704666715162d8482326eaba7c2532297432c))
128
+
129
+ # [1.0.0-beta.46](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.45...v1.0.0-beta.46) (2023-08-29)
130
+
131
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
132
+
133
+ # [1.0.0-beta.45](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.44...v1.0.0-beta.45) (2023-07-17)
134
+
135
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
136
+
137
+ # [1.0.0-beta.44](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.43...v1.0.0-beta.44) (2023-07-13)
138
+
139
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
140
+
141
+ # [1.0.0-beta.43](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.42...v1.0.0-beta.43) (2023-07-12)
142
+
143
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
144
+
145
+ # [1.0.0-beta.42](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.41...v1.0.0-beta.42) (2023-07-12)
146
+
147
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
148
+
149
+ # [1.0.0-beta.41](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.40...v1.0.0-beta.41) (2023-07-12)
150
+
151
+ ### Features
152
+
153
+ - remove synchronous database queries ([b579fb2](https://github.com/sciactive/nymphjs/commit/b579fb2eacd96cdd1b386a62c5c00cdbb2438f6e))
154
+
155
+ # [1.0.0-beta.40](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.39...v1.0.0-beta.40) (2023-07-10)
156
+
157
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
158
+
159
+ # [1.0.0-beta.39](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.38...v1.0.0-beta.39) (2023-07-09)
160
+
161
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
162
+
163
+ # [1.0.0-beta.38](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.37...v1.0.0-beta.38) (2023-07-09)
164
+
165
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
166
+
167
+ # [1.0.0-beta.37](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.36...v1.0.0-beta.37) (2023-07-09)
168
+
169
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
170
+
171
+ # [1.0.0-beta.36](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.35...v1.0.0-beta.36) (2023-07-09)
172
+
173
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
174
+
175
+ # [1.0.0-beta.35](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.34...v1.0.0-beta.35) (2023-06-14)
176
+
177
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
178
+
179
+ # [1.0.0-beta.34](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.33...v1.0.0-beta.34) (2023-05-13)
180
+
181
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
182
+
183
+ # [1.0.0-beta.33](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.32...v1.0.0-beta.33) (2023-05-13)
184
+
185
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
186
+
187
+ # [1.0.0-beta.32](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.31...v1.0.0-beta.32) (2023-05-13)
188
+
189
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
190
+
191
+ # [1.0.0-beta.31](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.30...v1.0.0-beta.31) (2023-05-12)
192
+
193
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
194
+
195
+ # [1.0.0-beta.30](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.29...v1.0.0-beta.30) (2023-05-12)
196
+
197
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
198
+
199
+ # [1.0.0-beta.29](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.28...v1.0.0-beta.29) (2023-05-08)
200
+
201
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
202
+
203
+ # [1.0.0-beta.28](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.27...v1.0.0-beta.28) (2023-05-05)
204
+
205
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
206
+
207
+ # [1.0.0-beta.27](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.26...v1.0.0-beta.27) (2023-05-04)
208
+
209
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
210
+
211
+ # [1.0.0-beta.26](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.25...v1.0.0-beta.26) (2023-05-04)
212
+
213
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
214
+
215
+ # [1.0.0-beta.25](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.24...v1.0.0-beta.25) (2023-05-04)
216
+
217
+ ### Bug Fixes
218
+
219
+ - don't create empty entities ([1d4d2e9](https://github.com/sciactive/nymphjs/commit/1d4d2e99af2e9cdc647bcf58ac34572836f41176))
220
+
221
+ # [1.0.0-beta.24](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.23...v1.0.0-beta.24) (2023-05-02)
222
+
223
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
224
+
225
+ # [1.0.0-beta.23](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.22...v1.0.0-beta.23) (2023-05-02)
226
+
227
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
228
+
229
+ # [1.0.0-beta.22](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.21...v1.0.0-beta.22) (2023-05-01)
230
+
231
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
232
+
233
+ # [1.0.0-beta.21](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.20...v1.0.0-beta.21) (2023-05-01)
234
+
235
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
236
+
237
+ # [1.0.0-beta.20](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.19...v1.0.0-beta.20) (2023-04-30)
238
+
239
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
240
+
241
+ # [1.0.0-beta.19](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.18...v1.0.0-beta.19) (2023-04-29)
242
+
243
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
244
+
245
+ # [1.0.0-beta.18](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.17...v1.0.0-beta.18) (2023-04-27)
246
+
247
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
248
+
249
+ # [1.0.0-beta.17](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.16...v1.0.0-beta.17) (2023-04-24)
250
+
251
+ ### Features
252
+
253
+ - use a long lived worker thread for synchronous mysql and postgres queries ([7e2bf84](https://github.com/sciactive/nymphjs/commit/7e2bf84a2d584d6906c31f44147025b793a05026))
254
+
255
+ # [1.0.0-beta.16](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.15...v1.0.0-beta.16) (2023-03-31)
256
+
257
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
258
+
259
+ # [1.0.0-beta.15](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.14...v1.0.0-beta.15) (2023-03-23)
260
+
261
+ ### Features
262
+
263
+ - add option to sort results by a property ([16384e7](https://github.com/sciactive/nymphjs/commit/16384e7bdab88abb55ccccabb06ac09f92fa8a03))
264
+
265
+ # [1.0.0-beta.14](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.13...v1.0.0-beta.14) (2023-03-17)
266
+
267
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
268
+
269
+ # [1.0.0-beta.13](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.12...v1.0.0-beta.13) (2023-03-16)
270
+
271
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
272
+
273
+ # [1.0.0-beta.12](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.11...v1.0.0-beta.12) (2023-03-04)
274
+
275
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
276
+
277
+ # [1.0.0-beta.11](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.10...v1.0.0-beta.11) (2023-02-27)
278
+
279
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
280
+
281
+ # [1.0.0-beta.10](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.9...v1.0.0-beta.10) (2023-01-19)
282
+
283
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
284
+
285
+ # [1.0.0-beta.9](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.8...v1.0.0-beta.9) (2023-01-09)
286
+
287
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
288
+
289
+ # [1.0.0-beta.8](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.7...v1.0.0-beta.8) (2023-01-09)
290
+
291
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
292
+
6
293
  # [1.0.0-beta.7](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.6...v1.0.0-beta.7) (2023-01-05)
7
294
 
8
295
  ### Bug Fixes
@@ -1,5 +1,5 @@
1
1
  import { Pool, PoolClient } from 'pg';
2
- import { NymphDriver, EntityConstructor, EntityInterface, FormattedSelector, Options, Selector } from '@nymphjs/nymph';
2
+ import { NymphDriver, type EntityConstructor, type EntityInterface, type EntityInstanceType, type SerializedEntityData, type FormattedSelector, type Options, type Selector } from '@nymphjs/nymph';
3
3
  import { PostgreSQLDriverConfig } from './conf';
4
4
  type PostgreSQLDriverConnection = {
5
5
  client: PoolClient;
@@ -9,6 +9,9 @@ type PostgreSQLDriverTransaction = {
9
9
  connection: PostgreSQLDriverConnection | null;
10
10
  count: number;
11
11
  };
12
+ /**
13
+ * The PostgreSQL Nymph database driver.
14
+ */
12
15
  export default class PostgreSQLDriver extends NymphDriver {
13
16
  config: PostgreSQLDriverConfig;
14
17
  private postgresqlConfig;
@@ -19,54 +22,91 @@ export default class PostgreSQLDriver extends NymphDriver {
19
22
  static escape(input: string): string;
20
23
  static escapeValue(input: string): string;
21
24
  constructor(config: Partial<PostgreSQLDriverConfig>, link?: Pool, transaction?: PostgreSQLDriverTransaction);
25
+ /**
26
+ * This is used internally by Nymph. Don't call it yourself.
27
+ *
28
+ * @returns A clone of this instance.
29
+ */
22
30
  clone(): PostgreSQLDriver;
23
31
  private getConnection;
32
+ /**
33
+ * Connect to the PostgreSQL database.
34
+ *
35
+ * @returns Whether this instance is connected to a PostgreSQL database.
36
+ */
24
37
  connect(): Promise<true>;
38
+ /**
39
+ * Disconnect from the PostgreSQL database.
40
+ *
41
+ * @returns Whether this instance is connected to a PostgreSQL database.
42
+ */
25
43
  disconnect(): Promise<false>;
26
44
  inTransaction(): Promise<boolean>;
45
+ /**
46
+ * Check connection status.
47
+ *
48
+ * @returns Whether this instance is connected to a PostgreSQL database.
49
+ */
27
50
  isConnected(): boolean;
51
+ /**
52
+ * Create entity tables in the database.
53
+ *
54
+ * @param etype The entity type to create a table for. If this is blank, the default tables are created.
55
+ * @returns True on success, false on failure.
56
+ */
28
57
  private createTables;
29
58
  private translateQuery;
30
59
  private query;
31
- private querySync;
32
60
  private queryIter;
33
- private queryIterSync;
34
61
  private queryGet;
35
62
  private queryRun;
36
- private queryRunSync;
37
63
  commit(name: string): Promise<boolean>;
38
64
  deleteEntityByID(guid: string, className?: EntityConstructor | string | null): Promise<boolean>;
39
65
  deleteUID(name: string): Promise<boolean>;
40
- protected exportEntities(writeLine: (line: string) => void): Promise<void>;
66
+ exportDataIterator(): AsyncGenerator<{
67
+ type: 'comment' | 'uid' | 'entity';
68
+ content: string;
69
+ }, void, false | undefined>;
70
+ /**
71
+ * Generate the PostgreSQL query.
72
+ * @param options The options array.
73
+ * @param formattedSelectors The formatted selector array.
74
+ * @param etype
75
+ * @param count Used to track internal params.
76
+ * @param params Used to store internal params.
77
+ * @param subquery Whether only a subquery should be returned.
78
+ * @returns The SQL query.
79
+ */
41
80
  private makeEntityQuery;
42
81
  protected performQuery(options: Options, formattedSelectors: FormattedSelector[], etype: string): {
43
82
  result: any;
44
83
  };
45
- protected performQuerySync(options: Options, formattedSelectors: FormattedSelector[], etype: string): {
46
- result: any;
47
- };
48
84
  getEntities<T extends EntityConstructor = EntityConstructor>(options: Options<T> & {
49
85
  return: 'count';
50
86
  }, ...selectors: Selector[]): Promise<number>;
51
87
  getEntities<T extends EntityConstructor = EntityConstructor>(options: Options<T> & {
52
88
  return: 'guid';
53
89
  }, ...selectors: Selector[]): Promise<string[]>;
54
- getEntities<T extends EntityConstructor = EntityConstructor>(options?: Options<T>, ...selectors: Selector[]): Promise<ReturnType<T['factorySync']>[]>;
55
- protected getEntitiesSync<T extends EntityConstructor = EntityConstructor>(options: Options<T> & {
56
- return: 'count';
57
- }, ...selectors: Selector[]): number;
58
- protected getEntitiesSync<T extends EntityConstructor = EntityConstructor>(options: Options<T> & {
59
- return: 'guid';
60
- }, ...selectors: Selector[]): string[];
61
- protected getEntitiesSync<T extends EntityConstructor = EntityConstructor>(options?: Options<T>, ...selectors: Selector[]): ReturnType<T['factorySync']>[];
90
+ getEntities<T extends EntityConstructor = EntityConstructor>(options?: Options<T>, ...selectors: Selector[]): Promise<EntityInstanceType<T>[]>;
62
91
  getUID(name: string): Promise<number | null>;
63
- import(filename: string): Promise<boolean>;
92
+ importEntity({ guid, cdate, mdate, tags, sdata, etype, }: {
93
+ guid: string;
94
+ cdate: number;
95
+ mdate: number;
96
+ tags: string[];
97
+ sdata: SerializedEntityData;
98
+ etype: string;
99
+ }): Promise<void>;
100
+ importUID({ name, value }: {
101
+ name: string;
102
+ value: number;
103
+ }): Promise<void>;
64
104
  newUID(name: string): Promise<number>;
65
105
  renameUID(oldName: string, newName: string): Promise<boolean>;
66
106
  rollback(name: string): Promise<boolean>;
67
107
  saveEntity(entity: EntityInterface): Promise<boolean>;
68
108
  setUID(name: string, curUid: number): Promise<boolean>;
69
- private internalTransaction;
109
+ protected internalTransaction(name: string): Promise<PostgreSQLDriverTransaction>;
70
110
  startTransaction(name: string): Promise<import("@nymphjs/nymph").Nymph>;
71
111
  }
72
112
  export {};