speee/go-athena development
We released speee/go-athena, and we would like to introduce it here.
What is go-athena
go-athena is a Golang database/sql package driver for AWS Athena.
You can use it as follows:
import (
"database/sql"
_ "github.com/speee/go-athena"
)
func main() {
db, _ := sql.Open("athena", "db=default&output_location=s3://results")
rows, _ := db.Query("SELECT url, code from cloudfront")
for rows.Next() {
var url string
var code int
rows.Scan(&url, &code)
}
}
This library was originally maintained here, but unfortunately, it looks like it has not been maintained actively, then we started maintaining it instead.
We added new features, including importing some of the issues that were originally up.
I think the biggest difference compared to the original repository is Result Mode. Please read it!