Skip to content

Commit d538557

Browse files
committed
InsertDSLs are buildable
1 parent 91d2852 commit d538557

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/main/kotlin/org/mybatis/dynamic/sql/util/kotlin/KotlinUpdateBuilder.kt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,17 @@
1616
package org.mybatis.dynamic.sql.util.kotlin
1717

1818
import org.mybatis.dynamic.sql.SqlColumn
19-
import org.mybatis.dynamic.sql.insert.GeneralInsertDSL
20-
import org.mybatis.dynamic.sql.insert.InsertDSL
21-
import org.mybatis.dynamic.sql.insert.MultiRowInsertDSL
19+
import org.mybatis.dynamic.sql.insert.*
2220
import org.mybatis.dynamic.sql.update.UpdateDSL
2321
import org.mybatis.dynamic.sql.update.UpdateModel
2422
import org.mybatis.dynamic.sql.util.Buildable
2523

2624
// insert completers are here because sonar doesn't see them as covered if they are in a file by themselves
27-
typealias GeneralInsertCompleter = GeneralInsertDSL.() -> GeneralInsertDSL
25+
typealias GeneralInsertCompleter = GeneralInsertDSL.() -> Buildable<GeneralInsertModel>
2826

29-
typealias InsertCompleter<T> = InsertDSL<T>.() -> InsertDSL<T>
27+
typealias InsertCompleter<T> = InsertDSL<T>.() -> Buildable<InsertModel<T>>
3028

31-
typealias MultiRowInsertCompleter<T> = MultiRowInsertDSL<T>.() -> MultiRowInsertDSL<T>
29+
typealias MultiRowInsertCompleter<T> = MultiRowInsertDSL<T>.() -> Buildable<MultiRowInsertModel<T>>
3230

3331
typealias UpdateCompleter = KotlinUpdateBuilder.() -> Buildable<UpdateModel>
3432

0 commit comments

Comments
 (0)