From c66c279fb65328c5a5f5d8ca6e0df035fc5c5555 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 16 Feb 2023 22:36:33 -0500 Subject: Added optional database query timeout --- lib/database.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/database.cpp') diff --git a/lib/database.cpp b/lib/database.cpp index d5ff37e..d30926c 100644 --- a/lib/database.cpp +++ b/lib/database.cpp @@ -85,6 +85,11 @@ namespace verbly { return result; } + void database::setTimeout(int ms) + { + ppdb_.setTimeout(ms); + } + std::string database_version_mismatch::generateMessage(int right, int wrong) { std::ostringstream msgbuilder; -- cgit 1.4.1