mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 04:12:25 -05:00 
			
		
		
		
	update dependencies (#296)
This commit is contained in:
		
					parent
					
						
							
								2aaec82732
							
						
					
				
			
			
				commit
				
					
						829a934d23
					
				
			
		
					 124 changed files with 2453 additions and 1588 deletions
				
			
		
							
								
								
									
										19
									
								
								vendor/github.com/uptrace/bun/query_column_add.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										19
									
								
								vendor/github.com/uptrace/bun/query_column_add.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -11,6 +11,8 @@ import ( | |||
| 
 | ||||
| type AddColumnQuery struct { | ||||
| 	baseQuery | ||||
| 
 | ||||
| 	ifNotExists bool | ||||
| } | ||||
| 
 | ||||
| func NewAddColumnQuery(db *DB) *AddColumnQuery { | ||||
|  | @ -59,6 +61,11 @@ func (q *AddColumnQuery) ColumnExpr(query string, args ...interface{}) *AddColum | |||
| 	return q | ||||
| } | ||||
| 
 | ||||
| func (q *AddColumnQuery) IfNotExists() *AddColumnQuery { | ||||
| 	q.ifNotExists = true | ||||
| 	return q | ||||
| } | ||||
| 
 | ||||
| //------------------------------------------------------------------------------ | ||||
| 
 | ||||
| func (q *AddColumnQuery) Operation() string { | ||||
|  | @ -82,6 +89,10 @@ func (q *AddColumnQuery) AppendQuery(fmter schema.Formatter, b []byte) (_ []byte | |||
| 
 | ||||
| 	b = append(b, " ADD "...) | ||||
| 
 | ||||
| 	if q.ifNotExists { | ||||
| 		b = append(b, "IF NOT EXISTS "...) | ||||
| 	} | ||||
| 
 | ||||
| 	b, err = q.columns[0].AppendQuery(fmter, b) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
|  | @ -99,11 +110,5 @@ func (q *AddColumnQuery) Exec(ctx context.Context, dest ...interface{}) (sql.Res | |||
| 	} | ||||
| 
 | ||||
| 	query := internal.String(queryBytes) | ||||
| 
 | ||||
| 	res, err := q.exec(ctx, q, query) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 
 | ||||
| 	return res, nil | ||||
| 	return q.exec(ctx, q, query) | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue