Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
odbccpp/odbc.h
✓ #include <odbccpp/odbc.h>
Connect to a DSN and execute a query
#include <odbccpp/odbc.h>
#include <iostream>
int main() {
odbc::Environment env;
odbc::Connection conn(env);
conn.connect("DSN=MyDSN", "user", "pass");
odbc::Statement stmt(conn);
stmt.execute("SELECT 1");
auto result = stmt.getResult();
if (result->next()) {
std::cout << result->getInt(1) << "\n";
}
return 0;
}
Debug
Known issues
No known issues recorded.
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.