Hey there,
Can anybody show a simple example how to use multiple databases within
one connection?
Im just porting existing application and trying to implement it
without any changes to db.
So, basically, i have 2 databases: db1, db2. There is 1 table in each
database: db1.t1, db2.t2
And i have 2 classes (example):
class Obj1
property :id, Serial
property :value, String
storage_names[:default] = 't1'
end
It`s easy to set name of table, or name of fields. But, i cant find
the information how to set the database name.
So, what is the easiest way to set the name of database (on the same
server) for the table ?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---