1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:47:34 +00:00
serenity/Userland
Timothy Flynn f9d23e1d2f LibSQL+SQLServer+SQLStudio+sql: Propagate connection errors immediately
Currently, when clients connect to SQL server, we inform them of any
errors opening the database via an asynchronous IPC. But we already know
about these errors before returning from the connect() IPC, so this
roundabout propagation is a bit unnecessary. Now if we fail to open the
database, we will simply not send back a valid connection ID.

Disconnect has a similar story. Rather than disconnecting and invoking
an asynchronous IPC to inform the client of the disconnect, make the
disconnect() IPC synchronous (because all it does is remove the database
from the map of open databases). Further, the only user of this command
is the SQL REPL when it wants to connect to a different database, so it
makes sense to block it. This did require moving a bit of logic around
in the REPL to accommodate this change.
2022-12-07 13:09:00 +01:00
..
Applets Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
Applications Meta+Userland: Pass Gfx::IntSize by value 2022-12-07 11:48:27 +01:00
BuggieBox Userland: Add the BuggieBox program 2022-11-26 12:41:47 -07:00
Demos Meta+Userland: Pass Gfx::IntSize by value 2022-12-07 11:48:27 +01:00
DevTools LibSQL+SQLServer+SQLStudio+sql: Propagate connection errors immediately 2022-12-07 13:09:00 +01:00
DynamicLoader AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Games Meta+Userland: Pass Gfx::IntPoint by value 2022-12-07 11:48:27 +01:00
Libraries LibSQL+SQLServer+SQLStudio+sql: Propagate connection errors immediately 2022-12-07 13:09:00 +01:00
Services LibSQL+SQLServer+SQLStudio+sql: Propagate connection errors immediately 2022-12-07 13:09:00 +01:00
Shell Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
Utilities LibSQL+SQLServer+SQLStudio+sql: Propagate connection errors immediately 2022-12-07 13:09:00 +01:00
CMakeLists.txt Userland: Add the BuggieBox program 2022-11-26 12:41:47 -07:00