Update scan.go
This commit is contained in:
		
							parent
							
								
									7f6ca2ee20
								
							
						
					
					
						commit
						7ec3de3098
					
				
							
								
								
									
										6
									
								
								scan.go
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								scan.go
									
									
									
									
									
								
							@ -102,9 +102,9 @@ func (db *DB) scanIntoStruct(sch *schema.Schema, rows *sql.Rows, reflectValue re
 | 
			
		||||
type ScanMode uint8
 | 
			
		||||
 | 
			
		||||
const (
 | 
			
		||||
	ScanInitialized         ScanMode = 1 << iota // 1
 | 
			
		||||
	ScanUpdate                                   // 2
 | 
			
		||||
	ScanOnConflictDoNothing                      // 4
 | 
			
		||||
	ScanInitialized         ScanMode = 1 << 0    // 1
 | 
			
		||||
	ScanUpdate              ScanMode = 1 << 1    // 2
 | 
			
		||||
	ScanOnConflictDoNothing ScanMode = 1 << 2    // 4
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func Scan(rows *sql.Rows, db *DB, mode ScanMode) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user