Kaynağa Gözat

添加table row转map的接口

yjp 1 yıl önce
ebeveyn
işleme
0a5f0ecb94
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  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 {