1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 04:24:59 +00:00
serenity/Userland/Libraries/LibSQL
Timothy Flynn 9b483625e6 LibIPC+Everywhere: Change IPC decoders to construct values in-place
Currently, the generated IPC decoders will default-construct the type to
be decoded, then pass that value by reference to the concrete decoder.
This, of course, requires that the type is default-constructible. This
was an issue for decoding Variants, which had to require the first type
in the Variant list is Empty, to ensure it is default constructible.

Further, this made it possible for values to become uninitialized in
user-defined decoders.

This patch makes the decoder interface such that the concrete decoders
themselves contruct the decoded type upon return from the decoder. To do
so, the default decoders in IPC::Decoder had to be moved to the IPC
namespace scope, as these decoders are now specializations instead of
overloaded methods (C++ requires specializations to be in a namespace
scope).
2022-12-26 09:36:16 +01:00
..
AST LibSQL: Support 64-bit integer values and handle overflow errors 2022-12-14 09:21:30 -05: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+SQLServer: Generate SQLServer's IPC sources with LibSQL on Lagom 2022-12-08 17:14:48 +01:00
Database.cpp LibSQL: Support 64-bit integer values and handle overflow errors 2022-12-14 09:21:30 -05: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 LibSQL: Ungracefully handle database version incompatibilities 2022-12-14 09:21:30 -05:00
Heap.h LibSQL: Support 64-bit integer values and handle overflow errors 2022-12-14 09:21:30 -05: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 LibSQL: Support 64-bit integer values and handle overflow errors 2022-12-14 09:21:30 -05: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: Support 64-bit integer values and handle overflow errors 2022-12-14 09:21:30 -05: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: Output a more specific error on failed socket creation 2022-12-23 23:31:07 +01:00
SQLClient.h LibSQL: Support launching a singleton SQLServer instance for Lagom hosts 2022-12-11 10:08:17 -05:00
TreeNode.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
Tuple.cpp LibSQL+SQLServer+SQLStudio+sql: Send result rows over IPC as SQL::Value 2022-12-07 13:09:00 +01:00
Tuple.h LibSQL+SQLServer+SQLStudio+sql: Send result rows over IPC as SQL::Value 2022-12-07 13:09:00 +01:00
TupleDescriptor.h Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
Type.h LibSQL: Remove unnecessary values from the ENUMERATE_SQL_TYPES macro 2022-12-14 09:21:30 -05:00
Value.cpp LibIPC+Everywhere: Change IPC decoders to construct values in-place 2022-12-26 09:36:16 +01:00
Value.h LibIPC+Everywhere: Change IPC decoders to construct values in-place 2022-12-26 09:36:16 +01:00