33#ifndef GUARD_SQLITE_SERIALIZATION_HPP_INCLUDED
34#define GUARD_SQLITE_SERIALIZATION_HPP_INCLUDED
63 unsigned int flags = 0);
74 std::string_view schema =
"main",
bool read_only = false);
std::vector< unsigned char > serialize(connection &con, std::string_view schema="main", unsigned int flags=0)
Copies the complete database image for schema into a byte vector.
bool serialization_supported() noexcept
Indicates whether the linked SQLite exposes the serialize/deserialise feature.
void deserialize(connection &con, std::span< const unsigned char > image, std::string_view schema="main", bool read_only=false)
Replaces the contents of schema with the supplied serialized image.
connection is used to open, close, attach and detach a database. Further it has to be passed to all c...