1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 09:24:57 +00:00
serenity/Userland/Libraries/LibSQL
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
..
AST LibSQL: Parse and execute sequential placeholder values 2022-12-07 13:09:00 +01:00
BTree.cpp LibSQL: Fix BTree corruption in TreeNode::split 2022-11-26 09:15:34 +01:00
BTree.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
BTreeIterator.cpp LibSQL: Fix BTree corruption in TreeNode::split 2022-11-26 09:15:34 +01:00
CMakeLists.txt LibSQL: Partially implement the UPDATE command 2022-12-07 13:09:00 +01:00
Database.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Database.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Forward.h LibSQL+SQLServer: Introduce and use ResultOr<ValueType> 2022-02-10 23:11:13 +01:00
HashIndex.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
HashIndex.h Everywhere: Remove redundant inequality comparison operators 2022-11-06 10:25:08 -07:00
Heap.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Heap.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Index.cpp LibSQL: Add missing header includes 2022-10-14 17:47:44 +03:30
Index.h LibSQL: Add missing header includes 2022-10-14 17:47:44 +03:30
Key.cpp LibSQL: Introduce Serializer as a mediator between Heap and client code 2021-08-21 22:03:30 +02:00
Key.h LibSQL: Resolve cyclic dependency 2021-10-06 23:52:40 +01:00
Meta.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
Meta.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Result.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Result.h LibSQL: Parse and execute sequential placeholder values 2022-12-07 13:09:00 +01:00
ResultSet.cpp LibSQL+SQLServer: Introduce and use ResultOr<ValueType> 2022-02-10 23:11:13 +01:00
ResultSet.h LibSQL+SQLServer: Introduce and use ResultOr<ValueType> 2022-02-10 23:11:13 +01:00
Row.cpp LibSQL: Store a NonnullRefPtr to the table definition in SQL::Row 2022-11-30 11:43:13 +01:00
Row.h LibSQL: Store a NonnullRefPtr to the table definition in SQL::Row 2022-11-30 11:43:13 +01:00
Serializer.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Serializer.h Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
SQLClient.cpp LibSQL+SQLServer+SQLStudio+sql: Propagate connection errors immediately 2022-12-07 13:09:00 +01:00
SQLClient.h LibSQL+SQLServer+SQLStudio+sql: Propagate connection errors immediately 2022-12-07 13:09:00 +01:00
TreeNode.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
Tuple.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
Tuple.h Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
TupleDescriptor.h Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
Type.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Value.cpp LibSQL: Add an IPC encoder/decoder for SQL::Value 2022-12-07 13:09:00 +01:00
Value.h LibSQL: Add an IPC encoder/decoder for SQL::Value 2022-12-07 13:09:00 +01:00