segmentio / go-athena Goto Github PK
View Code? Open in Web Editor NEWGolang database/sql driver for AWS Athena
License: MIT License
Golang database/sql driver for AWS Athena
License: MIT License
As you write here https://github.com/segmentio/go-athena/blob/master/conn.go#L24 Athena doesn't support prepared statements, which is true.
My question is how do I safely build queries where part of the query is user input.
The database/sql package wants us to use prepared satements and doesn't seem to offer any alternative.
I wasn't able to to find anything regarding sql santization/escaping in golang, besides "use sql.Query"
I believe prepared statements could be simulated by interpolating the parameters. go-sql-driver/mysql
does something similar here.
Would a PR for something like this be considered?
time.Time
can map to timestamp
, timestamp with time zone
, or date
. Each requires a different format.
driver.Valuer
interface.Hi,
Really appreciate the great work for this package.
I suggest you add this package into Golang SQLDrivers wiki for better and widely adoption
https://github.com/golang/go/wiki/SQLDrivers
I wonder if you could provide tagged releases for vendoring purposes? Thanks.
Based on pull request #10, it looks like DDL statements are supported. Is that correct?
Hi, I have added support for amazon STS for assuming an IAM role.
Very handy for software being developed and rolled out without need for usual credential's.
If you can give me access, I can submit the pull request.
thanks
AWS release workgroups for Athena to support tags.
https://aws.amazon.com/about-aws/whats-new/2019/02/athena_support_for_tags/
Tagging Workgroups allows you to allocate costs, get detailed billing reports across Workgroups as well as define IAM permissions on Workgroups based on these tags
There is an PR by @jkatagi #26
Can anyone help review and merge this?
Hi,
We recently tried to use your awesome project on Athena, but during testing we found some data is not returned. Upon investigating i found that whenever fetchNextPage is called, it skips the first row assuming it is a header, which is true for the first page only. The subsequent pages don't have this, so the first row gets missed. I hope you guys can take a look into this matter.
Hi,
I noticed that this library does not support Athena's array data-type,
https://docs.aws.amazon.com/athena/latest/ug/data-types.html
Is there a plan to add this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.