1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-28 18:18:52 +00:00
OpenMW/components/sqlite3/db.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
377 B
C++
Raw Normal View History

2021-10-16 11:03:15 +00:00
#ifndef OPENMW_COMPONENTS_SQLITE3_DB_H
#define OPENMW_COMPONENTS_SQLITE3_DB_H
#include <memory>
#include <string_view>
struct sqlite3;
namespace Sqlite3
{
struct CloseSqlite3
{
void operator()(sqlite3* handle) const noexcept;
};
using Db = std::unique_ptr<sqlite3, CloseSqlite3>;
Db makeDb(std::string_view path, const char* schema);
}
#endif