sqlc icon indicating copy to clipboard operation
sqlc copied to clipboard

difference between sql_package and sql_driver

Open EmpathyZeroed opened this issue 2 weeks ago • 0 comments

https://docs.sqlc.dev/en/latest/reference/config.html sqlc.yaml description of these settings is unclear, sorry for creating the issue but discord and github q/a are dead

for instance, isn't pgx itself IS a driver? But in practice you only required to specify sql_package

  1. so what's the heck is sql_driver setting then?
  2. what will happen if I specify only sql_package and omit sql_driver?
  3. if I'm using pgx connection pool - do I need to set sql_driver to pgx?
  4. why would anyone use sql_package as pgx and sql_driver as lib/pq?

EmpathyZeroed avatar Dec 03 '25 11:12 EmpathyZeroed