Skip to content

Commit

Permalink
🔤 Remove tracing from readme
Browse files Browse the repository at this point in the history
  • Loading branch information
josemarluedke committed Jun 26, 2019
1 parent 23099a8 commit 97c44b4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 21 deletions.
17 changes: 0 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,6 @@ go get github.com/neighborly/go-pghelpers

## Usage

### PostgresTracingConfig

`PostgresTracingConfig` holds configuration information for enabling tracing on database calls.

```go
var tracingConfig = pghelpers.PostgresTracingConfig{
Enabled: true,
CreateRowsNextSpan: true,
CreateRowsCloseSpan: true,
CreateRowsAffectedSpan: true,
CreateLastInsertedIDSpan: true,
AddQueryAttribute: true,
AddQueryParamsAttributes: true,
}
```

### PostgresConfig

`PostgresConfig` holds the information for postgres database connection. For example
Expand All @@ -37,7 +21,6 @@ var postgresConfig = pghelpers.PostgresConfig{
Username: "postgres",
Password: "",
Database: "postgres",
Tracing: tracingConfig,
}
```

Expand Down
3 changes: 2 additions & 1 deletion tests/integration/connect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ var _ = Describe("Connection Test", func() {
Username: "postgres",
Password: "",
Database: "postgres",
SSLEnabled: false,}
SSLEnabled: false,
}
)

It("should connect to a database", func() {
Expand Down
5 changes: 2 additions & 3 deletions tests/unit/generate_address_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@ var (
Username: myTestString,
Password: myTestString,
Database: myTestString,
SSLEnabled: false,}
SSLEnabled: false,
}
)

var _ = Describe("Generate Address", func() {
It("Can generate a postgres address", func() {
result := testConfig.GenerateAddress()
Expect(result).To(Equal("host=test port=1 dbname=test user=test password=test sslmode=disable"))

})

})

0 comments on commit 97c44b4

Please sign in to comment.