#include <userver/storages/postgres/options.hpp>
|
enum | PreparedStatementOptions {
kCachePreparedStatements
,
kNoPreparedStatements
} |
|
enum | UserTypesOptions {
kUserTypesEnabled
,
kPredefinedTypesOnly
} |
|
enum | CheckQueryParamsOptions {
kIgnoreUnused
,
kCheckUnused
} |
|
using | SettingsVersion = size_t |
|
PostgreSQL connection options
Dynamic option POSTGRES_CONNECTION_SETTINGS
Definition at line 205 of file options.hpp.
◆ SettingsVersion
using storages::postgres::ConnectionSettings::SettingsVersion = size_t |
◆ CheckQueryParamsOptions
enum storages::postgres::ConnectionSettings::CheckQueryParamsOptions |
◆ PreparedStatementOptions
enum storages::postgres::ConnectionSettings::PreparedStatementOptions |
◆ UserTypesOptions
enum storages::postgres::ConnectionSettings::UserTypesOptions |
◆ operator!=()
bool storages::postgres::ConnectionSettings::operator!= |
( |
const ConnectionSettings & |
rhs | ) |
const |
|
inline |
◆ operator==()
bool storages::postgres::ConnectionSettings::operator== |
( |
const ConnectionSettings & |
rhs | ) |
const |
|
inline |
◆ RequiresConnectionReset()
bool storages::postgres::ConnectionSettings::RequiresConnectionReset |
( |
const ConnectionSettings & |
rhs | ) |
const |
|
inline |
◆ ignore_unused_query_params
CheckQueryParamsOptions storages::postgres::ConnectionSettings::ignore_unused_query_params = kCheckUnused |
Checks for not-NULL query params that are not used in query.
Definition at line 227 of file options.hpp.
◆ max_prepared_cache_size
Limits the size or prepared statements cache.
Definition at line 230 of file options.hpp.
◆ pipeline_mode
PipelineMode storages::postgres::ConnectionSettings::pipeline_mode = PipelineMode::kDisabled |
Turns on connection pipeline mode.
Definition at line 233 of file options.hpp.
◆ prepared_statements
PreparedStatementOptions storages::postgres::ConnectionSettings::prepared_statements = kCachePreparedStatements |
Cache prepared statements or not.
Definition at line 221 of file options.hpp.
◆ recent_errors_threshold
size_t storages::postgres::ConnectionSettings::recent_errors_threshold = 2 |
This many connection errors in 15 seconds block new connections opening.
Definition at line 236 of file options.hpp.
◆ user_types
UserTypesOptions storages::postgres::ConnectionSettings::user_types = kUserTypesEnabled |
Enables the usage of user-defined types.
Definition at line 224 of file options.hpp.
◆ version
SettingsVersion storages::postgres::ConnectionSettings::version {0U} |
Helps keep track of the changes in settings.
Definition at line 239 of file options.hpp.
The documentation for this struct was generated from the following file: