From 97c44b4d3abb9c77476194290590508c05216b1e Mon Sep 17 00:00:00 2001 From: Josemar Luedke Date: Wed, 26 Jun 2019 13:43:17 -0700 Subject: [PATCH] :abc: Remove tracing from readme --- README.md | 17 ----------------- tests/integration/connect_test.go | 3 ++- tests/unit/generate_address_test.go | 5 ++--- 3 files changed, 4 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 7382ee2..bf45834 100644 --- a/README.md +++ b/README.md @@ -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 @@ -37,7 +21,6 @@ var postgresConfig = pghelpers.PostgresConfig{ Username: "postgres", Password: "", Database: "postgres", - Tracing: tracingConfig, } ``` diff --git a/tests/integration/connect_test.go b/tests/integration/connect_test.go index a50a719..44ff3c4 100644 --- a/tests/integration/connect_test.go +++ b/tests/integration/connect_test.go @@ -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() { diff --git a/tests/unit/generate_address_test.go b/tests/unit/generate_address_test.go index d9e9313..2d25cc3 100644 --- a/tests/unit/generate_address_test.go +++ b/tests/unit/generate_address_test.go @@ -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")) - }) - })