Skip to content

Commit

Permalink
Add SQL Server to example
Browse files Browse the repository at this point in the history
  • Loading branch information
galeaspablo authored Dec 13, 2024
1 parent 4f07577 commit a0da577
Showing 1 changed file with 49 additions and 2 deletions.
51 changes: 49 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,22 @@ services:
development-network:
ipv4_address: 172.43.0.104

sqlserver-events:
image: mcr.microsoft.com/mssql/server:2022-latest
container_name: sqlserver-events
restart: always
volumes:
- ./data/sqlserver-event-store:/var/opt/mssql
environment:
ACCEPT_EULA: "Y"
SA_PASSWORD: my_password
MSSQL_PID: Express
expose:
- 1433
networks:
development-network:
ipv4_address: 172.43.0.105

backend-server:
image: your-backend-server-image
container_name: backend-server
Expand Down Expand Up @@ -141,6 +157,29 @@ data_sources:
autoIncrementingColumn: id
partitioningColumn: correlation_id
- id: sqlserver_source
description: Events Table in SQL Server
type: sqlserver
host: 172.43.0.105
port: 1433
username: sa
password: my_password
database: master
table: events_table
columns:
- id
- event_id
- event_name
- aggregate_id
- aggregate_version
- json_payload
- json_metadata
- recorded_on
- causation_id
- correlation_id
autoIncrementingColumn: id
partitioningColumn: correlation_id
# Connections to your endpoints.
# The Emulator will send data it reads from the databases to these endpoints.
data_destinations:
Expand All @@ -161,7 +200,16 @@ data_destinations:
username: http-username-123
password: http-password-123
sources:
- mysql-source
- mysql_source
- id: projection_3
description: Projection 3
type: http-push
endpoint: http://172.30.0.199:8080/projections/projection-3
username: http-username-123
password: http-password-123
sources:
- sqlserver_source
```

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

## Upcoming Features:

- [ ] Add support for SQL Server
- [ ] Add support for filtering
- [ ] Add support for Oracle
- [ ] Add support for MongoDB
Expand Down

0 comments on commit a0da577

Please sign in to comment.