query_utils.h 776 B

1234567891011121314151617181920212223242526
  1. /*-------------------------------------------------------------------------
  2. *
  3. * Facilities for frontend code to query a databases.
  4. *
  5. * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
  6. * Portions Copyright (c) 1994, Regents of the University of California
  7. *
  8. * src/include/fe_utils/query_utils.h
  9. *
  10. *-------------------------------------------------------------------------
  11. */
  12. #ifndef QUERY_UTILS_H
  13. #define QUERY_UTILS_H
  14. #include "postgres_fe.h"
  15. #include "libpq-fe.h"
  16. extern PGresult *executeQuery(PGconn *conn, const char *query, bool echo);
  17. extern void executeCommand(PGconn *conn, const char *query, bool echo);
  18. extern bool executeMaintenanceCommand(PGconn *conn, const char *query,
  19. bool echo);
  20. #endif /* QUERY_UTILS_H */