mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
12152a4556
Currently, we create a new SQL::Database object for each database we are requested to open. When multiple clients connect to the same database, the same underlying database file is opened and cached each time. This results in updates from one client not being propagated to others. To prevent this, when a database is requested to be open, check if it is already open. We can then re-use that SQL::Database object for the new connection. |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
ConnectionFromClient.cpp | ||
ConnectionFromClient.h | ||
DatabaseConnection.cpp | ||
DatabaseConnection.h | ||
Forward.h | ||
main.cpp | ||
SQLClient.ipc | ||
SQLServer.ipc | ||
SQLStatement.cpp | ||
SQLStatement.h |