mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 02:02:25 -05:00 
			
		
		
		
	upstep bun to v1.0.14 (#291)
This commit is contained in:
		
					parent
					
						
							
								84a8a07f38
							
						
					
				
			
			
				commit
				
					
						8b7c3507fe
					
				
			
		
					 100 changed files with 5071 additions and 3836 deletions
				
			
		
							
								
								
									
										13
									
								
								vendor/github.com/uptrace/bun/schema/sqlfmt.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										13
									
								
								vendor/github.com/uptrace/bun/schema/sqlfmt.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -1,5 +1,11 @@ | |||
| package schema | ||||
| 
 | ||||
| import ( | ||||
| 	"strings" | ||||
| 
 | ||||
| 	"github.com/uptrace/bun/internal" | ||||
| ) | ||||
| 
 | ||||
| type QueryAppender interface { | ||||
| 	AppendQuery(fmter Formatter, b []byte) ([]byte, error) | ||||
| } | ||||
|  | @ -42,8 +48,13 @@ var _ QueryAppender = QueryWithArgs{} | |||
| func SafeQuery(query string, args []interface{}) QueryWithArgs { | ||||
| 	if args == nil { | ||||
| 		args = make([]interface{}, 0) | ||||
| 	} else if len(query) > 0 && strings.IndexByte(query, '?') == -1 { | ||||
| 		internal.Warn.Printf("query %q has args %v, but no placeholders", query, args) | ||||
| 	} | ||||
| 	return QueryWithArgs{ | ||||
| 		Query: query, | ||||
| 		Args:  args, | ||||
| 	} | ||||
| 	return QueryWithArgs{Query: query, Args: args} | ||||
| } | ||||
| 
 | ||||
| func UnsafeIdent(ident string) QueryWithArgs { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue