From 78a5e04867a88e79ac929eeed66f41722e56a739 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 12 May 2018 23:40:15 +0100 Subject: Update to match string_view plugin interface --- libdbpp/connection.cpp | 2 +- libdbpp/connection.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libdbpp/connection.cpp b/libdbpp/connection.cpp index 91fdf6a..f7c7b53 100644 --- a/libdbpp/connection.cpp +++ b/libdbpp/connection.cpp @@ -168,7 +168,7 @@ DB::Connection::bulkUploadData(FILE * in) const AdHocFormatter(PluginLibraryFormat, "libdbpp-%?.so"); std::optional -DB::Connection::resolvePlugin(const std::type_info &, const std::string & name) +DB::Connection::resolvePlugin(const std::type_info &, const std::string_view & name) { return PluginLibraryFormat::get(name); } diff --git a/libdbpp/connection.h b/libdbpp/connection.h index e1fb2d2..00d963a 100644 --- a/libdbpp/connection.h +++ b/libdbpp/connection.h @@ -147,7 +147,7 @@ namespace DB { PatchResult patchTable(TablePatch * tp); /// AdHoc plugin resolver helper for database connectors. - static std::optional resolvePlugin(const std::type_info &, const std::string &); + static std::optional resolvePlugin(const std::type_info &, const std::string_view &); protected: /// Create a new connection. -- cgit v1.2.3