Skip to content

Move to use https://pkg.go.dev/database/sql#OpenDB to delay database connection in golang #7957

Open
@jrouzierinverse

Description

@jrouzierinverse

Is your feature request related to a problem?

Move to use https://pkg.go.dev/database/sql#OpenDB to delay database connection in golang

Describe the solution you'd like

To avoid go service from not starting when the database is not connected.
https://pkg.go.dev/database/sql#OpenDB which delays connecting to database until first use.
This will allow will golang services to gracfully fail in those cases that the database has not started.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions