Skip to content

Commit 18d51f3

Browse files
committed
add godoc comment to NewDriver
1 parent 66c80a7 commit 18d51f3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

driver.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ type Driver struct {
2323
cfg *Config
2424
}
2525

26+
// NewDriver allows you to register your own driver with `sql.Register`.
27+
// It's useful for more complex use cases. Read more in PR #3.
28+
// https://github.com/segmentio/go-athena/pull/3
29+
//
30+
// Generally, sql.Open() or athena.Open() should suffice.
2631
func NewDriver(cfg *Config) *Driver {
2732
return &Driver{cfg}
2833
}

0 commit comments

Comments
 (0)