by flakiness · 5y ago · 0 comments
Deno PG [1] and MySQL [2] does it. This makes sense considering Deno's security model. But Node libs do the same [3][4]! This also kinda make sense, as node-based JS has to be async most of the time. Still it's such a hassle.
Anyways, kudos to both communities. You've done a lot!
- [1] https://deno.land/x/postgres@v0.11.2
- [2] https://deno.land/x/mysql@v2.9.0
- [3] https://github.com/brianc/node-postgres/tree/master/packages...
This phenomenon also happens in go and rust for similar reasons.
For example with JDBC:
Type 1 driver - JDBC-ODBC bridge
Type 2 driver - Native-API driver
Type 3 driver - Network-Protocol driver (Middleware driver)
Type 4 driver - Database-Protocol driver (Pure Java driver) or thin driver.
Most modern drivers are all type 4.
[4] doesn't use parameter binding; rather, it inserts escaped values into the SQL statement client-side in place of any "?" placeholders. [4] also doesn't support prepared statements. [4b] uses parameter binding, sending the SQL statement as is separate from the values, as well as supports prepared statements.