Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A library written in Mirah for google appengine's datastore

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 javalib
Octocat-spinner-32 lib
Octocat-spinner-32 src
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Rakefile
Octocat-spinner-32 mirah_model.gemspec

Mirah Model

Mirah Model is a Mirah ORM library for using AppEngine's datastore. It is inspired by ActiveRecord and DataMapper--particularly DataMapper. It's used by Dubious, a Rails-ish web framework.

Code Examples

If you are familar with DataMapper's property methods this should look pretty familiar. You can define properties using #property, passing the property name and a type.


class Shout < Model
  property 'title', String
  property 'body',  Text

You can set instances by updating their attrs individually,

shout =
shout.title = 'foo'
shout.body  = 'bar'

or by using the update method and passing a hash

shout = title: 'foo', body: 'bar'


Requires Mirah 0.0.6(unreleased) to compile

You can build the jar by running:

rake jar

Something went wrong with that request. Please try again.