In Go, which package is used to interact with SQL databases?
- database/sql
- golang-sql
- gosql
- sql
In Go, the package used to interact with SQL databases is database/sql. It provides a powerful and flexible API for executing SQL queries, working with result sets, and managing database connections, making it essential for database access.
Loading...
Related Quiz
- When mocking an interface, it's crucial to ensure that the mock object _____ the real object's behavior accurately.
- In Go, which data type is used to store complex numbers?
- What does a pointer store in Go?
- In a type switch statement, each case specifies a type followed by the keyword _______.
- In database migration, what does the term 'down' typically signify?