Gorm provides the _______ function to execute raw SQL queries directly.
- Exec
- Query
- Raw
- Scan
Gorm provides the Exec function to execute raw SQL queries directly. This function is commonly used when you need to execute complex SQL queries or perform database operations that are not supported by Gorm's high-level abstractions. With Exec, you can directly execute SQL statements and handle the results accordingly.
Loading...
Related Quiz
- Which testing framework provides features like test parallelization and subtests for organizing tests in Go?
- What is the difference between a constant and a variable in Go?
- What is the primary difference between an array and a slice in Go?
- The '_______' keyword in Go is used to defer the execution of a function until the surrounding function returns.
- How does mocking help in testing Go applications?