MCPcopy Create free account
hub / github.com/audacity/audacity / Reopen

Method Reopen

libraries/lib-sqlite-helpers/sqlite/Connection.cpp:82–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82Result<Connection> Connection::Reopen(
83 const Connection& connection, OpenMode mode, ThreadMode threadMode)
84{
85 if (!connection.IsOpen())
86 return Error(SQLITE_MISUSE);
87
88 auto path = connection.GetPath();
89
90 // For memory and temporary databases, the path is empty.
91 if (path.empty())
92 return Error(SQLITE_MISUSE);
93
94 return Open(path, mode, threadMode);
95}
96
97Result<Connection>
98Connection::Reopen(sqlite3* connection, OpenMode mode, ThreadMode threadMode)

Callers

nothing calls this directly

Calls 4

ErrorFunction · 0.70
IsOpenMethod · 0.45
GetPathMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected