Sep 11, 2009

OpenBD cfcs the Datastore and an Enterprise Manager on Google App Engine

The dataStore is nice it works well for storing cfc's but what do you do if you need to visually inspect the data without writing code. Ie Whats the "Enterprise manager" for the datastore?

Well it's actually built into the admin console in you google app engine account. Before I took some time to explore my admin console I was saving data and it was effectively lost to me ( test data ) but now I am able to review/edit/delete the data.

You can also run GQL:

GQL is a SQL-like query language suitable for querying the App Engine datastore. For a complete discussion of the GQL syntax and features, see the GQL Reference.


Here is the OpenBD DataStore documentation.

Interestingly the SQL is slightly different between the admin console and the cfml code:



Here is how to Setup Open BD on GAE and here is the sample app on GAE

Admin Console:



Select the "Collection/Table"



GQL:



Edit:

7 comments:

  1. Hi Paul,

    Great post once again! To clarify one point:

    GQL was created by Google for use with the Python version of GAE. OpenBD implements the subset of JDOQL that's supported by the Java version of GAE:

    http://code.google.com/appengine/docs/java/datastore/queriesandindexes.html

    I haven't looked at the CF9 ORM implementation yet, but assume that because it's based on Hibernate it also uses some form of JDOQL.

    ReplyDelete
  2. That explains the slight syntax difference then. Also I assume the GaeFileObject is something to do with the Virtual File System?

    ReplyDelete
  3. Yes, the "GaeFileObject" kind is used by GaeVFS, so you can use it to examine the GaeVFS file system.

    ReplyDelete
  4. Good stuff again Paul!
    There is quite a bit of cool stuff in that admin console - I noticed the versioning the other day too.

    T

    ReplyDelete
  5. Holy light-saber wielding awesomness batman, Luke Skywalker is living in Melbourne Australia? Somebody get that dude's autograph quick!

    ReplyDelete
  6. OMG! I never knew ANY of this stuff. Thanks for blogging about it.

    ReplyDelete
  7. You may also find the free App Engine Console tool to be useful. It is a traditional interactive Python prompt in a web interface which you can run from the SDK or production App Engine site. You can experiment with Python and GQL code this way. I'm biased because I wrote the tool; however I use it regularly for troubleshooting a site with 200k users.

    http://con.appspot.com/

    ReplyDelete