Which one to use postgres vs. sqlx

The sqlx library includes some code that it runs during compile time to verify that an SQL query is valid syntax. This is part of its macro.

Yes, for libraries that don't include pool management, you typically want bb8 for async code or r2d2 for non-async code.

2 Likes