mirror of
https://github.com/SOCI/soci.git
synced 2025-12-30 09:40:04 -06:00
Fix lint problems in the docs after the recent updates
Run markdownlint and correct the problems found by it.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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<MyAwesomeContainer> : std::true_type {};
|
||||
@@ -161,8 +162,10 @@ struct ::soci::is_contiguous_resizable_container<MyAwesomeContainer> : std::true
|
||||
template<typename ValueType>
|
||||
struct ::soci::is_contiguous_resizable_container<boost::container::vector<ValueType>, std::enable_if_t<sizeof(ValueType) == sizeof(char)>> : 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<typename T, typename = std::enable_if_t<is_contiguous_resizable_container_v<T>>>
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user