How DearSQL talks to PostgreSQL in a few hundred lines of C++ — connection string, PQsendQuery, and a tiny RAII wrapper.