summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-05-12 23:40:15 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2019-01-14 20:16:16 +0000
commit78a5e04867a88e79ac929eeed66f41722e56a739 (patch)
tree1ca63dbb61a12adab506cc436addc24a99c83d87
parentFix assignable/convertible check in extract (diff)
downloadlibdbpp-78a5e04867a88e79ac929eeed66f41722e56a739.tar.bz2
libdbpp-78a5e04867a88e79ac929eeed66f41722e56a739.tar.xz
libdbpp-78a5e04867a88e79ac929eeed66f41722e56a739.zip
Update to match string_view plugin interface
-rw-r--r--libdbpp/connection.cpp2
-rw-r--r--libdbpp/connection.h2
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<std::string>
-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<std::string> resolvePlugin(const std::type_info &, const std::string &);
+ static std::optional<std::string> resolvePlugin(const std::type_info &, const std::string_view &);
protected:
/// Create a new connection.