简体   繁体   English

如何在 Haskell 中连接到 Oracle DB

[英]How to connect to Oracle DB in Haskell

Can anyone share some tips on how to connect to Oracle DB using Haskell?任何人都可以分享一些有关如何使用 Haskell 连接到 Oracle DB 的提示吗? I found it quite difficult.我发现这很困难。 What I've done so far:到目前为止我所做的:

(1) Checked out Persistent's documentation, on this page http://www.yesodweb.com/book/persistent it mentions all the mainstream one but Oracle. (1) 查看 Persistent 的文档,在这个页面http://www.yesodweb.com/book/persistent它提到了除 Oracle 之外的所有主流文档。

(2) Got this book "Developing Web Apps with Haskell and Yesod", no mention of Oracle (2) 拿到这本书“Developing Web Apps with Haskell and Yesod”,没有提到Oracle

(3) Following http://book.realworldhaskell.org/read/using-databases.html I checked out HDBC odbc, found this page https://hackage.haskell.org/package/HDBC-odbc the instruction in the bottom is hard to follow because some of the required binaries can't be found on homebrew on Mac. (3) 在http://book.realworldhaskell.org/read/using-databases.html之后我查看了 HDBC odbc,发现这个页面https://hackage.haskell.org/package/HDBC-odbc底部的指令很难遵循,因为在 Mac 上的自制软件中找不到某些必需的二进制文件。

Just curious, how other engineers are connecting to Oracle using Haskell?只是好奇,其他工程师如何使用 Haskell 连接到 Oracle?

I've asked this question on #haskell-beginners #haskell-web IRC channels, no feedback so far.我在#haskell-beginners #haskell-web IRC 频道上问过这个问题,到目前为止没有反馈。

Thanks!谢谢!

Yes, persistent does support Oracle.是的, persistent确实支持 Oracle。 https://github.com/gbwey/persistent-odbc https://github.com/gbwey/persistent-odbc

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

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