소스 검색

添加table row转map的接口

yjp 1 년 전
부모
커밋
0a5f0ecb94
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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 {