File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ namespace {
4343 return std::runtime_error (fmt::format (" {}: {}" , message, sqlite3_errmsg (handle)));
4444 }
4545
46- rust::Result<sqlite3 *> open (const fs::path &file) {
46+ rust::Result<sqlite3 *> open_sqlite (const fs::path &file) {
4747 sqlite3 *handle;
4848 if (auto rc = sqlite3_open (file.c_str (), &handle); rc == SQLITE_OK) {
4949 return rust::Ok (handle);
@@ -132,7 +132,7 @@ namespace cs {
132132 }
133133
134134 rust::Result<EventsDatabase::Ptr> EventsDatabase::open (const fs::path &file) {
135- auto handle = :: open (file);
135+ auto handle = open_sqlite (file);
136136
137137 auto select_events = handle
138138 .and_then <sqlite3_stmt *>([](auto handle) {
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ namespace {
4242 return std::runtime_error (fmt::format (" {}: {}" , message, sqlite3_errmsg (handle)));
4343 }
4444
45- rust::Result<sqlite3 *> open (const fs::path &file) {
45+ rust::Result<sqlite3 *> open_sqlite (const fs::path &file) {
4646 sqlite3 *handle;
4747 if (auto rc = sqlite3_open (file.c_str (), &handle); rc == SQLITE_OK) {
4848 return rust::Ok (handle);
@@ -92,7 +92,7 @@ namespace ic {
9292 }
9393
9494 rust::Result<EventsDatabase::Ptr> EventsDatabase::create (const fs::path &file) {
95- auto handle = open (file)
95+ auto handle = open_sqlite (file)
9696 .and_then <sqlite3 *>([](auto handle) {
9797 constexpr const char *sql =
9898 " DROP TABLE IF EXISTS events;"
You can’t perform that action at this time.
0 commit comments