@pgpmjs/types 2.12.6 → 2.12.7
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 +0 -1
- package/esm/jobs.js +0 -17
- package/esm/pgpm.js +0 -17
- package/jobs.d.ts +2 -13
- package/jobs.js +0 -17
- package/package.json +2 -2
- package/pgpm.js +0 -17
package/README.md
CHANGED
|
@@ -54,7 +54,6 @@ Common issues and solutions for pgpm, PostgreSQL, and testing.
|
|
|
54
54
|
* [@pgsql/enums](https://www.npmjs.com/package/@pgsql/enums): **🏷️ TypeScript enums** for PostgreSQL AST for safe and ergonomic parsing logic.
|
|
55
55
|
* [@pgsql/types](https://www.npmjs.com/package/@pgsql/types): **📝 Type definitions** for PostgreSQL AST nodes in TypeScript.
|
|
56
56
|
* [@pgsql/utils](https://www.npmjs.com/package/@pgsql/utils): **🛠️ AST utilities** for constructing and transforming PostgreSQL syntax trees.
|
|
57
|
-
* [pg-ast](https://www.npmjs.com/package/pg-ast): **🔍 Low-level AST tools** and transformations for Postgres query structures.
|
|
58
57
|
|
|
59
58
|
### 🚀 API & Dev Tools
|
|
60
59
|
|
package/esm/jobs.js
CHANGED
|
@@ -2,22 +2,10 @@
|
|
|
2
2
|
* Default configuration values for job system
|
|
3
3
|
*/
|
|
4
4
|
export const jobsDefaults = {
|
|
5
|
-
pg: {
|
|
6
|
-
host: 'localhost',
|
|
7
|
-
port: 5432,
|
|
8
|
-
user: 'postgres',
|
|
9
|
-
password: 'password',
|
|
10
|
-
database: 'jobs'
|
|
11
|
-
},
|
|
12
5
|
schema: {
|
|
13
6
|
schema: 'app_jobs'
|
|
14
7
|
},
|
|
15
8
|
worker: {
|
|
16
|
-
host: 'localhost',
|
|
17
|
-
port: 5432,
|
|
18
|
-
user: 'postgres',
|
|
19
|
-
password: 'password',
|
|
20
|
-
database: 'jobs',
|
|
21
9
|
schema: 'app_jobs',
|
|
22
10
|
hostname: 'worker-0',
|
|
23
11
|
supportAny: true,
|
|
@@ -26,11 +14,6 @@ export const jobsDefaults = {
|
|
|
26
14
|
gracefulShutdown: true
|
|
27
15
|
},
|
|
28
16
|
scheduler: {
|
|
29
|
-
host: 'localhost',
|
|
30
|
-
port: 5432,
|
|
31
|
-
user: 'postgres',
|
|
32
|
-
password: 'password',
|
|
33
|
-
database: 'jobs',
|
|
34
17
|
schema: 'app_jobs',
|
|
35
18
|
hostname: 'scheduler-0',
|
|
36
19
|
supportAny: true,
|
package/esm/pgpm.js
CHANGED
|
@@ -60,22 +60,10 @@ export const pgpmDefaults = {
|
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
jobs: {
|
|
63
|
-
pg: {
|
|
64
|
-
host: 'localhost',
|
|
65
|
-
port: 5432,
|
|
66
|
-
user: 'postgres',
|
|
67
|
-
password: 'password',
|
|
68
|
-
database: 'jobs'
|
|
69
|
-
},
|
|
70
63
|
schema: {
|
|
71
64
|
schema: 'app_jobs'
|
|
72
65
|
},
|
|
73
66
|
worker: {
|
|
74
|
-
host: 'localhost',
|
|
75
|
-
port: 5432,
|
|
76
|
-
user: 'postgres',
|
|
77
|
-
password: 'password',
|
|
78
|
-
database: 'jobs',
|
|
79
67
|
schema: 'app_jobs',
|
|
80
68
|
hostname: 'worker-0',
|
|
81
69
|
supportAny: true,
|
|
@@ -84,11 +72,6 @@ export const pgpmDefaults = {
|
|
|
84
72
|
gracefulShutdown: true
|
|
85
73
|
},
|
|
86
74
|
scheduler: {
|
|
87
|
-
host: 'localhost',
|
|
88
|
-
port: 5432,
|
|
89
|
-
user: 'postgres',
|
|
90
|
-
password: 'password',
|
|
91
|
-
database: 'jobs',
|
|
92
75
|
schema: 'app_jobs',
|
|
93
76
|
hostname: 'scheduler-0',
|
|
94
77
|
supportAny: true,
|
package/jobs.d.ts
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import { PgConfig } from 'pg-env';
|
|
2
|
-
/**
|
|
3
|
-
* Job system PostgreSQL configuration
|
|
4
|
-
* Extends the base PgConfig with job-specific database settings
|
|
5
|
-
*/
|
|
6
|
-
export interface JobPgConfig extends PgConfig {
|
|
7
|
-
/** Database name for job system (defaults to 'jobs') */
|
|
8
|
-
database: string;
|
|
9
|
-
}
|
|
10
1
|
/**
|
|
11
2
|
* Job schema configuration
|
|
12
3
|
*/
|
|
@@ -141,7 +132,7 @@ export interface Job {
|
|
|
141
132
|
/**
|
|
142
133
|
* Worker configuration options
|
|
143
134
|
*/
|
|
144
|
-
export interface JobWorkerConfig extends
|
|
135
|
+
export interface JobWorkerConfig extends JobSchemaConfig, JobHostnameConfig, JobTaskSupportConfig {
|
|
145
136
|
/** Polling interval in milliseconds */
|
|
146
137
|
pollInterval?: number;
|
|
147
138
|
/** Whether to enable graceful shutdown */
|
|
@@ -150,7 +141,7 @@ export interface JobWorkerConfig extends JobPgConfig, JobSchemaConfig, JobHostna
|
|
|
150
141
|
/**
|
|
151
142
|
* Scheduler configuration options
|
|
152
143
|
*/
|
|
153
|
-
export interface JobSchedulerConfig extends
|
|
144
|
+
export interface JobSchedulerConfig extends JobSchemaConfig, JobHostnameConfig, JobTaskSupportConfig {
|
|
154
145
|
/** Polling interval in milliseconds for checking scheduled jobs */
|
|
155
146
|
pollInterval?: number;
|
|
156
147
|
/** Whether to enable graceful shutdown */
|
|
@@ -160,8 +151,6 @@ export interface JobSchedulerConfig extends JobPgConfig, JobSchemaConfig, JobHos
|
|
|
160
151
|
* Complete job system configuration
|
|
161
152
|
*/
|
|
162
153
|
export interface JobsConfig {
|
|
163
|
-
/** PostgreSQL database configuration */
|
|
164
|
-
pg?: Partial<JobPgConfig>;
|
|
165
154
|
/** Job schema configuration */
|
|
166
155
|
schema?: Partial<JobSchemaConfig>;
|
|
167
156
|
/** Worker configuration */
|
package/jobs.js
CHANGED
|
@@ -5,22 +5,10 @@ exports.jobsDefaults = void 0;
|
|
|
5
5
|
* Default configuration values for job system
|
|
6
6
|
*/
|
|
7
7
|
exports.jobsDefaults = {
|
|
8
|
-
pg: {
|
|
9
|
-
host: 'localhost',
|
|
10
|
-
port: 5432,
|
|
11
|
-
user: 'postgres',
|
|
12
|
-
password: 'password',
|
|
13
|
-
database: 'jobs'
|
|
14
|
-
},
|
|
15
8
|
schema: {
|
|
16
9
|
schema: 'app_jobs'
|
|
17
10
|
},
|
|
18
11
|
worker: {
|
|
19
|
-
host: 'localhost',
|
|
20
|
-
port: 5432,
|
|
21
|
-
user: 'postgres',
|
|
22
|
-
password: 'password',
|
|
23
|
-
database: 'jobs',
|
|
24
12
|
schema: 'app_jobs',
|
|
25
13
|
hostname: 'worker-0',
|
|
26
14
|
supportAny: true,
|
|
@@ -29,11 +17,6 @@ exports.jobsDefaults = {
|
|
|
29
17
|
gracefulShutdown: true
|
|
30
18
|
},
|
|
31
19
|
scheduler: {
|
|
32
|
-
host: 'localhost',
|
|
33
|
-
port: 5432,
|
|
34
|
-
user: 'postgres',
|
|
35
|
-
password: 'password',
|
|
36
|
-
database: 'jobs',
|
|
37
20
|
schema: 'app_jobs',
|
|
38
21
|
hostname: 'scheduler-0',
|
|
39
22
|
supportAny: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pgpmjs/types",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.7",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "PGPM types",
|
|
6
6
|
"main": "index.js",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"makage": "^0.1.9"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "f6cb102f2d19174b4f54ed2ba0c02308b1325830"
|
|
46
46
|
}
|
package/pgpm.js
CHANGED
|
@@ -64,22 +64,10 @@ exports.pgpmDefaults = {
|
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
jobs: {
|
|
67
|
-
pg: {
|
|
68
|
-
host: 'localhost',
|
|
69
|
-
port: 5432,
|
|
70
|
-
user: 'postgres',
|
|
71
|
-
password: 'password',
|
|
72
|
-
database: 'jobs'
|
|
73
|
-
},
|
|
74
67
|
schema: {
|
|
75
68
|
schema: 'app_jobs'
|
|
76
69
|
},
|
|
77
70
|
worker: {
|
|
78
|
-
host: 'localhost',
|
|
79
|
-
port: 5432,
|
|
80
|
-
user: 'postgres',
|
|
81
|
-
password: 'password',
|
|
82
|
-
database: 'jobs',
|
|
83
71
|
schema: 'app_jobs',
|
|
84
72
|
hostname: 'worker-0',
|
|
85
73
|
supportAny: true,
|
|
@@ -88,11 +76,6 @@ exports.pgpmDefaults = {
|
|
|
88
76
|
gracefulShutdown: true
|
|
89
77
|
},
|
|
90
78
|
scheduler: {
|
|
91
|
-
host: 'localhost',
|
|
92
|
-
port: 5432,
|
|
93
|
-
user: 'postgres',
|
|
94
|
-
password: 'password',
|
|
95
|
-
database: 'jobs',
|
|
96
79
|
schema: 'app_jobs',
|
|
97
80
|
hostname: 'scheduler-0',
|
|
98
81
|
supportAny: true,
|