Is it correct that the following two are different concepts:
- a JDBC driver (e.g. a JDBC driver for PostgreSQL) and
- JavaSE's java.sql package?
Is it correct that the JavaSE's java.sql package is an API built upon a JDBC driver, to become driver-agnostic?
In C for PostgreSQL,
- what is the equivalence to a JDBC driver, and
- what is the equivalence to java.sql?
- Is libpq more like a JDBC driver for PostgreSQL or JavaSE's java.sql package?