1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 20:15:07 +00:00
serenity/Userland/Libraries/LibSQL
Timothy Flynn 1524288127 LibSQL: Rewrite the SQL::Value type to be contained within one class
Currently, the Value class is essentially a "pImpl" wrapper around the
ValueImpl hierarchy of classes. This is a bit difficult to follow and
reason about, as methods jump between the Value class and its impl
classes.

This changes the Variant held by Value to instead store the specified
types (String, int, etc.) directly. In doing so, the ValueImpl classes
are removed, and all methods are now just concise Variant visitors.

As part of this rewrite, support for the "array" type is dropped (or
rather, just not re-implemented) as it was unused. If it's needed in the
future, support can be re-added.

This does retain the ability for non-NULL types to store NULL values
(i.e. an empty Optional). I tried dropping this support as well, but it
is depended upon by the on-disk storage classes in non-trivial ways.
2022-10-14 17:47:44 +03:30
..
AST LibSQL: Rewrite the SQL::Value type to be contained within one class 2022-10-14 17:47:44 +03:30
BTree.cpp LibSQL: Introduce Serializer as a mediator between Heap and client code 2021-08-21 22:03:30 +02:00
BTree.h LibSQL: Introduce Serializer as a mediator between Heap and client code 2021-08-21 22:03:30 +02:00
BTreeIterator.cpp LibSQL: Introduce Serializer as a mediator between Heap and client code 2021-08-21 22:03:30 +02:00
CMakeLists.txt LibSQL+SQLServer: Move LibSQL/SQLResult.[h,cpp] to LibSQL/Result.[h,cpp] 2022-02-10 12:20:35 +00:00
Database.cpp Everywhere: Split Error::from_string_literal and Error::from_string_view 2022-07-12 23:11:35 +02:00
Database.h LibSQL: Add missing header includes 2022-10-14 17:47:44 +03:30
Forward.h LibSQL+SQLServer: Introduce and use ResultOr<ValueType> 2022-02-10 23:11:13 +01:00
HashIndex.cpp LibSQL: Introduce Serializer as a mediator between Heap and client code 2021-08-21 22:03:30 +02:00
HashIndex.h LibSQL: Introduce Serializer as a mediator between Heap and client code 2021-08-21 22:03:30 +02:00
Heap.cpp Everywhere: Split Error::from_string_literal and Error::from_string_view 2022-07-12 23:11:35 +02:00
Heap.h LibSQL: Improve error handling 2021-12-04 20:49:22 +03:30
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: Remove infallible type conversions from SQL::Value 2022-10-14 17:47:44 +03:30
Meta.h LibSQL: Do not return copies of vectors from table/index definitions 2022-02-10 12:20:35 +00:00
Result.cpp LibSQL+SQLServer: Introduce and use ResultOr<ValueType> 2022-02-10 23:11:13 +01:00
Result.h LibSQL+SQLServer: Introduce and use ResultOr<ValueType> 2022-02-10 23:11:13 +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: Introduce Serializer as a mediator between Heap and client code 2021-08-21 22:03:30 +02:00
Row.h LibSQL: Resolve cyclic dependency 2021-10-06 23:52:40 +01:00
Serializer.cpp LibSQL: Introduce Serializer as a mediator between Heap and client code 2021-08-21 22:03:30 +02:00
Serializer.h Everywhere: Replace single-char StringView op. arguments with chars 2022-07-12 23:11:35 +02:00
SQLClient.cpp Libraries: Use default constructors/destructors in LibSQL 2022-03-13 22:34:38 +01:00
SQLClient.h SystemServer+LoginServer+Userland: Switch to sid-based sockets 2022-10-03 11:11:29 +02:00
TreeNode.cpp Everywhere: Replace single-char StringView op. arguments with chars 2022-07-12 23:11:35 +02:00
Tuple.cpp LibSQL: Copy SQL::Value instances less frequently (which may be vectors) 2022-10-14 17:47:44 +03:30
Tuple.h LibSQL: Add the 'extend' operation to the Tuple class 2021-11-10 14:47:49 +01:00
TupleDescriptor.h Everywhere: Replace single-char StringView op. arguments with chars 2022-07-12 23:11:35 +02:00
Type.h LibSQL: Rewrite the SQL::Value type to be contained within one class 2022-10-14 17:47:44 +03:30
Value.cpp LibSQL: Rewrite the SQL::Value type to be contained within one class 2022-10-14 17:47:44 +03:30
Value.h LibSQL: Rewrite the SQL::Value type to be contained within one class 2022-10-14 17:47:44 +03:30