【问题标题】:Running sql against external Redshift database from Rails从 Rails 对外部 Redshift 数据库运行 sql
【发布时间】:2015-02-26 20:06:02
【问题描述】:

有没有一种从 Rails 对任意 Redshift 数据库执行 SQL 的好方法?

我发现的各种适配器 gem 似乎都没有维护:

https://github.com/remind101/sequel-redshift

https://github.com/aamine/activerecord4-redshift-adapter

https://github.com/fiksu/activerecord-redshift-adapter

我只想使用任意主机/用户名/密码连接到 Redshift 数据库,然后对其运行一些 SQL。

【问题讨论】:

    标签: ruby-on-rails rails-activerecord amazon-redshift


    【解决方案1】:

    Amazon Redshift 将自己呈现为 PostgreSQL。因此,任何可以与 PostreSQL 连接的 JDBC/ODBC 驱动程序都可以与 Redshift 一起使用。

    还发布了特定于 Redshift 的其他驱动程序,请参阅:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多