@tstdl/base 0.93.12 → 0.93.13
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/package.json +1 -1
- package/queue/postgres/drizzle/0002_dear_meggan.sql +2 -0
- package/queue/postgres/drizzle/meta/0002_snapshot.json +90 -0
- package/queue/postgres/drizzle/meta/_journal.json +7 -0
- package/queue/postgres/job.model.js +2 -2
- package/test/drizzle/0001_organic_rhodey.sql +2 -0
- package/test/drizzle/meta/0001_snapshot.json +79 -0
- package/test/drizzle/meta/_journal.json +7 -0
package/package.json
CHANGED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "74e8909c-3a81-46a3-9fe7-176e263da2df",
|
|
3
|
+
"prevId": "ecc50ddb-e593-48ae-abe8-ec5d1b8d5970",
|
|
4
|
+
"version": "7",
|
|
5
|
+
"dialect": "postgresql",
|
|
6
|
+
"tables": {
|
|
7
|
+
"queue.job": {
|
|
8
|
+
"name": "job",
|
|
9
|
+
"schema": "queue",
|
|
10
|
+
"columns": {
|
|
11
|
+
"id": {
|
|
12
|
+
"name": "id",
|
|
13
|
+
"type": "uuid",
|
|
14
|
+
"primaryKey": true,
|
|
15
|
+
"notNull": true,
|
|
16
|
+
"default": "gen_random_uuid()"
|
|
17
|
+
},
|
|
18
|
+
"queue": {
|
|
19
|
+
"name": "queue",
|
|
20
|
+
"type": "text",
|
|
21
|
+
"primaryKey": false,
|
|
22
|
+
"notNull": true
|
|
23
|
+
},
|
|
24
|
+
"tag": {
|
|
25
|
+
"name": "tag",
|
|
26
|
+
"type": "text",
|
|
27
|
+
"primaryKey": false,
|
|
28
|
+
"notNull": false
|
|
29
|
+
},
|
|
30
|
+
"priority": {
|
|
31
|
+
"name": "priority",
|
|
32
|
+
"type": "integer",
|
|
33
|
+
"primaryKey": false,
|
|
34
|
+
"notNull": true
|
|
35
|
+
},
|
|
36
|
+
"enqueue_timestamp": {
|
|
37
|
+
"name": "enqueue_timestamp",
|
|
38
|
+
"type": "timestamp with time zone",
|
|
39
|
+
"primaryKey": false,
|
|
40
|
+
"notNull": true
|
|
41
|
+
},
|
|
42
|
+
"tries": {
|
|
43
|
+
"name": "tries",
|
|
44
|
+
"type": "integer",
|
|
45
|
+
"primaryKey": false,
|
|
46
|
+
"notNull": true
|
|
47
|
+
},
|
|
48
|
+
"last_dequeue_timestamp": {
|
|
49
|
+
"name": "last_dequeue_timestamp",
|
|
50
|
+
"type": "timestamp with time zone",
|
|
51
|
+
"primaryKey": false,
|
|
52
|
+
"notNull": false
|
|
53
|
+
},
|
|
54
|
+
"data": {
|
|
55
|
+
"name": "data",
|
|
56
|
+
"type": "jsonb",
|
|
57
|
+
"primaryKey": false,
|
|
58
|
+
"notNull": true
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"indexes": {},
|
|
62
|
+
"foreignKeys": {},
|
|
63
|
+
"compositePrimaryKeys": {},
|
|
64
|
+
"uniqueConstraints": {
|
|
65
|
+
"job_queue_tag_unique": {
|
|
66
|
+
"name": "job_queue_tag_unique",
|
|
67
|
+
"nullsNotDistinct": false,
|
|
68
|
+
"columns": [
|
|
69
|
+
"queue",
|
|
70
|
+
"tag"
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"policies": {},
|
|
75
|
+
"checkConstraints": {},
|
|
76
|
+
"isRLSEnabled": false
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"enums": {},
|
|
80
|
+
"schemas": {},
|
|
81
|
+
"sequences": {},
|
|
82
|
+
"roles": {},
|
|
83
|
+
"policies": {},
|
|
84
|
+
"views": {},
|
|
85
|
+
"_meta": {
|
|
86
|
+
"columns": {},
|
|
87
|
+
"schemas": {},
|
|
88
|
+
"tables": {}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { EntityWithoutMetadata,
|
|
10
|
+
import { EntityWithoutMetadata, JsonProperty, Table, TimestampProperty, Unique } from '../../orm/index.js';
|
|
11
11
|
import { Integer, StringProperty } from '../../schema/index.js';
|
|
12
12
|
let PostgresJob = class PostgresJob extends EntityWithoutMetadata {
|
|
13
13
|
queue;
|
|
@@ -48,6 +48,6 @@ __decorate([
|
|
|
48
48
|
], PostgresJob.prototype, "data", void 0);
|
|
49
49
|
PostgresJob = __decorate([
|
|
50
50
|
Table('job'),
|
|
51
|
-
|
|
51
|
+
Unique(['queue', 'tag'])
|
|
52
52
|
], PostgresJob);
|
|
53
53
|
export { PostgresJob };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
DROP INDEX "test"."test_title_content_tags_idx";--> statement-breakpoint
|
|
2
|
+
CREATE INDEX "test_title_content_tags_idx" ON "test"."test" USING gin ((setweight(to_tsvector('simple', "title"), 'A') || setweight(to_tsvector('simple', "content"), 'B') || setweight(to_tsvector('simple', "tags"), 'C')));
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "3949ca77-11a4-4ca4-a404-1529e02d058c",
|
|
3
|
+
"prevId": "5c221821-4273-489d-b533-2f49653ab8d1",
|
|
4
|
+
"version": "7",
|
|
5
|
+
"dialect": "postgresql",
|
|
6
|
+
"tables": {
|
|
7
|
+
"test.test": {
|
|
8
|
+
"name": "test",
|
|
9
|
+
"schema": "test",
|
|
10
|
+
"columns": {
|
|
11
|
+
"id": {
|
|
12
|
+
"name": "id",
|
|
13
|
+
"type": "uuid",
|
|
14
|
+
"primaryKey": true,
|
|
15
|
+
"notNull": true,
|
|
16
|
+
"default": "gen_random_uuid()"
|
|
17
|
+
},
|
|
18
|
+
"title": {
|
|
19
|
+
"name": "title",
|
|
20
|
+
"type": "text",
|
|
21
|
+
"primaryKey": false,
|
|
22
|
+
"notNull": true
|
|
23
|
+
},
|
|
24
|
+
"content": {
|
|
25
|
+
"name": "content",
|
|
26
|
+
"type": "text",
|
|
27
|
+
"primaryKey": false,
|
|
28
|
+
"notNull": true
|
|
29
|
+
},
|
|
30
|
+
"tags": {
|
|
31
|
+
"name": "tags",
|
|
32
|
+
"type": "text",
|
|
33
|
+
"primaryKey": false,
|
|
34
|
+
"notNull": true
|
|
35
|
+
},
|
|
36
|
+
"language": {
|
|
37
|
+
"name": "language",
|
|
38
|
+
"type": "text",
|
|
39
|
+
"primaryKey": false,
|
|
40
|
+
"notNull": true
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"indexes": {
|
|
44
|
+
"test_title_content_tags_idx": {
|
|
45
|
+
"name": "test_title_content_tags_idx",
|
|
46
|
+
"columns": [
|
|
47
|
+
{
|
|
48
|
+
"expression": "(setweight(to_tsvector('simple', \"title\"), 'A') || setweight(to_tsvector('simple', \"content\"), 'B') || setweight(to_tsvector('simple', \"tags\"), 'C'))",
|
|
49
|
+
"asc": true,
|
|
50
|
+
"isExpression": true,
|
|
51
|
+
"nulls": "last"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"isUnique": false,
|
|
55
|
+
"concurrently": false,
|
|
56
|
+
"method": "gin",
|
|
57
|
+
"with": {}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"foreignKeys": {},
|
|
61
|
+
"compositePrimaryKeys": {},
|
|
62
|
+
"uniqueConstraints": {},
|
|
63
|
+
"policies": {},
|
|
64
|
+
"checkConstraints": {},
|
|
65
|
+
"isRLSEnabled": false
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"enums": {},
|
|
69
|
+
"schemas": {},
|
|
70
|
+
"sequences": {},
|
|
71
|
+
"roles": {},
|
|
72
|
+
"policies": {},
|
|
73
|
+
"views": {},
|
|
74
|
+
"_meta": {
|
|
75
|
+
"columns": {},
|
|
76
|
+
"schemas": {},
|
|
77
|
+
"tables": {}
|
|
78
|
+
}
|
|
79
|
+
}
|