mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 16:32:26 -05:00 
			
		
		
		
	bump uptrace/bun dependencies from 1.2.6 to 1.2.8 (#3645)
This commit is contained in:
		
					parent
					
						
							
								e77c7e16b6
							
						
					
				
			
			
				commit
				
					
						b8ef9fc4bc
					
				
			
		
					 89 changed files with 907 additions and 4123 deletions
				
			
		
							
								
								
									
										11
									
								
								vendor/github.com/uptrace/bun/query_update.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								vendor/github.com/uptrace/bun/query_update.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -23,6 +23,7 @@ type UpdateQuery struct { | |||
| 
 | ||||
| 	joins    []joinQuery | ||||
| 	omitZero bool | ||||
| 	comment  string | ||||
| } | ||||
| 
 | ||||
| var _ Query = (*UpdateQuery)(nil) | ||||
|  | @ -243,6 +244,14 @@ func (q *UpdateQuery) Returning(query string, args ...interface{}) *UpdateQuery | |||
| 
 | ||||
| //------------------------------------------------------------------------------ | ||||
| 
 | ||||
| // Comment adds a comment to the query, wrapped by /* ... */. | ||||
| func (q *UpdateQuery) Comment(comment string) *UpdateQuery { | ||||
| 	q.comment = comment | ||||
| 	return q | ||||
| } | ||||
| 
 | ||||
| //------------------------------------------------------------------------------ | ||||
| 
 | ||||
| func (q *UpdateQuery) Operation() string { | ||||
| 	return "UPDATE" | ||||
| } | ||||
|  | @ -252,6 +261,8 @@ func (q *UpdateQuery) AppendQuery(fmter schema.Formatter, b []byte) (_ []byte, e | |||
| 		return nil, q.err | ||||
| 	} | ||||
| 
 | ||||
| 	b = appendComment(b, q.comment) | ||||
| 
 | ||||
| 	fmter = formatterWithModel(fmter, q) | ||||
| 
 | ||||
| 	b, err = q.appendWith(fmter, b) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue