From 0af57e2595922c9ee59d7cd489daf37a3550496c Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 18 Nov 2020 16:55:31 +0000 Subject: Clang format --- libsqlitepp/sqlite-connection.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'libsqlitepp/sqlite-connection.cpp') 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(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); } - -- cgit v1.2.3