Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:42:39

0001 //
0002 // Copyright (c) 2019-2023 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
0003 //
0004 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0005 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 //
0007 
0008 #ifndef BOOST_MYSQL_DETAIL_OK_VIEW_HPP
0009 #define BOOST_MYSQL_DETAIL_OK_VIEW_HPP
0010 
0011 #include <boost/mysql/string_view.hpp>
0012 
0013 #include <boost/mysql/detail/flags.hpp>
0014 
0015 #include <cstdint>
0016 
0017 namespace boost {
0018 namespace mysql {
0019 namespace detail {
0020 
0021 struct ok_view
0022 {
0023     std::uint64_t affected_rows;
0024     std::uint64_t last_insert_id;
0025     std::uint16_t status_flags;
0026     std::uint16_t warnings;
0027     string_view info;
0028 
0029     bool more_results() const noexcept { return status_flags & status_flags::more_results; }
0030     bool is_out_params() const noexcept { return status_flags & status_flags::out_params; }
0031 };
0032 
0033 }  // namespace detail
0034 }  // namespace mysql
0035 }  // namespace boost
0036 
0037 #endif