Skip to content

Commit a0da577

Browse files
authored
Add SQL Server to example
1 parent 4f07577 commit a0da577

File tree

1 file changed

+49
-2
lines changed

1 file changed

+49
-2
lines changed

README.md

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,22 @@ services:
6868
development-network:
6969
ipv4_address: 172.43.0.104
7070

71+
sqlserver-events:
72+
image: mcr.microsoft.com/mssql/server:2022-latest
73+
container_name: sqlserver-events
74+
restart: always
75+
volumes:
76+
- ./data/sqlserver-event-store:/var/opt/mssql
77+
environment:
78+
ACCEPT_EULA: "Y"
79+
SA_PASSWORD: my_password
80+
MSSQL_PID: Express
81+
expose:
82+
- 1433
83+
networks:
84+
development-network:
85+
ipv4_address: 172.43.0.105
86+
7187
backend-server:
7288
image: your-backend-server-image
7389
container_name: backend-server
@@ -141,6 +157,29 @@ data_sources:
141157
autoIncrementingColumn: id
142158
partitioningColumn: correlation_id
143159
160+
- id: sqlserver_source
161+
description: Events Table in SQL Server
162+
type: sqlserver
163+
host: 172.43.0.105
164+
port: 1433
165+
username: sa
166+
password: my_password
167+
database: master
168+
table: events_table
169+
columns:
170+
- id
171+
- event_id
172+
- event_name
173+
- aggregate_id
174+
- aggregate_version
175+
- json_payload
176+
- json_metadata
177+
- recorded_on
178+
- causation_id
179+
- correlation_id
180+
autoIncrementingColumn: id
181+
partitioningColumn: correlation_id
182+
144183
# Connections to your endpoints.
145184
# The Emulator will send data it reads from the databases to these endpoints.
146185
data_destinations:
@@ -161,7 +200,16 @@ data_destinations:
161200
username: http-username-123
162201
password: http-password-123
163202
sources:
164-
- mysql-source
203+
- mysql_source
204+
205+
- id: projection_3
206+
description: Projection 3
207+
type: http-push
208+
endpoint: http://172.30.0.199:8080/projections/projection-3
209+
username: http-username-123
210+
password: http-password-123
211+
sources:
212+
- sqlserver_source
165213
```
166214

167215
### Payloads
@@ -204,7 +252,6 @@ The Emulator will move on to the next message if the endpoint replies with an ac
204252

205253
## Upcoming Features:
206254

207-
- [ ] Add support for SQL Server
208255
- [ ] Add support for filtering
209256
- [ ] Add support for Oracle
210257
- [ ] Add support for MongoDB

0 commit comments

Comments
 (0)