<p>Hello Redditors / Gophers,
I have been looking to interact with Redshift databases with Golang but haven't find many informations aside that there's an AWS library. I'm having troubles making it work.<br/>
Has anyone of you succesfully connected to a Amazon redshift database using this library (<a href="https://godoc.org/github.com/aws/aws-sdk-go/service/redshift" rel="nofollow">https://godoc.org/github.com/aws/aws-sdk-go/service/redshift</a>) or another one ?
Would it be possible to get a code example please (on how to connect, maybe table creation, basic crud operations) ?</p>
<p>Thanks!</p>
<p>EDIT: Thanks again for your answers! I've started using "lib/pq", looks much easier as I'm familiar with "database/sql".</p>
<hr/>**评论:**<br/><br/>callcifer: <pre><p>Redshift is -mostly- protocol compatible with PostgreSQL, so any pg client should work fine.</p></pre>_gl0w: <pre><p>I have worked with Redshift extensively in Go using the <a href="https://github.com/lib/pq" rel="nofollow">lib/pq</a> Postgres package and never had any issues with it. </p></pre>smantziaris: <pre><p>i agree with lib/pq</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传