Skip to content

Commit

Permalink
Fix vitessdriver.Open example
Browse files Browse the repository at this point in the history
Signed-off-by: Toliver Jue <toliver@planetscale.com>
  • Loading branch information
Toliver Jue committed Dec 12, 2019
1 parent 253b9ea commit 2fe582f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions go/vt/vitessdriver/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,12 @@ Example
Using this SQL driver is as simple as:
import (
"time"
"vitess.io/vitess/go/vt/vitessdriver"
)
func main() {
// Connect to vtgate.
db, err := vitessdriver.Open("localhost:15991", "keyspace", "master", 30*time.Second)
db, err := vitessdriver.Open("localhost:15991", "@master")
// Use "db" via the Golang sql interface.
}
Expand Down

0 comments on commit 2fe582f

Please sign in to comment.