简体   繁体   English

如何从Salesforce查询heroku数据库(例如,通过vf页面)

[英]How to query heroku database from salesforce (eg. via vf page)

can anyone help me on this? 谁可以帮我这个事? How can I achieve the following: 如何实现以下目标:

I need to set up a prototype integration with heroku from salesforce application. 我需要通过salesforce应用程序与heroku建立原型集成。 The need is to store a huge volume of data in a single heroku table and accessble from salesforce - eg: have a vf page in salesforce which queries the data in realtime 需要将大量数据存储在单个heroku表中,并且可以从salesforce进行访问-例如:在salesforce中有一个vf页面,可以实时查询数据

We're doing this. 我们正在这样做。 We use Heroku connect. 我们使用Heroku connect。 We created a salesforce custom object and bidirectionally synched it using Heroku connect. 我们创建了一个salesforce自定义对象,并使用Heroku connect对其进行了双向同步。 You can then update the data on either side (in salesforce or in Heroku:PG). 然后,您可以在任一侧(在salesforce或Heroku:PG中)更新数据。

But Heroku connect is expensive & priced on a # of synchs per month. 但是Heroku连接非常昂贵,而且每个月的同步费用也要定价。

https://www.heroku.com/connect https://www.heroku.com/connect

Firstly, heroku is not a database. 首先,heroku不是数据库。 It is a PAAS. 它是一个PAAS。

My approach would have been : 我的方法是:
- Create a heroku app(this is a link to create a node.js app) link -创建一个heroku应用程序(这是创建node.js应用程序的链接链接
- After you create the app choose one of the datastore addons -> link if you want a SQL/Column oriented Database choose heroku postgres or ClearDB Mysql -创建应用程序后,如果要使用面向SQL /列的数据库,请选择数据存储插件之一-> 链接 ,然后选择heroku postgres或ClearDB Mysql
- Secondly you actually need a webserver that exposes this database to you. -其次,您实际上需要一个Web服务器来向您公开此数据库。 I am thinking you would make this a webservice of some sort. 我在想您可以使它成为某种Web服务。 You can build that in node.js. 您可以在node.js中构建它。 Here is something that will get you started or give you an idea - link 这可以帮助您起步或给您一个想法- 链接

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

相关问题 如何从 Postgres Heroku 上的先前备份中恢复特定数据? (例如,意外删除的行) - How to restore specific data from previous backup on Postgres Heroku? (Eg. Accidentally deleted rows) 如何为Heroku工作者指定Ruby版本(例如sidekiq)? - How to specify the Ruby version for a Heroku worker (eg. sidekiq)? 如何从salesforce.com调用heroku Java应用程序? - How to call heroku java app from salesforce.com? Heroku Connect将Salesforce数据备份到Postgres数据库 - Heroku Connect to backup Salesforce data to Postgres database 如何将数据库从一个Heroku还原到另一个Heroku数据库 - How to restore database from one heroku to another heroku database Django Web App通过Heroku Connect与Salesforce集成 - Django Web App Integration with Salesforce via Heroku Connect 选择查询heroku数据库 - select query heroku database 通过命令行从Heroku获取当前数据库的名称 - Get the name of the current database from Heroku via command line 如何通过mysql工作台将Mysql数据库推送到heroku? - How to push my Mysql database to heroku via mysql workbench? 如何使用 Node.js 从 Salesforce 获取记录并在 Heroku 应用程序上显示它们 - How to get records from Salesforce and display them on a Heroku app using Node.js
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM