userver: userver/storages/postgres/options.hpp File Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
options.hpp File Reference

Options. More...

#include <chrono>
#include <iosfwd>
#include <optional>
#include <string>
#include <unordered_map>
#include <userver/congestion_control/controllers/linear.hpp>
#include <userver/storages/postgres/postgres_fwd.hpp>
#include <userver/utils/impl/transparent_hash.hpp>
+ Include dependency graph for options.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  storages::postgres::TransactionOptions
 PostgreSQL transaction options. More...
 
struct  storages::postgres::CommandControl
 
struct  storages::postgres::TopologySettings
 
struct  storages::postgres::PoolSettings
 PostgreSQL connection pool options. More...
 
struct  storages::postgres::ConnectionSettings
 
struct  storages::postgres::StatementMetricsSettings
 PostgreSQL statements metrics options. More...
 
struct  storages::postgres::ClusterSettings
 Settings for storages::postgres::Cluster. More...
 

Namespaces

namespace  storages
 Components, clients and helpers for different databases and storages.
 
namespace  storages::postgres
 Top namespace for uPg driver.
 

Typedefs

using storages::postgres::OptionalCommandControl = std::optional< CommandControl >
 storages::postgres::CommandControl that may not be set
 
using storages::postgres::CommandControlByMethodMap = ::utils::impl::TransparentMap< std::string, CommandControl >
 
using storages::postgres::CommandControlByHandlerMap = ::utils::impl::TransparentMap< std::string, CommandControlByMethodMap >
 
using storages::postgres::CommandControlByQueryMap = std::unordered_map< std::string, CommandControl >
 

Enumerations

enum class  storages::postgres::IsolationLevel {
  storages::postgres::kReadCommitted ,
  storages::postgres::kRepeatableRead ,
  storages::postgres::kSerializable ,
  storages::postgres::kReadUncommitted
}
 SQL transaction isolation level. More...
 
enum class  storages::postgres::PipelineMode {
  kDisabled ,
  kEnabled
}
 
enum class  storages::postgres::InitMode {
  kSync = 0 ,
  kAsync
}
 Initialization modes. More...
 
enum class  ConnlimitMode {
  kManual = 0 ,
  kAuto
}
 

Functions

std::ostream & storages::postgres::operator<< (std::ostream &, IsolationLevel)
 
constexpr bool storages::postgres::operator== (const TransactionOptions &lhs, const TransactionOptions &rhs)
 
const std::string & storages::postgres::BeginStatement (const TransactionOptions &)
 
OptionalCommandControl storages::postgres::GetHandlerOptionalCommandControl (const CommandControlByHandlerMap &map, std::string_view path, std::string_view method)
 
OptionalCommandControl storages::postgres::GetQueryOptionalCommandControl (const CommandControlByQueryMap &map, const std::string &query_name)
 

Variables

static constexpr size_t storages::postgres::kDefaultPoolMinSize = 4
 Default initial pool connection count.
 
static constexpr size_t storages::postgres::kDefaultPoolMaxSize = 15
 Default pool connections limit.
 
static constexpr size_t storages::postgres::kDefaultPoolMaxQueueSize = 200
 Default size of queue for clients waiting for connections.
 
static constexpr size_t storages::postgres::kDefaultConnectingLimit = 0
 Default limit for concurrent establishing connections number.
 
static constexpr size_t storages::postgres::kDefaultMaxPreparedCacheSize = 5000
 Default size limit for prepared statements cache.
 

Detailed Description

Options.

Definition in file options.hpp.