Update scan.go

This commit is contained in:
heige 2021-11-23 13:01:57 +08:00 committed by GitHub
parent 7f6ca2ee20
commit 7ec3de3098
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {