programming:c:libpq
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
programming:c:libpq [2018-02-07 22:52] – Add "Linking" section zlg | programming:c:libpq [2018-07-03 01:00] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== PostgreSQL with libpq ====== | ||
+ | |||
'' | '' | ||
===== Linking ===== | ===== Linking ===== | ||
- | The '' | + | The '' |
===== Basic Connection ===== | ===== Basic Connection ===== | ||
Line 23: | 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.1518043951.txt.gz · Last modified: 2018-07-03 01:00 (external edit)