mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 06:02:44 +00:00 
			
		
		
		
	 e923cb3739
			
		
	
	
		e923cb3739
		
	
	
	
	
		
			
			The database the sql client connected to was 'hardcoded' to the login name of the calling user. - Extended the IPC API to be more expressive when connecting, by returning the name of the database the client connected to in the 'connected' callback. - Gave the sql client a command line argument (-d/--database) allowing an alternative database name to be specified A subsequent commit will have a dot command allowing the user to connect to different databases from the same sql session.
		
			
				
	
	
		
			10 lines
		
	
	
	
		
			480 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
	
		
			480 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| endpoint SQLClient
 | |
| {
 | |
|     connected(int connection_id, String connected_to_database) =|
 | |
|     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) =|
 | |
| }
 |