Skip to content

Commit

Permalink
Fixed logging for BLOB. Must be entered as a mysql::blob or mysdql::b…
Browse files Browse the repository at this point in the history
…lob_view for it work properly

Closes #15
  • Loading branch information
jgaa committed Mar 26, 2024
1 parent 1c73fa4 commit df76454
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/mysqlpool/mysqlpool.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@

namespace jgaa::mysqlpool {

inline ::std::ostream& operator << (::std::ostream& out, const boost::mysql::blob_view& blob) {
return out << "{ blob size: " << blob.size() << " }";
}

// https://stackoverflow.com/questions/68443804/c20-concept-to-check-tuple-like-types
template<class T, std::size_t N>
concept has_tuple_element =
Expand Down

0 comments on commit df76454

Please sign in to comment.