EdwinVW / pitstop

This repo contains a sample application based on a Garage Management System for Pitstop - a fictitious garage. The primary goal of this sample is to demonstrate several software-architecture concepts like: Microservices, CQRS, Event Sourcing, Domain Driven Design (DDD), Eventual Consistency.
Apache License 2.0
1.08k stars 472 forks source link

Where WorkshopManagement database is created #118

Closed CodeWithKashif closed 2 years ago

CodeWithKashif commented 2 years ago

Hi

I have one quick question that I can see where WorkshopManagementEventStore databse is being created but i am unable to locate where WorkshopManagement db is being created

// create database string sql = "IF NOT EXISTS(SELECT * FROM master.sys.databases WHERE name='WorkshopManagementEventStore') CREATE DATABASE WorkshopManagementEventStore;"; conn.Execute(sql);

EdwinVW commented 2 years ago

Hi @CodeWithKashif.

This database is created by the WorkshopManagementEventHandler. This is the service that fills the readmodels in this database by ingesting events from the message broker.