Browse Source

添加方法

yjp 1 năm trước cách đây
mục cha
commit
a314c21435
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      db_operations/table_row.go

+ 4 - 0
db_operations/table_row.go

@@ -73,6 +73,10 @@ func (tableRow *TableRow) Len() int {
 	return len(tableRow.row)
 }
 
+func (tableRow *TableRow) Empty() bool {
+	return len(tableRow.row) == 0
+}
+
 func (tableRow *TableRow) AddColumnValueTime(columnName string, value time.Time) *TableRow {
 	tableRow.row[columnName] = value
 	return tableRow