3 ms·
Yes, that's correct. `http.ListenAndServe()` doesn't return until the web listener is stopped. This is actually the intended usage of `sql.Open()`: https://gol
by stygiansonic 10y ago
Yes, that's correct. `http.ListenAndServe()` doesn't return until the web listener is stopped.
This is actually the intended usage of `sql.Open()`: https://golang.org/pkg/database/sql/#Open https://golang.org/pkg/database/sql/#Open (it maintains its own connection pool and is safe for concurrent use)