Connect to Amazon Redshift databases

agolangf · · 688 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Hello Redditors / Gophers, I have been looking to interact with Redshift databases with Golang but haven&#39;t find many informations aside that there&#39;s an AWS library. I&#39;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&#39;ve started using &#34;lib/pq&#34;, looks much easier as I&#39;m familiar with &#34;database/sql&#34;.</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

688 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传