BatchInsertBlock

This commit is contained in:
withchao
2023-05-26 15:15:42 +08:00
parent 1ba6bef27a
commit e8042c9e3e
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -154,6 +154,10 @@ func Test_Insert(t *testing.T) {
ctx := context.Background()
var arr []any
for i := 0; i < 345; i++ {
if i%2 == 0 {
arr = append(arr, (*unRelationTb.MsgDataModel)(nil))
continue
}
arr = append(arr, &unRelationTb.MsgDataModel{
Seq: int64(i),
Content: fmt.Sprintf("test-%d", i),