Postgres C API
Next level of detail
int main(int argc, char **argv)
{
PGresult *res;
PGconn *cnxn;
// Connect to database jao, as user jao, with password jao
{ ... }
// Drop table A
{ ... }
// Create table A
{ ... }
// Delete all rows
{ ... }
// Insert a row
{ ... }
// Insert another row
{ ... }
// Select all rows
{ ... }
// Destroy the connection
{ ... }
return 0;
}
|