Skip to content

Commit 3867ad5

Browse files
authored
update watermill-sql to v2 (ThreeDotsLabs#371)
1 parent 7c01195 commit 3867ad5

File tree

32 files changed

+103
-1344
lines changed

32 files changed

+103
-1344
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Supported Pub/Subs:
101101
- Kafka Pub/Sub [(`github.com/ThreeDotsLabs/watermill-kafka/v2`)](https://github.com/ThreeDotsLabs/watermill-kafka/)
102102
- NATS Pub/Sub [(`github.com/ThreeDotsLabs/watermill-nats`)](https://github.com/ThreeDotsLabs/watermill-nats/)
103103
- Redis Stream Pub/Sub [(`github.com/ThreeDotsLabs/watermill-redisstream`)](https://github.com/ThreeDotsLabs/watermill-redisstream/)
104-
- SQL Pub/Sub [(`github.com/ThreeDotsLabs/watermill-sql`)](https://github.com/ThreeDotsLabs/watermill-sql/)
104+
- SQL Pub/Sub [(`github.com/ThreeDotsLabs/watermill-sql/v2`)](https://github.com/ThreeDotsLabs/watermill-sql/)
105105

106106

107107
All Pub/Subs implementation documentation can be found in the [documentation](https://watermill.io/pubsubs/).

_examples/pubsubs/sql/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: '3'
22
services:
33
server:
4-
image: golang:1.19
4+
image: golang:1.20
55
restart: unless-stopped
66
depends_on:
77
- mysql

_examples/pubsubs/sql/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ module main.go
33
go 1.19
44

55
require (
6-
github.com/ThreeDotsLabs/watermill v1.2.0-rc.11
7-
github.com/ThreeDotsLabs/watermill-sql v1.3.8
6+
github.com/ThreeDotsLabs/watermill v1.3.1
7+
github.com/ThreeDotsLabs/watermill-sql/v2 v2.0.0
88
github.com/go-sql-driver/mysql v1.7.0
99
)
1010

_examples/pubsubs/sql/go.sum

Lines changed: 7 additions & 194 deletions
Large diffs are not rendered by default.

_examples/pubsubs/sql/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
driver "github.com/go-sql-driver/mysql"
1111

1212
"github.com/ThreeDotsLabs/watermill"
13-
"github.com/ThreeDotsLabs/watermill-sql/pkg/sql"
13+
"github.com/ThreeDotsLabs/watermill-sql/v2/pkg/sql"
1414
"github.com/ThreeDotsLabs/watermill/message"
1515
)
1616

_examples/real-world-examples/exactly-once-delivery-counter/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: '3'
22
services:
33
server:
4-
image: golang:1.19
4+
image: golang:1.20
55
restart: unless-stopped
66
ports:
77
- 8080:8080
@@ -12,7 +12,7 @@ services:
1212
command: 'go run .'
1313

1414
worker:
15-
image: golang:1.19
15+
image: golang:1.20
1616
restart: unless-stopped
1717
volumes:
1818
- ./worker:/app

_examples/real-world-examples/exactly-once-delivery-counter/server/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ module exactly-once-delivery
33
go 1.19
44

55
require (
6-
github.com/ThreeDotsLabs/watermill v1.2.0-rc.11
7-
github.com/ThreeDotsLabs/watermill-sql v1.3.8
6+
github.com/ThreeDotsLabs/watermill v1.3.1
7+
github.com/ThreeDotsLabs/watermill-sql/v2 v2.0.0
88
github.com/go-chi/chi/v5 v5.0.8
99
github.com/go-sql-driver/mysql v1.7.0
1010
)

_examples/real-world-examples/exactly-once-delivery-counter/server/go.sum

Lines changed: 7 additions & 194 deletions
Large diffs are not rendered by default.

_examples/real-world-examples/exactly-once-delivery-counter/server/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"net/http"
88

99
"github.com/ThreeDotsLabs/watermill"
10-
"github.com/ThreeDotsLabs/watermill-sql/pkg/sql"
10+
"github.com/ThreeDotsLabs/watermill-sql/v2/pkg/sql"
1111
"github.com/ThreeDotsLabs/watermill/message"
1212
"github.com/go-chi/chi/v5"
1313
"github.com/go-chi/chi/v5/middleware"

_examples/real-world-examples/exactly-once-delivery-counter/worker/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ module exactly-once-delivery
33
go 1.19
44

55
require (
6-
github.com/ThreeDotsLabs/watermill v1.2.0-rc.11
7-
github.com/ThreeDotsLabs/watermill-sql v1.3.8
6+
github.com/ThreeDotsLabs/watermill v1.3.1
7+
github.com/ThreeDotsLabs/watermill-sql/v2 v2.0.0
88
github.com/go-sql-driver/mysql v1.7.0
99
github.com/pkg/errors v0.9.1
1010
)

0 commit comments

Comments
 (0)