|
@@ -285,8 +285,14 @@ func (op *Operations) Row() (*TableRow, error) {
|
|
|
return NewTableRowFromMap(valueMap), nil
|
|
|
}
|
|
|
|
|
|
-func (op *Operations) Count(count *int64) error {
|
|
|
- return op.processDB.Count(count).Error
|
|
|
+func (op *Operations) Count() (int64, error) {
|
|
|
+ var count int64
|
|
|
+ err := op.processDB.Count(&count).Error
|
|
|
+ if err != nil {
|
|
|
+ return 0, err
|
|
|
+ }
|
|
|
+
|
|
|
+ return count, nil
|
|
|
}
|
|
|
|
|
|
func (op *Operations) CheckExist() (bool, error) {
|