feat: 新增 ScanRows 接口

This commit is contained in:
2024-09-18 16:51:30 +08:00
parent 030343bc01
commit 1f9ff72824
9 changed files with 311 additions and 102 deletions

View File

@@ -148,7 +148,7 @@ func formatRowValues(values ...any) string {
case nil:
formattedValues[i] = "null"
case time.Time:
formattedValues[i] = fmt.Sprintf("'%s'", v.Format("2006-01-02 15:04:05"))
formattedValues[i] = fmt.Sprintf("'%s'", v.Format(time.RFC3339))
default:
if reflect.TypeOf(val).Kind() == reflect.Ptr && reflect.ValueOf(val).IsNil() {
formattedValues[i] = "null"