-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve the document of the xraysql package
- Loading branch information
1 parent
91434d5
commit ec1e9fc
Showing
2 changed files
with
18 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Package xraysql provides AWS X-Ray tracing for SQL. | ||
// | ||
// xraysql is drop-in replacement for [database/sql]. | ||
// Use [xraysql.Open] instead of [database/sql.Open]. | ||
// | ||
// db, err := xraysql.Open("postgres", "postgres://user:password@host:port/db") | ||
// if err != nil { | ||
// panic(err) | ||
// } | ||
// | ||
// row, err := db.QueryRowContext(ctx, "SELECT 1") | ||
package xraysql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters