mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 21:22:46 +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.
		
			
				
	
	
		
			7 lines
		
	
	
	
		
			241 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
	
		
			241 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| endpoint SQLServer [magic=5432]
 | |
| {
 | |
|     connect(String name) => (int connection_id)
 | |
|     sql_statement(int connection_id, String statement) => (int statement_id)
 | |
|     statement_execute(int statement_id) =|
 | |
|     disconnect(int connection_id) =|
 | |
| }
 |