Sha256: 58e038e66a611c45b8062965c7626c55e990eba035bd0d4a02be13e5dc7af1a8
Contents?: true
Size: 895 Bytes
Versions: 1
Compression:
Stored size: 895 Bytes
Contents
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. import com.google.appengine.api.datastore.* class Shout < Model property 'title', String property 'body', Text end You can set instances by updating their attrs individually, shout = Shout.new shout.title = 'foo' shout.body = 'bar' shout.save or by using the update method and passing a hash shout = Shout.new.update title: 'foo', body: 'bar' shout.save Development ------------ You can build the jar by running: rake jar
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mirah_model-0.0.1-java | README.md |