4 #include <libxml/encoding.h>
5 #include <libxml/xmlwriter.h>
12 PGresult * resAddress;
13 PGresult * resExtraTags;
16 void nominatim_export(int rank_min, int rank_max, const char *conninfo, const char *structuredoutputfile);
17 void nominatim_exportCreatePreparedQueries(PGconn * conn);
19 xmlTextWriterPtr nominatim_exportXMLStart(const char *structuredoutputfile);
20 void nominatim_exportXMLEnd(xmlTextWriterPtr writer);
22 void nominatim_exportEndMode(xmlTextWriterPtr writer);
24 void nominatim_exportPlaceQueries(uint64_t place_id, PGconn * conn, struct export_data * querySet);
25 void nominatim_exportFreeQueries(struct export_data * querySet);
27 void nominatim_exportPlace(uint64_t place_id, PGconn * conn,
28 xmlTextWriterPtr writer, pthread_mutex_t * writer_mutex, struct export_data * prevQuerySet);
29 const char * getRankLabel(int rank);