Skip to content

Commit db17851

Browse files
committed
added TODO for InsertStructs
1 parent bfd7f85 commit db17851

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

connection.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ type Connection interface {
7676
// Optional ColumnFilter can be passed to ignore mapped columns.
7777
InsertStruct(table string, rowStruct any, ignoreColumns ...ColumnFilter) error
7878

79+
// TODO optimized version with single query if possible
80+
// split into multiple queries depending or maxArgs for query
81+
// InsertStructs(table string, rowStructs any, ignoreColumns ...ColumnFilter) error
82+
7983
// InsertUniqueStruct inserts a new row into table using the connection's
8084
// StructFieldMapper to map struct fields to column names.
8185
// Optional ColumnFilter can be passed to ignore mapped columns.

0 commit comments

Comments
 (0)