Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
go.sum linguist-generated=true
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.PHONY: test
test:
go test ./...

.PHONY: fmt
fmt:
go fmt ./...

.PHONY: vet
vet:
go vet ./...
2 changes: 1 addition & 1 deletion db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func setup(t *testing.T) *athenaHarness {

func (a *athenaHarness) setupTable() {
// tables cannot start with numbers or contain dashes
id, _ := uuid.NewV4()
id := uuid.NewV4()
a.table = "t_" + strings.Replace(id.String(), "-", "_", -1)
a.mustExec(`CREATE EXTERNAL TABLE %[1]s (
nullValue string,
Expand Down
16 changes: 16 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module github.com/segmentio/go-athena

go 1.21

require (
github.com/aws/aws-sdk-go v1.55.5
github.com/satori/go.uuid v1.2.0
github.com/stretchr/testify v1.9.0
)

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
22 changes: 22 additions & 0 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.