Skip to content

Commit

Permalink
Add DB.BuildSelectStatement()
Browse files Browse the repository at this point in the history
  • Loading branch information
jrauh01 committed Nov 28, 2024
1 parent f65efee commit 4b5de44
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions database/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,10 @@ func (db *DB) BuildInsertStatement(stmt InsertStatement) string {
return db.queryBuilder.InsertStatement(stmt)
}

func (db *DB) BuildSelectStatement(stmt SelectStatement) string {
return db.queryBuilder.SelectStatement(stmt)
}

// BuildDeleteStmt returns a DELETE statement for the given struct.
func (db *DB) BuildDeleteStmt(from interface{}) string {
return fmt.Sprintf(
Expand Down

0 comments on commit 4b5de44

Please sign in to comment.