summaryrefslogtreecommitdiff
path: root/libsqlitepp/sqlite-connection.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-04-17 19:15:08 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2018-04-17 19:15:08 +0100
commita802c57549d0111292eec1b9c0df86377efcf491 (patch)
treeedfe997bfe5d97c84e9ebb555001b9db28eac4b4 /libsqlitepp/sqlite-connection.cpp
parentStandalone split (diff)
downloadlibdbpp-sqlite-a802c57549d0111292eec1b9c0df86377efcf491.tar.bz2
libdbpp-sqlite-a802c57549d0111292eec1b9c0df86377efcf491.tar.xz
libdbpp-sqlite-a802c57549d0111292eec1b9c0df86377efcf491.zip
Updates code largely in-keeping with updates to be C++17 in line with libadhocutil and libdbpp.
Diffstat (limited to 'libsqlitepp/sqlite-connection.cpp')
-rw-r--r--libsqlitepp/sqlite-connection.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/libsqlitepp/sqlite-connection.cpp b/libsqlitepp/sqlite-connection.cpp
index 369931d..1539668 100644
--- a/libsqlitepp/sqlite-connection.cpp
+++ b/libsqlitepp/sqlite-connection.cpp
@@ -67,16 +67,16 @@ SQLite::Connection::ping() const
}
-DB::SelectCommand *
-SQLite::Connection::newSelectCommand(const std::string & sql, const DB::CommandOptions *)
+DB::SelectCommandPtr
+SQLite::Connection::select(const std::string & sql, const DB::CommandOptionsCPtr &)
{
- return new SelectCommand(this, sql);
+ return std::make_shared<SelectCommand>(this, sql);
}
-DB::ModifyCommand *
-SQLite::Connection::newModifyCommand(const std::string & sql, const DB::CommandOptions *)
+DB::ModifyCommandPtr
+SQLite::Connection::modify(const std::string & sql, const DB::CommandOptionsCPtr &)
{
- return new ModifyCommand(this, sql);
+ return std::make_shared<ModifyCommand>(this, sql);
}
int64_t