Browse Source

添加table row转map的接口

yjp 1 year ago
parent
commit
0a5f0ecb94
1 changed files with 4 additions and 0 deletions
  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
 	return tableRow
 }
 }
 
 
+func (tableRow *TableRow) ToMap() map[string]any {
+	return tableRow.row
+}
+
 func (tableRow *TableRow) SnapshotColumnValue(prefix string, version string, columnName string) any {
 func (tableRow *TableRow) SnapshotColumnValue(prefix string, version string, columnName string) any {
 	value, ok := tableRow.row[prefix+"_snaps_"+version+"."+columnName]
 	value, ok := tableRow.row[prefix+"_snaps_"+version+"."+columnName]
 	if !ok {
 	if !ok {