use pt::Stream instead of pt::TextStream as the output stream
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2018-2023, Tomasz Sowa
|
||||
* Copyright (c) 2018-2024, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -55,21 +55,21 @@ public:
|
||||
virtual ~PostgreSQLConnector();
|
||||
|
||||
|
||||
bool query(const pt::TextStream & stream, QueryResult & query_result);
|
||||
bool query(const char * query_str, QueryResult & query_result);
|
||||
bool query(const std::string & query_str, QueryResult & query_result);
|
||||
bool query(const pt::Stream & stream, QueryResult & query_result) override;
|
||||
bool query(const char * query_str, QueryResult & query_result) override;
|
||||
bool query(const std::string & query_str, QueryResult & query_result) override;
|
||||
|
||||
bool query_select(const char * query_str, QueryResult & query_result);
|
||||
bool query_update(const char * query_str, QueryResult & query_result);
|
||||
bool query_insert(const char * query_str, QueryResult & query_result);
|
||||
bool query_remove(const char * query_str, QueryResult & query_result);
|
||||
bool query_declare_cursor(const char * query_str, QueryResult & query_result);
|
||||
bool query_select(const char * query_str, QueryResult & query_result) override;
|
||||
bool query_update(const char * query_str, QueryResult & query_result) override;
|
||||
bool query_insert(const char * query_str, QueryResult & query_result) override;
|
||||
bool query_remove(const char * query_str, QueryResult & query_result) override;
|
||||
bool query_declare_cursor(const char * query_str, QueryResult & query_result) override;
|
||||
|
||||
bool query_select(const pt::TextStream & stream, QueryResult & query_result);
|
||||
bool query_update(const pt::TextStream & stream, QueryResult & query_result);
|
||||
bool query_insert(const pt::TextStream & stream, QueryResult & query_result);
|
||||
bool query_remove(const pt::TextStream & stream, QueryResult & query_result);
|
||||
bool query_declare_cursor(const pt::TextStream & stream, QueryResult & query_result);
|
||||
bool query_select(const pt::Stream & stream, QueryResult & query_result) override;
|
||||
bool query_update(const pt::Stream & stream, QueryResult & query_result) override;
|
||||
bool query_insert(const pt::Stream & stream, QueryResult & query_result) override;
|
||||
bool query_remove(const pt::Stream & stream, QueryResult & query_result) override;
|
||||
bool query_declare_cursor(const pt::Stream & stream, QueryResult & query_result) override;
|
||||
|
||||
/*
|
||||
* https://www.postgresql.org/docs/14/libpq-connect.html#LIBPQ-CONNSTRING
|
||||
@@ -147,18 +147,19 @@ protected:
|
||||
|
||||
virtual bool do_query(const char * query_str, PostgreSQLQueryResult * psql_result);
|
||||
virtual bool query_command(const char * query_str, QueryResult & query_result, ExecStatusType expected_status);
|
||||
virtual void allocate_default_expression();
|
||||
virtual void allocate_default_expression() override;
|
||||
virtual void overwrite(pt::TextStream & stream);
|
||||
virtual const char * query_last_sequence(const wchar_t * sequence_table_name);
|
||||
virtual QueryResult * create_query_result();
|
||||
virtual void overwrite(pt::WTextStream & stream);
|
||||
virtual const char * query_last_sequence(const wchar_t * sequence_table_name) override;
|
||||
virtual QueryResult * create_query_result() override;
|
||||
|
||||
void log_unsupported_bin_format();
|
||||
|
||||
void unescape_bin_char(const char * str, char & field_value);
|
||||
void unescape_bin_char(const char * str, wchar_t & field_value);
|
||||
void unescape_bin_char(const char * str, char & field_value) override;
|
||||
void unescape_bin_char(const char * str, wchar_t & field_value) override;
|
||||
|
||||
void unescape_bin_string(const char * str, std::string & out);
|
||||
void unescape_bin_string(const char * str, std::wstring & out);
|
||||
void unescape_bin_string(const char * str, std::string & out) override;
|
||||
void unescape_bin_string(const char * str, std::wstring & out) override;
|
||||
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user