1
0
Fork 0
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:
Jan de Visser 2021-06-28 21:15:17 -04:00 committed by Ali Mohammad Pur
parent 1037d6b0eb
commit a034774e3a
Notes: sideshowbarker 2024-07-18 10:04:35 +09:00
19 changed files with 650 additions and 12 deletions

View 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) =|
}