소스 검색

添加方法

yjp 1 년 전
부모
커밋
9d92abd579
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      db_operations/table_row.go

+ 4 - 0
db_operations/table_row.go

@@ -69,6 +69,10 @@ func (tableRow *TableRow) ToMap() map[string]any {
 	return tableRow.row
 }
 
+func (tableRow *TableRow) Len() int {
+	return len(tableRow.row)
+}
+
 func (tableRow *TableRow) AddColumnValueTime(columnName string, value time.Time) *TableRow {
 	tableRow.row[columnName] = value
 	return tableRow