mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 06:32:26 -05:00 
			
		
		
		
	[bugfix] fix double firing bun.DB query hooks (#2124)
* improve bun.DB wrapping readability + comments, fix double-firing query hooks * fix incorrect code comment placement * fix linter issues * Update internal/db/basic.go * do as the linter commmands ... --------- Signed-off-by: kim <grufwub@gmail.com> Co-authored-by: Daenney <daenney@users.noreply.github.com>
This commit is contained in:
		
					parent
					
						
							
								688ea88bbb
							
						
					
				
			
			
				commit
				
					
						45334581ca
					
				
			
		
					 44 changed files with 645 additions and 535 deletions
				
			
		|  | @ -33,9 +33,9 @@ type Basic interface { | |||
| 	// For implementations that don't use tables, this can just return nil. | ||||
| 	DropTable(ctx context.Context, i interface{}) error | ||||
| 
 | ||||
| 	// Stop should stop and close the database connection cleanly, returning an error if this is not possible. | ||||
| 	// Close should stop and close the database connection cleanly, returning an error if this is not possible. | ||||
| 	// If the database implementation doesn't need to be stopped, this can just return nil. | ||||
| 	Stop(ctx context.Context) error | ||||
| 	Close() error | ||||
| 
 | ||||
| 	// IsHealthy should return nil if the database connection is healthy, or an error if not. | ||||
| 	IsHealthy(ctx context.Context) error | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue