2
0
mirror of https://github.com/boostorg/mysql.git synced 2026-01-30 20:12:17 +00:00
Files
mysql/include/mysql/impl/query.hpp
ruben 0cf0be1005 Added first version of query (text protocol)
Added deserialize_text_row
Added deserialize_text_value
Added execute_query
Added fetch_text_row
Added resultset
Added connection::query
2019-11-08 20:31:31 +00:00

44 lines
802 B
C++

#ifndef INCLUDE_MYSQL_IMPL_QUERY_HPP_
#define INCLUDE_MYSQL_IMPL_QUERY_HPP_
#include "mysql/resultset.hpp"
#include "mysql/impl/capabilities.hpp"
#include <string_view>
namespace mysql
{
namespace detail
{
enum class fetch_result
{
error,
row,
eof
};
template <typename ChannelType, typename Allocator>
void execute_query(
ChannelType& channel,
std::string_view query,
resultset<ChannelType, Allocator>& output,
error_code& err
);
template <typename ChannelType, typename Allocator>
fetch_result fetch_text_row(
ChannelType& channel,
const resultset_metadata<Allocator>& meta,
bytestring<Allocator>& buffer,
std::vector<value>& output_values,
msgs::ok_packet& output_ok_packet,
error_code& err
);
}
}
#include "mysql/impl/query_impl.hpp"
#endif /* INCLUDE_MYSQL_IMPL_QUERY_HPP_ */