userver: userver/storages/postgres/postgres_fwd.hpp Source File
Loading...
Searching...
No Matches
postgres_fwd.hpp
Go to the documentation of this file.
1#pragma once
2
3/// @file userver/storages/postgres/postgres_fwd.hpp
4/// @brief Forward declarations of some popular postgre related types
5
6#include <chrono>
7#include <functional>
8#include <memory>
9
10USERVER_NAMESPACE_BEGIN
11
12namespace storages::postgres {
13
14class Transaction;
15class ResultSet;
16class Row;
17
18class Cluster;
19
20/// @brief Smart pointer to the storages::postgres::Cluster
21using ClusterPtr = std::shared_ptr<Cluster>;
22
23namespace detail {
24class Connection;
25class ConnectionImpl;
26class ConnectionPtr;
27using ConnectionCallback = std::function<void(Connection*)>;
28
29class ResultWrapper;
30using ResultWrapperPtr = std::shared_ptr<const ResultWrapper>;
31} // namespace detail
32
33using TimeoutDuration = std::chrono::milliseconds;
34
35class DefaultCommandControls;
36
37} // namespace storages::postgres
38
39USERVER_NAMESPACE_END