mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 11:32:03 +00:00
20 lines
338 B
C++
20 lines
338 B
C++
#pragma once
|
|
|
|
#include <DB/IO/ReadBufferFromMemory.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/** Allows to read from std::string-like object.
|
|
*/
|
|
class ReadBufferFromString : public ReadBufferFromMemory
|
|
{
|
|
public:
|
|
/// std::string or mysqlxx::Value
|
|
template <typename S>
|
|
ReadBufferFromString(const S & s) : ReadBufferFromMemory(s.data(), s.size()) {}
|
|
};
|
|
|
|
}
|