JasperFx / marten

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

Add AdvancedSql.StreamAsync<>() #3235

Closed e-tobi closed 4 months ago

e-tobi commented 4 months ago

There's now a new interface on IAdvancedSql that wraps all advanced sql query methods and adds new methods to stream the results via IAsyncEnumrable.

The old AdvancedSql*-methods are marked as obsolete and delegate to the new methods.

The new AdavancedSql methods are implemented as explicit interface implementations on the QuerySession class as a separate partial class. The alternative would be to make IQuerySession.Advanced return a separate implementation of IAdvancedSql. Let me know, if you prefer this and I will change the PR.