Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
thatInfrastructureGuy authored Jul 18, 2020
1 parent d760db3 commit 696bc26
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ A library designed to convert sql.Rows result from a query into a **CSV.GZIP** f

### Installation
```go
go get github.com/thatInfrastructureGuy/sqltocsvgzip@v0.0.5
go get github.com/thatInfrastructureGuy/sqltocsvgzip@v0.0.6
```

_Note: Please do not use master branch. Master branch may contain breaking changes. Use tags instead._
Expand Down Expand Up @@ -61,7 +61,7 @@ if err != nil {
```go
rows, _ := db.Query("SELECT * FROM users WHERE something=72")

config := sqltocsvgzip.DefaultConfig(rows)
config := sqltocsvgzip.UploadConfig(rows)
config.S3Bucket = "mybucket"
config.S3Path = "/myfolder/file.csv.gzip"
config.S3Region = "us-west-1"
Expand Down Expand Up @@ -97,7 +97,7 @@ If you need more flexibility you can get an instance of a `Converter` and fiddle
```go
rows, _ := db.Query("SELECT * FROM users WHERE something=72")

csvConverter := sqltocsvgzip.New(rows)
csvConverter := sqltocsvgzip.WriteConfig(rows)

csvConverter.TimeFormat = time.RFC822
csvConverter.Headers = append(rows.Columns(), "extra_column_one", "extra_column_two")
Expand Down

0 comments on commit 696bc26

Please sign in to comment.