summaryrefslogtreecommitdiff
path: root/vendor/github.com/uptrace/bun/model_table_slice.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/uptrace/bun/model_table_slice.go')
-rw-r--r--vendor/github.com/uptrace/bun/model_table_slice.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/github.com/uptrace/bun/model_table_slice.go b/vendor/github.com/uptrace/bun/model_table_slice.go
index 67b421460..b10319f2b 100644
--- a/vendor/github.com/uptrace/bun/model_table_slice.go
+++ b/vendor/github.com/uptrace/bun/model_table_slice.go
@@ -124,3 +124,13 @@ func (m *sliceTableModel) updateSoftDeleteField(tm time.Time) error {
}
return nil
}
+
+func (m *sliceTableModel) clone() TableModel {
+ return &sliceTableModel{
+ structTableModel: *m.structTableModel.clone().(*structTableModel),
+ slice: m.slice,
+ sliceLen: m.sliceLen,
+ sliceOfPtr: m.sliceOfPtr,
+ nextElem: m.nextElem,
+ }
+}