DataMapper is an Object Relational Mapper written in Ruby. The goal is to create an ORM which is fast, thread-safe and feature rich. To learn a little more about ...
Link: datamapper.org
DataMapper Community Documentation Development Contribute Wiki Get Started DataMapper 1.2.0 released I'm pleased to announce that we have released DataMapper 1.2.0. This release is focused on bug fixes, performance improvements, internal refactoring and Rails 3.1 compatibility . Pleas...
key for a property. They can be static values, such as 12 or "Hello" , but DataMapper also offers the ability to use a Proc to set the default value. The property becomes whatever the Proc returns, which will be called the first time the property is used without having first set a val...
Sometimes though, you either don't need the extra safety you get from dm-validations , or you don't want any callbacks to be invoked at all. In situations like this, you can use the bang(!) versions of the respective methods. You will probably find yourself using these unsafe methods ...
DataMapper Community Documentation Development Contribute Wiki Get Started DataMapper is an Object Relational Mapper written in Ruby . The goal is to create an ORM which is fast, thread-safe and feature rich. To learn a little more about this project and why you should be interested, ...
DataMapper Community Documentation Development Contribute Wiki Get Started Using Git The DataMapper project uses the Git SCM. Committers need to use git to commit their code directly to the main repository. This page contains information on getting Git installed, getting source code w...
There are still some limitations to the operations that #auto_upgrade! can perform. We're working hard on making it smarter, but there will always be scenarios where an automatic upgrade of your schema won't be possible. For example, there's no sane strategy for automatically changing...
DataMapper allows the use of natural primary keys, composite primary keys and other complexities. Because of this, when a model is declared with a belongs_to relationship the property to hold the foreign key cannot be initialized immediately. It can only be initialized when the parent...
There are still some limitations to the operations that #auto_upgrade! can perform. We're working hard on making it smarter, but there will always be scenarios where an automatic upgrade of your schema won't be possible. For example, there's no sane strategy for automatically changing...