Skip to content

Comments

Support for multiple databases#10

Open
gmw wants to merge 1 commit intotheAlmanac:masterfrom
gmw:master
Open

Support for multiple databases#10
gmw wants to merge 1 commit intotheAlmanac:masterfrom
gmw:master

Conversation

@gmw
Copy link

@gmw gmw commented Oct 11, 2011

Hi,

I've made some tiny patches to allow for batch inserts against multiple databases. If you're interested, pull them in to the official source!

The database connection is now grabbed from self (in the next_insert_id
method) and from the model class in the HashMethods module. This is
needed when you have more than one database in your Rails (or anything
else that uses ActiveRecord) app.

…ction

The database connection is now grabbed from self (in the next_insert_id
method) and from the model class in the HashMethods module. This is
needed when you have more than one database in your Rails (or anything
else that uses ActiveRecord) app.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant