boost_sqlite 1
A sqlite C++ library
Loading...
Searching...
No Matches
backup.hpp
1//
2// Copyright (c) 2022 Klemens Morgenstern (klemens.morgenstern@gmx.net)
3//
4// Distributed under the Boost Software License, Version 1.0. (See accompanying
5// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6//
7
8#ifndef BOOST_SQLITE_BACKUP_HPP
9#define BOOST_SQLITE_BACKUP_HPP
10
11#include <boost/sqlite/detail/config.hpp>
12#include <boost/sqlite/cstring_ref.hpp>
13#include <boost/sqlite/error.hpp>
14
15BOOST_SQLITE_BEGIN_NAMESPACE
16
17struct connection ;
18
20
53BOOST_SQLITE_DECL
54void
56 connection & target,
57 cstring_ref source_name,
58 cstring_ref target_name,
59 system::error_code & ec,
60 error_info & ei);
61
62BOOST_SQLITE_DECL
63void
65 connection & target,
66 cstring_ref source_name = "main",
67 cstring_ref target_name = "main");
68
70
71BOOST_SQLITE_END_NAMESPACE
72
73
74#endif //BOOST_SQLITE_BACKUP_HPP
void backup(connection &source, connection &target, cstring_ref source_name, cstring_ref target_name, system::error_code &ec, error_info &ei)
Backup a database.
main object for a connection to a database.
Small wrapper for a null-terminated string that can be directly passed to C APIS.
Additional information about error conditions stored in an sqlite-allocate string.
Definition error.hpp:33