您可以连接到 SQL 数据库并使用该数据库中的数据来更新 SQLite3 中的表吗?

发布于 2024-09-19 09:33:41 字数 130 浏览 2 评论 0原文

我是 Ruby-on-rails 的新手,需要能够构建一个 Rake 文件来连接到公司数据源,然后使用该数据更新 SQLite3 中的表。

这可能吗?我应该使用 rake 文件吗?

我最终想使用计时器每天运行更新。

I am new to Ruby-on-rails and need to be able to build a Rake file that will connect to a corporate data source and then use the data to update a table in SQLite3.

Is that possible? Should I be using a rake file?

I would eventually want to use a timer to run an update on a daily basis.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

雨落□心尘 2024-09-26 09:33:41

这确实是可能的(只要您有权建立两个连接)。这看起来不像是 Ruby on Rails 项目的任务;一个简单的 ruby​​ 脚本就可以完成这项工作,您可以使用 cron 或任何其他调度程序工具(取决于您使用的平台)来安排它。

it is possible indeed (as long as you have the permissions to establish both connections). It does not look like a task for a ruby on rails project; a simple ruby script will do the job, and you can schedule it using cron or any other scheduler tool (depending on the platform you use).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文