Bladeren bron

添加table row转map的接口

yjp 1 jaar geleden
bovenliggende
commit
0a5f0ecb94
1 gewijzigde bestanden met toevoegingen van 4 en 0 verwijderingen
  1. 4 0
      client/table_row.go

+ 4 - 0
client/table_row.go

@@ -92,6 +92,10 @@ func (tableRow *TableRow) AddColumnValueFloat64(columnName string, value float64
 	return tableRow
 }
 
+func (tableRow *TableRow) ToMap() map[string]any {
+	return tableRow.row
+}
+
 func (tableRow *TableRow) SnapshotColumnValue(prefix string, version string, columnName string) any {
 	value, ok := tableRow.row[prefix+"_snaps_"+version+"."+columnName]
 	if !ok {