mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 21:32:25 -05:00 
			
		
		
		
	bumps uptrace/bun dependencies to v1.2.6 (#3569)
This commit is contained in:
		
					parent
					
						
							
								a444adee97
							
						
					
				
			
			
				commit
				
					
						3fceb5fc1a
					
				
			
		
					 68 changed files with 6517 additions and 194 deletions
				
			
		
							
								
								
									
										14
									
								
								vendor/github.com/uptrace/bun/dialect/sqlitedialect/dialect.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										14
									
								
								vendor/github.com/uptrace/bun/dialect/sqlitedialect/dialect.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -40,7 +40,8 @@ func New() *Dialect { | |||
| 		feature.TableNotExists | | ||||
| 		feature.SelectExists | | ||||
| 		feature.AutoIncrement | | ||||
| 		feature.CompositeIn | ||||
| 		feature.CompositeIn | | ||||
| 		feature.DeleteReturning | ||||
| 	return d | ||||
| } | ||||
| 
 | ||||
|  | @ -96,9 +97,13 @@ func (d *Dialect) DefaultVarcharLen() int { | |||
| // AUTOINCREMENT is only valid for INTEGER PRIMARY KEY, and this method will be a noop for other columns. | ||||
| // | ||||
| // Because this is a valid construct: | ||||
| // | ||||
| //	CREATE TABLE ("id" INTEGER PRIMARY KEY AUTOINCREMENT); | ||||
| // | ||||
| // and this is not: | ||||
| // | ||||
| //	CREATE TABLE ("id" INTEGER AUTOINCREMENT, PRIMARY KEY ("id")); | ||||
| // | ||||
| // AppendSequence adds a primary key constraint as a *side-effect*. Callers should expect it to avoid building invalid SQL. | ||||
| // SQLite also [does not support] AUTOINCREMENT column in composite primary keys. | ||||
| // | ||||
|  | @ -111,6 +116,13 @@ func (d *Dialect) AppendSequence(b []byte, table *schema.Table, field *schema.Fi | |||
| 	return b | ||||
| } | ||||
| 
 | ||||
| // DefaultSchemaName is the "schema-name" of the main database. | ||||
| // The details might differ from other dialects, but for all means and purposes | ||||
| // "main" is the default schema in an SQLite database. | ||||
| func (d *Dialect) DefaultSchema() string { | ||||
| 	return "main" | ||||
| } | ||||
| 
 | ||||
| func fieldSQLType(field *schema.Field) string { | ||||
| 	switch field.DiscoveredSQLType { | ||||
| 	case sqltype.SmallInt, sqltype.BigInt: | ||||
|  |  | |||
							
								
								
									
										2
									
								
								vendor/github.com/uptrace/bun/dialect/sqlitedialect/version.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/github.com/uptrace/bun/dialect/sqlitedialect/version.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -2,5 +2,5 @@ package sqlitedialect | |||
| 
 | ||||
| // Version is the current release version. | ||||
| func Version() string { | ||||
| 	return "1.2.5" | ||||
| 	return "1.2.6" | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue