summaryrefslogtreecommitdiff
path: root/libpqpp/pq-prepared.h
blob: 4da04ea7db76766b95b64c8af306a06eab089137 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef stuff
#define stuff

#include "command_fwd.h"
#include "pq-command.h"
#include <c++11Helpers.h>
#include <string>

namespace PQ {
	class Connection;

	class PreparedStatement : public Command {
	public:
		~PreparedStatement() override = default;
		SPECIAL_MEMBERS_DELETE(PreparedStatement);

	protected:
		PreparedStatement(Connection *, const std::string &, const DB::CommandOptionsCPtr &);

		const char * prepare() const;
		mutable const char * pstmt;
	};
}

#endif