diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-04-17 19:15:08 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-04-17 19:15:08 +0100 |
commit | a802c57549d0111292eec1b9c0df86377efcf491 (patch) | |
tree | edfe997bfe5d97c84e9ebb555001b9db28eac4b4 /libsqlitepp/sqlite-connection.cpp | |
parent | Standalone split (diff) | |
download | libdbpp-sqlite-1.2.0.tar.bz2 libdbpp-sqlite-1.2.0.tar.xz libdbpp-sqlite-1.2.0.zip |
C++17libdbpp-sqlite-1.2.0
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.cpp | 12 |
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 |