简体   繁体   English

如何将PostgreSQl数据库移植到Google App引擎

[英]How to port a PostgreSQl database to Google App engine

i am currently doing a project as one of my university projects and it uses Google maps and right now i am using a postgresql database which is on my localhost but i want to host it some where else i couldn't find any free hosting for postgres and i don't know whether i can use Google App engine or Fusion tables to do it. 我目前正在做一个项目,这是我的大学项目之一,它使用Google地图,现在我正在使用PostgreSQL数据库,该数据库位于我的本地主机上,但我想将其托管在其他地方,而我找不到免费的Postgres托管而且我不知道我是否可以使用Google App引擎或Fusion表来执行此操作。 i am using postgres and php to manipulate data and generate KML files. 我正在使用postgres和php处理数据并生成KML文件。 Google Maps V3 javascript API as the front end any suggestions ? 以Google Maps V3 javascript API作为前端有什么建议?

Thanks !! 谢谢 !!

PHP is one of the most requested features, but it is not yet supported in GAE, so your PHP code is useless. PHP是最需要的功能之一,但是GAE尚不支持PHP,因此您的PHP代码无用。 In the future, hosted SQL databases seem to be part of Google plans to provide "Enterprise features" in GAE, stay tuned because that could simplify what you need to do. 将来,托管SQL数据库似乎已成为Google计划在GAE中提供“企业功能”的一部分,敬请期待,因为这可以简化您的工作。

Currently, in case that: 目前,如果发生以下情况:

  1. your site is implemented as a Java EE or Python web appliaction 您的网站以Java EE或Python网络应用程序的形式实现
  2. you are already using JPA/JDO (only in the Java EE case) 您已经在使用JPA / JDO(仅在Java EE情况下)
  3. you are not doing JOIN statements (not supported in GAE) 您没有执行JOIN语句(GAE不支持)

Or even if your service/dao layers are already well isolated, it would be possible to host your "denormalized" database (it would not be a postgres service) and your frontend in GAE without too much effort. 或者,即使您的服务/ Dao层已经很好地隔离,也可以不花太多精力在GAE上托管您的“非规范化”数据库(这不是Postgres服务)和您的前端。

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

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