Co-authored-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech> Reviewed-on: https://git.avroid.tech/Conan/conan_build/pulls/15
18 lines
299 B
C
18 lines
299 B
C
#include "libpq-fe.h"
|
|
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
|
|
|
|
int main() {
|
|
PGconn *conn = NULL;
|
|
const int version = PQlibVersion();
|
|
printf("PQlibVersion: %d\n", version);
|
|
|
|
conn = PQconnectdb("dbname = postgres");
|
|
PQstatus(conn);
|
|
|
|
PQfinish(conn);
|
|
return EXIT_SUCCESS;
|
|
}
|