#include <userver/storages/postgres/parameter_store.hpp>
Class for dynamic PostgreSQL parameter list construction, allows query construction on the fly.
Typical use case for this container is to keep parameters around while the query is being constructed on the fly:
Note that storages::postgres::Cluster::Execute with explicitly provided arguments works slightly faster:
Definition at line 26 of file parameter_store.hpp.
Public Member Functions | |
| ParameterStore (const ParameterStore &)=delete | |
| ParameterStore (ParameterStore &&)=default | |
| ParameterStore & | operator= (const ParameterStore &)=delete |
| ParameterStore & | operator= (ParameterStore &&)=default |
| template<typename T> | |
| ParameterStore & | PushBack (const T ¶m) |
| Adds a parameter to the end of the parameter list. | |
| bool | IsEmpty () const |
| Returns whether the parameter list is empty. | |
| size_t | Size () const |
| Returns current size of the list. | |
|
inline |
Returns whether the parameter list is empty.
Definition at line 49 of file parameter_store.hpp.
|
inline |
Adds a parameter to the end of the parameter list.
Definition at line 37 of file parameter_store.hpp.
|
inline |
Returns current size of the list.
Definition at line 52 of file parameter_store.hpp.