mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:22:43 +00:00 
			
		
		
		
	 a034774e3a
			
		
	
	
		a034774e3a
		
	
	
	
	
		
			
			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.
		
			
				
	
	
		
			10 lines
		
	
	
	
		
			450 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
	
		
			450 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| 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) =|
 | |
| }
 |