ThreeDotsLabs / esja

Event Sourcing library in Go.
MIT License
19 stars 4 forks source link

Make "initialize schema" optional in SQLStore #11

Open m110 opened 1 year ago

m110 commented 1 year ago

SQLStore initializes the schema on each instantiation now.

Like in watermill-sql, let's introduce a setting for this in the SQLConfig.

watermill-sql also checks if the passed db is not a Tx in which case the schema would implicitly commit the ongoing transaction.