Open mgajda opened 2 years ago
Rel8 uses hasql as a backend, not postgresql-simple, so this may give us a bit reuse if it were to happen
I only chose postgresql-simple because it seemed to be the default thing to use. Is there any strong reason for Opaleye not to migrate to Hasql in a future version?
A big unknown to me is the stability of the binary protocol in comparison to the text protocol
One huge benefit of this is that postgresql-simple
uses query string interpolation, which is both slower and more error-prone than queries with bind parameters. It would probably require an annoyingly hefty rewrite to take advantage of this in Opaleye, unfortunately, but I think it would wind up being worth it for increased security.
hasql
shows better benchmark results than PGSQL library.It would be more secure and faster, if
opaleye
could support it.@tomjaguarpaw I open the ticket in case there is a future work on this.