简体   繁体   English

如何使用ruby Sequel连接到SAP HANA

[英]How to connect to SAP HANA using ruby Sequel

Hi any ideas on how to connect to sap hana db using sequel gem? 嗨,关于如何使用续集gem连接到SAP HANA数据库的任何想法? Can I use odbc? 我可以使用odbc吗? I used sequel for my mysql, postgres connections. 我为mysql和postgres连接使用了续集。 I wonder if I can use it for sap hana 我想知道我是否可以将其用于树汁

If you're using Rails you could use https://github.com/SAP/activerecord-hana-adapter together with the ODBC driver for HANA. 如果您使用的是Rails,则可以将https://github.com/SAP/activerecord-hana-adapter与用于HANA的ODBC驱动程序一起使用。

Alternatively if you're using jRuby you could use the Java SDK https://prograils.com/posts/getting-your-rails-app-running-on-the-sap-hana-cloud-platform . 另外,如果您使用的是jRuby,则可以使用Java SDK https://prograils.com/posts/getting-your-rails-app-running-on-the-sap-hana-cloud-platform

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM