简体   繁体   English

使Android成为Rails上的数据库查询Ruby

[英]Making Android an Database Query Ruby on Rails

如何使我的Android应用程序将SQL查询发送到保存有关项目的数据库的Rails服务器上的ruby

You don't. 你不知道 SQL is for DB servers. SQL适用于数据库服务器。

If you have a RoR server, it is probably expecting HTTP requests, so you need first to figure out which URL is related to the information you are looking for, get that URL content, and then parse it to get what you want. 如果您有RoR服务器,它可能正在等待HTTP请求,因此您需要首先弄清楚哪个URL与您要查找的信息相关,获取该URL内容,然后解析它以获取所需的内容。

If you have access to the server configuration, you probably want to make the DB server accessible in order to connect with it directly with JDBC, but you will have to seriously think about strongly securing it in the process. 如果可以访问服务器配置,则可能要使数据库服务器可访问以便与JDBC直接连接,但是您必须认真考虑在此过程中对其进行安全保护。

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

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