简体   繁体   English

在Google App Engine中配置数据库

[英]Configure Database in Google App Engine

I've read and understand google APi for CRUD operation in data. 我已阅读并了解Google APi在数据中的CRUD操作。 But where is the data? 但是数据在哪里? Because normally to configure the persistance layer, we need to specify where the data is in the XML file. 因为通常要配置持久层,所以我们需要指定数据在XML文件中的位置。 For ex: name of the database, login and password,... But how to do that with GWT? 例如:数据库名称,登录名和密码,...但是如何使用GWT做到这一点? And how to physically create a real database in the google app engin? 以及如何在Google App引擎中物理创建真实的数据库? Thanks 谢谢

I strongly recommend reading this help page from google: http://code.google.com/appengine/docs/java/gettingstarted/usingdatastore.html 我强烈建议您从Google阅读此帮助页面: http : //code.google.com/appengine/docs/java/gettingstarted/usingdatastore.html

But essentially you create your entity and persist and they'll create the tables for you. 但实际上,您创建了实体并坚持下去,他们将为您创建表。 its pretty nifty give it a shot. 它很漂亮,给它一个机会。

Google documentation is a reference for all of us. Google文档是我们所有人的参考。 But is it a good start to grasp basic concepts? 但是,掌握基本概念是否是一个好的开始? Not so much (especially when its examples use JDO or JPA)... 没有那么多(尤其是当其示例使用JDO或JPA时)...

The following links should definitely help: 以下链接肯定会有所帮助:

Fundamental Concepts of the Datastore (I do not endorse Objectify here - just this introductory page; but do give consideration to APIs such as Objectify and Twig-Persist after you get comfortable with basic concepts). 数据存储区的基本概念 (我在这里不认可Objectify-只是此介绍性页面;但是在熟悉基本概念之后,一定要考虑Objectify和Twig-Persist等API)。

Life of a Datastore Write 数据存储写入的寿命

Transaction Isolation in App Engine App Engine中的交易隔离

and the rest of the Mastering the datastore series in your spare time ;-). 以及在您的业余时间掌握数据存储系列的其余部分;-)。

Introduction to low-level API 低级API简介

Some critique: Google App Engine's Datastore Falters Under Demand 一些批评: Google App Engine的数据存储需求下降

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

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