diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-11-18 16:55:31 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-11-18 16:55:31 +0000 |
commit | 0af57e2595922c9ee59d7cd489daf37a3550496c (patch) | |
tree | 73f8069e421e64222380fb3d30b2fb1277f80cd3 /libsqlitepp/sqlite-connection.cpp | |
parent | Fixes for tidy (diff) | |
download | libdbpp-sqlite-0af57e2595922c9ee59d7cd489daf37a3550496c.tar.bz2 libdbpp-sqlite-0af57e2595922c9ee59d7cd489daf37a3550496c.tar.xz libdbpp-sqlite-0af57e2595922c9ee59d7cd489daf37a3550496c.zip |
Clang format
Diffstat (limited to 'libsqlitepp/sqlite-connection.cpp')
-rw-r--r-- | libsqlitepp/sqlite-connection.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/libsqlitepp/sqlite-connection.cpp b/libsqlitepp/sqlite-connection.cpp index a93cad7..99006dc 100644 --- a/libsqlitepp/sqlite-connection.cpp +++ b/libsqlitepp/sqlite-connection.cpp @@ -1,17 +1,13 @@ #include "sqlite-connection.h" #include "sqlite-error.h" -#include "sqlite-selectcommand.h" #include "sqlite-modifycommand.h" +#include "sqlite-selectcommand.h" NAMEDFACTORY("sqlite", SQLite::Connection, DB::ConnectionFactory); -SQLite::ConnectionError::ConnectionError(sqlite3 * db) : - SQLite::Error(db) -{ -} +SQLite::ConnectionError::ConnectionError(sqlite3 * db) : SQLite::Error(db) { } -SQLite::Connection::Connection(const std::string & str) : - db(nullptr) +SQLite::Connection::Connection(const std::string & str) : db(nullptr) { if (sqlite3_open(str.c_str(), &db) != SQLITE_OK) { auto dbp = std::unique_ptr<sqlite3, decltype(&sqlite3_close)>(db, &sqlite3_close); @@ -66,7 +62,6 @@ SQLite::Connection::ping() const // Can this fail? } - DB::SelectCommandPtr SQLite::Connection::select(const std::string & sql, const DB::CommandOptionsCPtr &) { @@ -84,4 +79,3 @@ SQLite::Connection::insertId() { return sqlite3_last_insert_rowid(db); } - |