source: subversion/applications/utils/export/osm2pgsql/pgsql.h @ 26588

Last change on this file since 26588 was 8109, checked in by jonb, 12 years ago

osm2pgsql: Allow printf style arguments to pgsql_exec(). Use table specific temporary name during final data indexing

File size: 569 bytes
Line 
1/* Helper functions for pgsql access */
2
3/* Current middle and output-pgsql do a lot of things similarly, this should
4 * be used to abstract to commonalities */
5
6//#define DEBUG_PGSQL
7
8PGresult *pgsql_execPrepared( PGconn *sql_conn, const char *stmtName, int nParams, const char *const * paramValues, ExecStatusType expect);
9int pgsql_CopyData(const char *context, PGconn *sql_conn, const char *sql);
10int pgsql_exec(PGconn *sql_conn, ExecStatusType expect, const char *fmt, ...) __attribute__ ((format (printf, 3, 4)));
11void escape(char *out, int len, const char *in);
Note: See TracBrowser for help on using the repository browser.