mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 08:20:25 +08:00 
			
		
		
		
	
		
			
	
	
		
			17 lines
		
	
	
		
			347 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			17 lines
		
	
	
		
			347 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 
								 | 
							
								package application
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import "mayfly-go/internal/db/infrastructure/persistence"
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								var (
							 | 
						||
| 
								 | 
							
									dbApp        Db        = newDbApp(persistence.GetDbRepo(), persistence.GetDbSqlRepo())
							 | 
						||
| 
								 | 
							
									dbSqlExecApp DbSqlExec = newDbSqlExecApp(persistence.GetDbSqlExecRepo())
							 | 
						||
| 
								 | 
							
								)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func GetDbApp() Db {
							 | 
						||
| 
								 | 
							
									return dbApp
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func GetDbSqlExecApp() DbSqlExec {
							 | 
						||
| 
								 | 
							
									return dbSqlExecApp
							 | 
						||
| 
								 | 
							
								}
							 |