File: pgsql.h

package info (click to toggle)
osm2pgsql 0.80.0%2Br27899-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 964 kB
  • sloc: ansic: 8,824; cpp: 731; sh: 672; makefile: 74; sql: 1
file content (11 lines) | stat: -rw-r--r-- 569 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
/* Helper functions for pgsql access */

/* Current middle and output-pgsql do a lot of things similarly, this should
 * be used to abstract to commonalities */

//#define DEBUG_PGSQL

PGresult *pgsql_execPrepared( PGconn *sql_conn, const char *stmtName, int nParams, const char *const * paramValues, ExecStatusType expect);
int pgsql_CopyData(const char *context, PGconn *sql_conn, const char *sql);
int pgsql_exec(PGconn *sql_conn, ExecStatusType expect, const char *fmt, ...) __attribute__ ((format (printf, 3, 4)));
void escape(char *out, int len, const char *in);