#ifndef POSTGRES_DEPARSE_H
#define POSTGRES_DEPARSE_H
#include <stdbool.h>
#include <sys/types.h>
typedef struct PostgresDeparseComment {
int match_location; int newlines_before_comment; int newlines_after_comment; char *str; } PostgresDeparseComment;
typedef struct PostgresDeparseOpts {
PostgresDeparseComment **comments;
size_t comment_count;
bool pretty_print;
int indent_size; int max_line_length; bool trailing_newline; bool commas_start_of_line; } PostgresDeparseOpts;
struct StringInfoData;
typedef struct StringInfoData *StringInfo;
struct RawStmt;
extern void deparseRawStmt(StringInfo str, struct RawStmt *raw_stmt);
extern void deparseRawStmtOpts(StringInfo str, struct RawStmt *raw_stmt, PostgresDeparseOpts opts);
#endif