We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27eb0fb commit ea14ad9Copy full SHA for ea14ad9
1 file changed
internal/database/provider.go
@@ -12,7 +12,9 @@ import (
12
13
// Provider defines the contract for database-specific connection logic.
14
type Provider interface {
15
- // Connect establishes a database connection and returns the *sql.DB and any error.
+ // Connect establishes a database connection and returns the *sql.DB and any
16
+ // error. On success (nil error) the returned *sql.DB MUST be non-nil — Open
17
+ // applies the connection pool to it without a nil check.
18
Connect(config *config.DataSourceConfig) (*sql.DB, error)
19
// Kind returns the database kind this provider handles (postgres, mysql, or sqlite).
20
Kind() config.DBKind
0 commit comments