Skip to content

Commit 7cb11df

Browse files
Version Packages
1 parent 92c0032 commit 7cb11df

12 files changed

Lines changed: 174 additions & 50 deletions

File tree

.changeset/crazy-colts-march.md

Lines changed: 0 additions & 40 deletions
This file was deleted.

.changeset/upset-symbols-thank.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/adapter-drizzle/CHANGELOG.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,47 @@
11
# @vorsteh-queue/adapter-drizzle
22

3+
## 0.5.0
4+
5+
### Minor Changes
6+
7+
- aa22a40: ## Dynamic Schema & Table Names
8+
- All adapters (Drizzle, Kysely, Prisma) now support configurable schema and table names for queue jobs.
9+
- Enables an easier integration in existing DB setups.
10+
11+
## Example: Drizzle Adapter with Custom Schema & Table
12+
13+
```typescript
14+
// drizzle-schema.ts
15+
import { createQueueJobsTable } from "@vorsteh-queue/adapter-drizzle"
16+
17+
export const { table: customQueueJobs, schema: customSchema } = createQueueJobsTable(
18+
"custom_queue_jobs",
19+
"custom_schema",
20+
)
21+
22+
// queue.ts
23+
import { drizzle } from "drizzle-orm/node-postgres"
24+
import { Pool } from "pg"
25+
import * as schema from "src/drizzle-schema.ts2
26+
27+
import { PostgresQueueAdapter } from "@vorsteh-queue/adapter-drizzle"
28+
29+
const pool = new Pool({ connectionString: process.env.DATABASE_URL })
30+
const db = drizzle(pool, { schema })
31+
32+
const adapter = new PostgresQueueAdapter(db, {
33+
modelName: "customQueueJobs",
34+
})
35+
36+
// The queue will now use the specified schema and table
37+
const queue = new Queue(adapter, { name: "my-queue" })
38+
```
39+
40+
### Patch Changes
41+
42+
- Updated dependencies [aa22a40]
43+
- @vorsteh-queue/core@0.5.0
44+
345
## 0.4.0
446

547
### Minor Changes

packages/adapter-drizzle/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vorsteh-queue/adapter-drizzle",
3-
"version": "0.4.0",
3+
"version": "0.5.0",
44
"description": "Drizzle ORM adapter for Vorsteh Queue with PostgreSQL support",
55
"keywords": [
66
"queue",

packages/adapter-kysely/CHANGELOG.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,47 @@
11
# @vorsteh-queue/adapter-kysely
22

3+
## 0.3.0
4+
5+
### Minor Changes
6+
7+
- aa22a40: ## Dynamic Schema & Table Names
8+
- All adapters (Drizzle, Kysely, Prisma) now support configurable schema and table names for queue jobs.
9+
- Enables an easier integration in existing DB setups.
10+
11+
## Example: Drizzle Adapter with Custom Schema & Table
12+
13+
```typescript
14+
// drizzle-schema.ts
15+
import { createQueueJobsTable } from "@vorsteh-queue/adapter-drizzle"
16+
17+
export const { table: customQueueJobs, schema: customSchema } = createQueueJobsTable(
18+
"custom_queue_jobs",
19+
"custom_schema",
20+
)
21+
22+
// queue.ts
23+
import { drizzle } from "drizzle-orm/node-postgres"
24+
import { Pool } from "pg"
25+
import * as schema from "src/drizzle-schema.ts2
26+
27+
import { PostgresQueueAdapter } from "@vorsteh-queue/adapter-drizzle"
28+
29+
const pool = new Pool({ connectionString: process.env.DATABASE_URL })
30+
const db = drizzle(pool, { schema })
31+
32+
const adapter = new PostgresQueueAdapter(db, {
33+
modelName: "customQueueJobs",
34+
})
35+
36+
// The queue will now use the specified schema and table
37+
const queue = new Queue(adapter, { name: "my-queue" })
38+
```
39+
40+
### Patch Changes
41+
42+
- Updated dependencies [aa22a40]
43+
- @vorsteh-queue/core@0.5.0
44+
345
## 0.2.0
446

547
### Minor Changes

packages/adapter-kysely/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vorsteh-queue/adapter-kysely",
3-
"version": "0.2.0",
3+
"version": "0.3.0",
44
"description": "Kysely adapter for Vorsteh Queue with PostgreSQL support",
55
"keywords": [
66
"queue",

packages/adapter-prisma/CHANGELOG.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,47 @@
11
# @vorsteh-queue/adapter-prisma
22

3+
## 0.4.0
4+
5+
### Minor Changes
6+
7+
- aa22a40: ## Dynamic Schema & Table Names
8+
- All adapters (Drizzle, Kysely, Prisma) now support configurable schema and table names for queue jobs.
9+
- Enables an easier integration in existing DB setups.
10+
11+
## Example: Drizzle Adapter with Custom Schema & Table
12+
13+
```typescript
14+
// drizzle-schema.ts
15+
import { createQueueJobsTable } from "@vorsteh-queue/adapter-drizzle"
16+
17+
export const { table: customQueueJobs, schema: customSchema } = createQueueJobsTable(
18+
"custom_queue_jobs",
19+
"custom_schema",
20+
)
21+
22+
// queue.ts
23+
import { drizzle } from "drizzle-orm/node-postgres"
24+
import { Pool } from "pg"
25+
import * as schema from "src/drizzle-schema.ts2
26+
27+
import { PostgresQueueAdapter } from "@vorsteh-queue/adapter-drizzle"
28+
29+
const pool = new Pool({ connectionString: process.env.DATABASE_URL })
30+
const db = drizzle(pool, { schema })
31+
32+
const adapter = new PostgresQueueAdapter(db, {
33+
modelName: "customQueueJobs",
34+
})
35+
36+
// The queue will now use the specified schema and table
37+
const queue = new Queue(adapter, { name: "my-queue" })
38+
```
39+
40+
### Patch Changes
41+
42+
- Updated dependencies [aa22a40]
43+
- @vorsteh-queue/core@0.5.0
44+
345
## 0.3.0
446

547
### Minor Changes

packages/adapter-prisma/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vorsteh-queue/adapter-prisma",
3-
"version": "0.3.0",
3+
"version": "0.4.0",
44
"description": "Prisma ORM adapter for Vorsteh Queue with PostgreSQL support",
55
"keywords": [
66
"queue",

packages/core/CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,42 @@
11
# @vorsteh-queue/core
22

3+
## 0.5.0
4+
5+
### Minor Changes
6+
7+
- aa22a40: ## Dynamic Schema & Table Names
8+
- All adapters (Drizzle, Kysely, Prisma) now support configurable schema and table names for queue jobs.
9+
- Enables an easier integration in existing DB setups.
10+
11+
## Example: Drizzle Adapter with Custom Schema & Table
12+
13+
```typescript
14+
// drizzle-schema.ts
15+
import { createQueueJobsTable } from "@vorsteh-queue/adapter-drizzle"
16+
17+
export const { table: customQueueJobs, schema: customSchema } = createQueueJobsTable(
18+
"custom_queue_jobs",
19+
"custom_schema",
20+
)
21+
22+
// queue.ts
23+
import { drizzle } from "drizzle-orm/node-postgres"
24+
import { Pool } from "pg"
25+
import * as schema from "src/drizzle-schema.ts2
26+
27+
import { PostgresQueueAdapter } from "@vorsteh-queue/adapter-drizzle"
28+
29+
const pool = new Pool({ connectionString: process.env.DATABASE_URL })
30+
const db = drizzle(pool, { schema })
31+
32+
const adapter = new PostgresQueueAdapter(db, {
33+
modelName: "customQueueJobs",
34+
})
35+
36+
// The queue will now use the specified schema and table
37+
const queue = new Queue(adapter, { name: "my-queue" })
38+
```
39+
340
## 0.4.0
441

542
### Minor Changes

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vorsteh-queue/core",
3-
"version": "0.4.0",
3+
"version": "0.5.0",
44
"description": "Core queue engine for Vorsteh Queue with TypeScript support, job scheduling, and event system",
55
"keywords": [
66
"queue",

0 commit comments

Comments
 (0)