mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 00:35:06 +00:00

In order to execute a prepared statement multiple times, and track each execution's results, clients will need to be provided an execution ID. This will create a monotonically increasing ID each time a prepared statement is executed for this purpose.
12 lines
660 B
Text
12 lines
660 B
Text
#include <LibSQL/Result.h>
|
|
|
|
endpoint SQLClient
|
|
{
|
|
connected(u64 connection_id, DeprecatedString connected_to_database) =|
|
|
connection_error(u64 connection_id, SQL::SQLErrorCode code, DeprecatedString message) =|
|
|
execution_success(u64 statement_id, u64 execution_id, bool has_results, size_t created, size_t updated, size_t deleted) =|
|
|
next_result(u64 statement_id, u64 execution_id, Vector<DeprecatedString> row) =|
|
|
results_exhausted(u64 statement_id, u64 execution_id, size_t total_rows) =|
|
|
execution_error(u64 statement_id, u64 execution_id, SQL::SQLErrorCode code, DeprecatedString message) =|
|
|
disconnected(u64 connection_id) =|
|
|
}
|