|
|
|
|
|
by suremarc
1402 days ago
|
|
Just return an io.Reader that wraps the DB cursor and outputs CSV data... I fail to see what makes this so difficult. If the "mutable" approach involves passing down a mutable *http.ResponseWriter, then the dual approach of passing an io.Reader upstream is equivalent. |
|
https://flask.palletsprojects.com/en/2.2.x/patterns/streamin...