mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00
LibSQL+SQLServer: Build SQLServer system service
This patch introduces the SQLServer system server. This service is supposed to be the only process/application talking to database storage. This makes things like locking and caching more reliable, easier to implement, and more efficient. In LibSQL we added a client component that does the ugly IPC nitty- gritty for you. All that's needed is setting a number of event handler lambdas and you can connect to databases and execute statements on them. Applications that wish to use this SQLClient class obviously need to link LibSQL and LibIPC.
This commit is contained in:
parent
1037d6b0eb
commit
a034774e3a
Notes:
sideshowbarker
2024-07-18 10:04:35 +09:00
Author: https://github.com/JanDeVisser
Commit: a034774e3a
Pull-request: https://github.com/SerenityOS/serenity/pull/8306
Reviewed-by: https://github.com/MaxWipfli
Reviewed-by: https://github.com/alimpfard ✅
Reviewed-by: https://github.com/trflynn89 ✅
19 changed files with 650 additions and 12 deletions
10
Userland/Services/SQLServer/SQLClient.ipc
Normal file
10
Userland/Services/SQLServer/SQLClient.ipc
Normal file
|
@ -0,0 +1,10 @@
|
|||
endpoint SQLClient
|
||||
{
|
||||
connected(int connection_id) =|
|
||||
connection_error(int connection_id, int code, String message) =|
|
||||
execution_success(int statement_id, bool has_results, int created, int updated, int deleted) =|
|
||||
next_result(int statement_id, Vector<String> row) =|
|
||||
results_exhausted(int statement_id, int total_rows) =|
|
||||
execution_error(int statement_id, int code, String message) =|
|
||||
disconnected(int connection_id) =|
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue