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

Last change on this file since 21054 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
[7331]1/* Helper functions for pgsql access */
3/* Current middle and output-pgsql do a lot of things similarly, this should
4 * be used to abstract to commonalities */
6//#define DEBUG_PGSQL
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);
[8109]10int pgsql_exec(PGconn *sql_conn, ExecStatusType expect, const char *fmt, ...) __attribute__ ((format (printf, 3, 4)));
[7331]11void escape(char *out, int len, const char *in);
Note: See TracBrowser for help on using the repository browser.