From ff0da41943df22265ae425c587b4688feac6761f Mon Sep 17 00:00:00 2001 From: Daniel Bedrood Date: Fri, 14 Oct 2022 13:46:45 +0200 Subject: [PATCH] chore: Update readme --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c91b3f93..8f4c055e 100644 --- a/README.md +++ b/README.md @@ -744,7 +744,7 @@ func main() { ### ORM Integration `go-sdk` comes with an integration with the popular -[gorm](https://github.com/jinzhu/gorm) as an object-relational mapper (ORM). +[gorm](https://gorm.io/gorm) as an object-relational mapper (ORM). Using the configuration details, namely the [data source name](https://en.wikipedia.org/wiki/Data_source_name) (DSN) as their product, gorm is able to open a connection and give the `go-sdk` users a preconfigured @@ -773,7 +773,7 @@ words the `NewConnection` function, so they remain opaque for the user. #### Usage of ORM Invoking the constructor for a database connection, `go-sdk` returns a -[Gorm-powered](https://github.com/jinzhu/gorm) database connection. It can be +[Gorm-powered](https://gorm.io/gorm) database connection. It can be used right away to query the database: ```go @@ -783,7 +783,7 @@ import ( "fmt" sdkdb "github.com/scribd/go-sdk/pkg/database" - "github.com/jinzhu/gorm" + "gorm.io/gorm" ) type User struct { @@ -1040,7 +1040,7 @@ if err != nil { `DatabaseLogging` for both HTTP and gRPC servers. The `Database` middleware which instruments the -[Gorm-powered](https://github.com/jinzhu/gorm) database connection. It utilizes +[Gorm-powered](https://gorm.io/gorm) database connection. It utilizes Gorm-specific callbacks that report spans and traces to Datadog. The instrumented Gorm database connection is injected in the request `Context` and it is always scoped within the request.