Configure connection timeout

This shows that Go's standard `database/sql` package does not have a built-in option to configure a connection timeout. Users should be aware of this limitation when managing database connections.

Code sample

Go

To authenticate to AlloyDB, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.

// The database/sql package currently doesn't offer any functionality to
// configure connection timeout.

What's next

To search and filter code samples for other Google Cloud products, see the Google Cloud sample browser.