diff options
| author | Joel Klinghed <the_jk@yahoo.com> | 2015-06-03 00:06:31 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@yahoo.com> | 2015-06-03 00:06:31 +0200 |
| commit | 5bc49de682eec79f3dc8096c6812bee70fe2d496 (patch) | |
| tree | fa9655c46dded940496719f4f547b36ab5eb6c89 /src/sqlite3_db.hh | |
| parent | fb659a41cfe5523c62fd6993acddab120ccb0758 (diff) | |
Make it simpler to use DB
Add DB::Transaction
Diffstat (limited to 'src/sqlite3_db.hh')
| -rw-r--r-- | src/sqlite3_db.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sqlite3_db.hh b/src/sqlite3_db.hh index 6e266e9..1a24df4 100644 --- a/src/sqlite3_db.hh +++ b/src/sqlite3_db.hh @@ -3,13 +3,14 @@ #include "db.hh" +#include <memory> #include <string> namespace stuff { class SQLite3 { public: - static DB* open(const std::string& path); + static std::unique_ptr<DB> open(const std::string& path); }; } // namespace stuff |
