You cannot post messages because only members can post, and you are not currently a member.
|
DataMapper 1.2.0 Released
|
| |
Hi All,
I'm happy to announce that after 2 RCs I pushed the final version of
DataMapper 1.2.0. Check out the official announcement on
[link]
Thank you so much to all the contributors for helping with this
release!
Cheers!
|
|
valid? raises error: wrong number of arguments (1 for 0)
|
| |
I have a model named Fact. A fact belongs to many other models and holds some attributes. Think of it as a data-warehouse fact table. class Fact include DataMapper::Resource belongs_to :patientposition, :key => true belongs_to :controlpointcount, :key => true belongs_to :radiationtype, :key => true... more »
|
|
dynamic tables
|
| |
Hello all,
I've dabbled in datamapper in the past, but don't have much experience
in it. I'm trying to evaluate its usefulness for solving a problem I
have.
I have a number of tables (probably ~50) that I need to get data
from. Each table has 5 columns in common. Beyond those 5 columns
each table has various numbers of various other columns; none of them... more »
|
|
What is the proper way to execute a SQL statement via DataMapper?
|
| |
Hello list,
I’m wondering what's the proper way to execute a SQL statement via DataMapper.
Assume I these models are created at runtime:
class Bar
include DataMapper::Resource
property :id, :Serial
end
class Foo
include DataMapper::Resource
property :a, :Serial
property :b, :Serial... more »
|
|
Listing all models in a repository (reflection)
|
| |
I'm trying to whip up some debug pages based around all the models in my repository and I'm wondering if I can do this dynamically. Is there a way to list all the models in a given repository? I'm not looking to list all the *objects* in the repo (not yet at least), but all the different kinds of models and their properties. I poked around... more »
|
|
Mutex already locked error in pooling.rb (jruby/torquebox)
|
| |
Hi, I'm getting the following error at "random" times in an app I have deployed using jruby (1.6.7) on torquebox (2.0.1), using latest datamapper gems: [link] It's not something I can reproduce at will, seems to happen every few days under low load. Anyone has an idea what's going on here? Bug in the pooling code?... more »
|
|
DataObjects::Postgres::Result
|
| |
I executed a pure SQL query against Postgres using DataMapper and got an object of class DataObjects::Postgres::Result. However, I can't find any kind of documentation indicating how to manipulate this instance to get the data. Can you point me to that documentation? Thanks.
|
|
Attributes on an Association
|
| |
I need to store people, albums, photos, and the order that photos
appear in an album, so I decided to try adding a "position" attribute
to the association between Photo and Album. Consider the following
models:
class Person
include DataMapper::Resource
...
end
class Album
include DataMapper::Resource... more »
|
|
Query Order
|
| |
Guys,
how can I set the query (all, first, etc) order to something like
"ifnull(column1, column2) asc", I just can "order =>
[:column1.asc, :column2.asc]", but it does't work for null columns.
Thanks
|
|
Many to one association question
|
| |
Howdy! I have a very simple Many to One relationship class InterviewGroup include DataMapper::Resource property :id, Serial has n, :interviews end class Interview include DataMapper::Resource property :id, Serial belongs_to :interview_group belongs_to :person end The problem is when I destroy an Interview, it deletes the parent... more »
|
|
decimal field using sqlite
|
| |
hi, I am having some problem here with field Decimal
My Class:
require 'dm-core'
class Registry
include DataMapper::Resource
property :num, Decimal, :key => true, :precision => 20, :scale => 0
end
require 'dm-migrations'
DataMapper.finalize
DataMapper.setup(:default, 'sqlite::memory:')... more »
|
|
|