diff --git a/docs/logging.md b/docs/logging.md index 3c29e7a5..2d51c8e9 100644 --- a/docs/logging.md +++ b/docs/logging.md @@ -35,10 +35,11 @@ multiple queries. Logging of query parameters is **enabled by default** but can at any time be adjusted to your needs by using the `set_query_context_logging_mode` function of the `session` object. For instance -```cpp -sql.set_query_context_logging_mode(log_context::on_error); -``` + + sql.set_query_context_logging_mode(log_context::on_error); + Possible values are + * `log_context::always` - Always cache the bound parameters of queries (the default) * `log_context::never` - Never cache bound parameters. This also ensures that bound parameters are not part of exception messages. It is therefore suitable for queries that bind sensitive information that must not be leaked. diff --git a/docs/types.md b/docs/types.md index dedccd33..4c95c5af 100644 --- a/docs/types.md +++ b/docs/types.md @@ -154,6 +154,7 @@ into the provided container. If you want to use a different container than the ones mentioned above, you need to specialize the `soci::is_contiguous_resizable_container` trait. E.g. + ```cpp template<> struct ::soci::is_contiguous_resizable_container : std::true_type {}; @@ -161,8 +162,10 @@ struct ::soci::is_contiguous_resizable_container : std::true template struct ::soci::is_contiguous_resizable_container, std::enable_if_t> : std::true_type {}; ``` + Potentially, you may also need to specialize the `soci::contiguous_resizable_container_accessor` struct, if the default implementation doesn't work for your custom container type: + ```cpp template>> struct contiguous_resizable_container_accessor @@ -182,7 +185,6 @@ struct contiguous_resizable_container_accessor }; ``` - ### Indicators The `row` also provides access to indicators for each column: