mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-11-03 21:42:25 -06:00 
			
		
		
		
	upstep bun to v1.0.9 (#252)
This commit is contained in:
		
					parent
					
						
							
								08cb8a3385
							
						
					
				
			
			
				commit
				
					
						9a53b1a8d1
					
				
			
		
					 53 changed files with 285 additions and 791 deletions
				
			
		
							
								
								
									
										12
									
								
								vendor/github.com/uptrace/bun/join.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								vendor/github.com/uptrace/bun/join.go
									
										
									
										generated
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -10,8 +10,8 @@ import (
 | 
			
		|||
 | 
			
		||||
type relationJoin struct {
 | 
			
		||||
	Parent    *relationJoin
 | 
			
		||||
	BaseModel tableModel
 | 
			
		||||
	JoinModel tableModel
 | 
			
		||||
	BaseModel TableModel
 | 
			
		||||
	JoinModel TableModel
 | 
			
		||||
	Relation  *schema.Relation
 | 
			
		||||
 | 
			
		||||
	apply   func(*SelectQuery) *SelectQuery
 | 
			
		||||
| 
						 | 
				
			
			@ -71,8 +71,8 @@ func (j *relationJoin) manyQuery(q *SelectQuery) *SelectQuery {
 | 
			
		|||
	where = appendChildValues(
 | 
			
		||||
		q.db.Formatter(),
 | 
			
		||||
		where,
 | 
			
		||||
		j.JoinModel.Root(),
 | 
			
		||||
		j.JoinModel.ParentIndex(),
 | 
			
		||||
		j.JoinModel.rootValue(),
 | 
			
		||||
		j.JoinModel.parentIndex(),
 | 
			
		||||
		j.Relation.BaseFields,
 | 
			
		||||
	)
 | 
			
		||||
	where = append(where, ")"...)
 | 
			
		||||
| 
						 | 
				
			
			@ -135,7 +135,7 @@ func (j *relationJoin) m2mQuery(q *SelectQuery) *SelectQuery {
 | 
			
		|||
	}
 | 
			
		||||
	q = q.Model(m2mModel)
 | 
			
		||||
 | 
			
		||||
	index := j.JoinModel.ParentIndex()
 | 
			
		||||
	index := j.JoinModel.parentIndex()
 | 
			
		||||
	baseTable := j.BaseModel.Table()
 | 
			
		||||
 | 
			
		||||
	//nolint
 | 
			
		||||
| 
						 | 
				
			
			@ -154,7 +154,7 @@ func (j *relationJoin) m2mQuery(q *SelectQuery) *SelectQuery {
 | 
			
		|||
		join = append(join, col.SQLName...)
 | 
			
		||||
	}
 | 
			
		||||
	join = append(join, ") IN ("...)
 | 
			
		||||
	join = appendChildValues(fmter, join, j.BaseModel.Root(), index, baseTable.PKs)
 | 
			
		||||
	join = appendChildValues(fmter, join, j.BaseModel.rootValue(), index, baseTable.PKs)
 | 
			
		||||
	join = append(join, ")"...)
 | 
			
		||||
	q = q.Join(internal.String(join))
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue