https://github.com/shuttle/shuttle.recall.sql.eventprocessing
Projection implementation backed by any Sql-based database.
https://github.com/shuttle/shuttle.recall.sql.eventprocessing
Last synced: 9 months ago
JSON representation
Projection implementation backed by any Sql-based database.
- Host: GitHub
- URL: https://github.com/shuttle/shuttle.recall.sql.eventprocessing
- Owner: Shuttle
- License: bsd-3-clause
- Created: 2017-06-28T19:37:22.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-02-01T11:06:21.000Z (11 months ago)
- Last Synced: 2025-02-02T07:28:52.316Z (11 months ago)
- Language: C#
- Size: 206 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sql Server
```
PM> Install-Package Shuttle.Recall.Sql.EventProcessing
```
A Sql Server implementation of the `Shuttle.Recall` event sourcing mechanism.
## Configuration
```c#
services.AddSqlEventProcessing(builder =>
{
builder.Options.EventProjectionConnectionStringName = "event-projection-connection-string-name";
builder.Options.EventStoreConnectionStringName = "event-store-connection-string-name";
});
services.AddEventStore(builder =>
{
builder.AddEventHandler("ProjectionName");
});
```
The default JSON settings structure is as follows:
```json
{
"Shuttle": {
"EventProcessing": {
"EventProjectionConnectionStringName": "event-projection-connection-string-name",
"EventStoreConnectionStringName": "event-store-connection-string-name"
}
}
}
```
## Database
In order to create the relevant database structures execute the relevant `ProjectionCreate.sql` script:
```
%userprofile%\.nuget\packages\shuttle.recall.sql.eventprocessing\{version}\scripts\{provider}\ProjectionCreate.sql
```
## Supported providers
- `Microsoft.Data.SqlClient`
- `System.Data.SqlClient`
If you'd like support for another SQL-based provider please feel free to give it a bash and send a pull request if you *do* go this route. You are welcome to create an issue and assistance will be provided where possible.