Skip to content

difference between sql_package and sql_driver #4215

@EmpathyZeroed

Description

@EmpathyZeroed

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions