2
0
mirror of https://github.com/boostorg/mysql.git synced 2026-02-14 12:52:17 +00:00

Added basic quit

This commit is contained in:
ruben
2020-04-21 19:47:21 +01:00
parent ff14e79a5d
commit f49ff4dc1f
11 changed files with 215 additions and 9 deletions

View File

@@ -133,6 +133,15 @@ public:
return r.fetch_all(code, info);
});
}
network_result<no_result> quit(
connection_type& conn
) override
{
return impl([&](error_code& code, error_info& info) {
conn.quit(code, info);
return no_result();
});
}
};
template <typename Stream>
@@ -240,6 +249,15 @@ public:
return r.fetch_all();
});
}
network_result<no_result> quit(
connection_type& conn
) override
{
return impl([&] {
conn.quit();
return no_result();
});
}
};
template <typename Stream>
@@ -381,6 +399,14 @@ public:
return r.async_fetch_all(std::forward<decltype(token)>(token), info);
});
}
network_result<no_result> quit(
connection_type& conn
) override
{
return impl<no_result>([&](auto&& token, error_info* info) {
return conn.async_quit(std::forward<decltype(token)>(token), info);
});
}
};
template <typename Stream>
@@ -505,6 +531,15 @@ public:
return r.async_fetch_all(yield, info);
});
}
network_result<no_result> quit(
connection_type& conn
) override
{
return impl(conn, [&](yield_context yield, error_info* info) {
conn.async_quit(yield, info);
return no_result();
});
}
};
template <typename Stream>
@@ -629,6 +664,14 @@ public:
return r.async_fetch_all(use_future);
});
}
network_result<no_result> quit(
connection_type& conn
) override
{
return impl_no_result([&] {
return conn.async_quit(use_future);
});
}
};
}