On 6/05/11 5:22 AM, Israel Ben Guilherme Fonseca wrote:
Hello guys,
I have a conceptual question about DataObjects. After some reading i
figured that the DBI is somewhat old and not recommended anymore, and
now the standard database acess interface is this guy called DataObjects.
From the github, i can see that the DataObjects project is inside de
DataMapper project, so was it born a part of the framework?
I believe so
I'm trying to know what's the standard way of database access on ruby,
but its really hard to figure it. :P
DataObjects is a pretty great way, but probably not the most popular due
to ActiveRecord. There is usually a gem per DB (such as the 'pg' gem or
the 'mysql2' gem), but people rarely use them by themselves - most
people use an ORM such as ActiveRecord
DataMapper -> DataObjects gem
ActiveRecord -> mysql2, pg, sqlite3 gems
Java have JDBC, Python DBAPI and thats it. Now with ruby things get a
bit more complicated... yesterday i thought that was the DBI, but it's
not. So DataObjects is the one?
And where is the doc about how to use the API? I Didn't find any oficial
site, or docs in the github (maybe it's my fault, as a ruby noob
programmer).
honestly, the documentation for all the low level drivers is pretty
lame. As above, most people use a higher level ORM, even if they don't
use any of the modelling features and just execute raw SQL through it.
This is an area we would *love* some contribution if you were up for it.
Xav
--
You received this message because you are subscribed to the Google
Groups "DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/datamapper?hl=en.
--
You received this message because you are subscribed to the Google Groups
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/datamapper?hl=en.