JasperFx / marten

.NET Transactional Document DB and Event Store on PostgreSQL
https://martendb.io
MIT License
2.87k stars 457 forks source link

IMartenStorage.WriteCreationScriptToFile - Failed to connect to 127.0.0.1:5432 #3529

Closed cocowalla closed 3 weeks ago

cocowalla commented 3 weeks ago

A recent change to Weasel.Core has broken IMartenStorage.WriteCreationScriptToFile.

The problem is that Weasel.Core's DatabaseBase.WriteCreationScriptToFileAsync now requires a real database connection, but Marten always uses a nullo database for WriteCreationScriptToFile.

jeremydmiller commented 3 weeks ago

Patch of sorts coming w/ some weasel changes. The changes you referred to are when Weasel needs to use database managed partitioning. Just having Weasel bypass that when it can

cocowalla commented 3 weeks ago

Just confirming that the fix works - thanks! 👍