Skip to content

Commit c2b3877

Browse files
committed
Add DB.BuildInsertStatement()
1 parent 9cb2383 commit c2b3877

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

database/db.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,10 @@ func (db *DB) BuildColumns(subject interface{}) []string {
265265
return slices.Clone(db.columnMap.Columns(subject))
266266
}
267267

268+
func (db *DB) BuildInsertStatement(stmt InsertStatement) string {
269+
return db.queryBuilder.InsertStatement(stmt)
270+
}
271+
268272
// BuildDeleteStmt returns a DELETE statement for the given struct.
269273
func (db *DB) BuildDeleteStmt(from interface{}) string {
270274
return fmt.Sprintf(

0 commit comments

Comments
 (0)