@nymphjs/driver-postgresql 1.0.0-beta.81 → 1.0.0-beta.82
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 +10 -0
- package/README.md +1 -1
- package/dist/PostgreSQLDriver.d.ts +3 -2
- package/dist/PostgreSQLDriver.js +105 -83
- package/dist/PostgreSQLDriver.js.map +1 -1
- package/dist/PostgreSQLDriver.test.js +7 -11
- package/dist/PostgreSQLDriver.test.js.map +1 -1
- package/dist/conf/d.js +1 -2
- package/dist/conf/defaults.d.ts +1 -1
- package/dist/conf/defaults.js +1 -3
- package/dist/conf/defaults.js.map +1 -1
- package/dist/conf/index.d.ts +2 -2
- package/dist/conf/index.js +2 -8
- package/dist/conf/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -24
- package/dist/index.js.map +1 -1
- package/jest.config.js +11 -2
- package/package.json +16 -13
- package/src/PostgreSQLDriver.test.ts +3 -1
- package/src/PostgreSQLDriver.ts +85 -35
- package/src/conf/defaults.ts +1 -1
- package/src/conf/index.ts +2 -2
- package/src/index.ts +2 -2
- package/tsconfig.json +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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.82](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.81...v1.0.0-beta.82) (2024-12-15)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- use async generator for data export in postgres to solve out of memory issue ([25abf2a](https://github.com/sciactive/nymphjs/commit/25abf2a30b401a6d5d0fe42e057176ed258e4e29))
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- migrate to es modules, upgrade all packages, migrate to Svelte 5 ([3f2b9e5](https://github.com/sciactive/nymphjs/commit/3f2b9e517b39934eddce66601d7fc747fbf3f9e6))
|
|
15
|
+
|
|
6
16
|
# [1.0.0-beta.81](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.80...v1.0.0-beta.81) (2024-09-28)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @nymphjs/driver-postgresql
|
package/README.md
CHANGED
|
@@ -36,7 +36,7 @@ See the [config declaration file](src/conf/d.ts).
|
|
|
36
36
|
|
|
37
37
|
# License
|
|
38
38
|
|
|
39
|
-
Copyright 2021 SciActive Inc
|
|
39
|
+
Copyright 2021-2024 SciActive Inc
|
|
40
40
|
|
|
41
41
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
42
42
|
you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Pool, PoolClient } from 'pg';
|
|
1
|
+
import type { Pool, PoolClient } from 'pg';
|
|
2
2
|
import { NymphDriver, type EntityConstructor, type EntityInterface, type EntityInstanceType, type SerializedEntityData, type FormattedSelector, type Options, type Selector } from '@nymphjs/nymph';
|
|
3
|
-
import { PostgreSQLDriverConfig } from './conf';
|
|
3
|
+
import { PostgreSQLDriverConfig } from './conf/index.js';
|
|
4
4
|
type PostgreSQLDriverConnection = {
|
|
5
5
|
client: PoolClient;
|
|
6
6
|
done: () => void;
|
|
@@ -61,6 +61,7 @@ export default class PostgreSQLDriver extends NymphDriver {
|
|
|
61
61
|
private createTables;
|
|
62
62
|
private translateQuery;
|
|
63
63
|
private query;
|
|
64
|
+
private queryArray;
|
|
64
65
|
private queryIter;
|
|
65
66
|
private queryGet;
|
|
66
67
|
private queryRun;
|