programming:c:libpq
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
programming:c:libpq [2018-02-07 22:50] – created zlg | programming:c:libpq [2018-07-03 01:00] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== PostgreSQL with libpq ====== | ||
+ | |||
'' | '' | ||
+ | |||
+ | ===== Linking ===== | ||
+ | |||
+ | The '' | ||
===== Basic Connection ===== | ===== Basic Connection ===== | ||
Line 19: | Line 25: | ||
int main(int argc, char **argv) { | int main(int argc, char **argv) { | ||
+ | // create what we need to connect: the db connection structure and its options | ||
PGconn *conn; | PGconn *conn; | ||
const char *dbopts; | const char *dbopts; |
programming/c/libpq.1518043843.txt.gz · Last modified: 2018-07-03 01:00 (external edit)