1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:17:44 +00:00

LibSQL: Add an IPC encoder/decoder for SQL::Value

This will allow clients to send placeholder values for prepared
statements over IPC.
This commit is contained in:
Timothy Flynn 2022-12-01 22:29:17 -05:00 committed by Andreas Kling
parent b2b9ae27fd
commit 83bb25611e
2 changed files with 101 additions and 0 deletions

View file

@ -13,6 +13,7 @@
#include <AK/StringView.h>
#include <AK/Variant.h>
#include <AK/Vector.h>
#include <LibIPC/Forward.h>
#include <LibSQL/Forward.h>
#include <LibSQL/Result.h>
#include <LibSQL/Type.h>
@ -129,3 +130,13 @@ struct AK::Formatter<SQL::Value> : Formatter<StringView> {
return Formatter<StringView>::format(builder, value.to_deprecated_string());
}
};
namespace IPC {
template<>
bool encode(Encoder&, SQL::Value const&);
template<>
ErrorOr<void> decode(Decoder&, SQL::Value&);
}