12345678910111213141516171819202122232425262728293031323334353637 |
- #ifndef BOOST_MYSQL_DETAIL_OK_VIEW_HPP
- #define BOOST_MYSQL_DETAIL_OK_VIEW_HPP
- #include <boost/mysql/string_view.hpp>
- #include <boost/mysql/detail/flags.hpp>
- #include <cstdint>
- namespace boost {
- namespace mysql {
- namespace detail {
- struct ok_view
- {
- std::uint64_t affected_rows;
- std::uint64_t last_insert_id;
- std::uint16_t status_flags;
- std::uint16_t warnings;
- string_view info;
- bool more_results() const noexcept { return status_flags & status_flags::more_results; }
- bool is_out_params() const noexcept { return status_flags & status_flags::out_params; }
- };
- }
- }
- }
- #endif
|