MS SQL Ruby Gem [英] MS SQL Ruby Gem

查看:86
本文介绍了MS SQL Ruby Gem的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要编写一个ruby脚本来连接到MS SQL Server数据库,但是我发现的所有线程都指向了将ActiveRecord绑定到MS SQL中的宝石。有没有什么宝石可以让我做到这一点类似于pg(对于postgres https://github.com/ged/ruby-pg )?我只需要做一些非常简单的远程查询,非常感谢!

I need to write a ruby script to connect to an MS SQL Server database, but all of the threads I've found point to gems to tie ActiveRecord into MS SQL. Are there any gems that will let me do this similar to pg (for postgres https://github.com/ged/ruby-pg)? I just need to do some really simple remote queries, thanks so much!

推荐答案

最好的方法是使用tiny_tds宝石 https://github.com/rails-sqlserver/tiny_tds

The best way to do it is using the tiny_tds gem https://github.com/rails-sqlserver/tiny_tds

这篇关于MS SQL Ruby Gem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆