pat-s 
								
							 
						 
						
							
							
								
							
							
	63a80bf2b9  
						 
						
							
							
								
								
								feat: use XORM EngineGroup instead of single Engine connection ( #7212 )  
							
							... 
							
							
							
							
							Resolves  #7207 
Add new configuration to make XORM work with a main and replicas database instances. The follow configuration parameters were added:
- `HOST_PRIMARY`
- `HOST_REPLICAS`
- `LOAD_BALANCE_POLICY`. Options:
    - `"WeightRandom"` -> `xorm.WeightRandomPolicy`
    - `"WeightRoundRobin`  -> `WeightRoundRobinPolicy`
    - `"LeastCon"` -> `LeastConnPolicy`
    - `"RoundRobin"` -> `xorm.RoundRobinPolicy()`
    - default: `xorm.RandomPolicy()`
- `LOAD_BALANCE_WEIGHTS`
Co-authored-by: pat-s <patrick.schratz@gmail.com@>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7212 
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: pat-s <patrick.schratz@gmail.com>
Co-committed-by: pat-s <patrick.schratz@gmail.com> 
						
							2025-03-30 11:34:02 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									sdvcrx 
								
							 
						 
						
							
							
								
							
							
	
	
	80d48621cd 
 
						 
						
							
							
								
								
								Fix incorrect PostgreSQL connection string for Unix sockets ( #28865 )  
							
							... 
							
							
							
							
							Fix  #28864  
						
							2024-01-20 16:04:47 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	e75e9a0e7e 
 
						 
						
							
							
								
								
								Fix panic when parsing empty pgsql host ( #28708 )  
							
							... 
							
							
							
							
							Regression of #27723 
Fix  #28705  
							
						 
						
							2024-01-06 17:30:03 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	17d246cdcc 
 
						 
						
							
							
								
								
								Fix incorrect pgsql conn builder behavior ( #28085 )  
							
							... 
							
							
							
							
							Fix  #28083  and fix the tests 
						
							2023-11-17 02:30:57 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Moritz Poldrack 
								
							 
						 
						
							
							
								
							
							
	
	
	9b6e77c489 
 
						 
						
							
							
								
								
								refactor postgres connection string building ( #27723 )  
							
							... 
							
							
							
							
							This patchset changes the connection string builder to use net.URL and
the host/port parser to use the stdlib function for splitting host from
port. It also adds a footnote about a potentially required portnumber
for postgres UNIX sockets.
Fixes : #24552  
							
						 
						
							2023-11-01 18:00:20 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									flynnnnnnnnnn 
								
							 
						 
						
							
							
								
							
							
	
	
	e81ccc406b 
 
						 
						
							
							
								
								
								Implement FSFE REUSE for golang files ( #21840 )  
							
							... 
							
							
							
							
							Change all license headers to comply with REUSE specification.
Fix  #16132 
Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github>
Co-authored-by: John Olheiser <john.olheiser@gmail.com> 
							
						 
						
							2022-11-27 18:20:29 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Lunny Xiao 
								
							 
						 
						
							
							
								
							
							
	f83db078f0  
						 
						
							
							
								
								
								Move database settings from models to setting ( #7806 )  
							
							... 
							
							
							
							
							* move database settings from models to setting
* update docs
* fix checkout pr
* fix tests
* fix lint
* remove unsupported tidb options
* correct wrong variable name
* remove tidb totally 
							
						 
						
							2019-08-24 11:24:45 +02:00