Following up on Koz's suggestion to discuss how plugin developers are
monkey patching AR, I'd like to share some of things my coworkers and
I have done.

1.) Truncate. Currently implemented in ActiveWarehouse ETL for MySQL.
2.) Bulk import and export using the DB's tool (for example, bulk
import with LOAD DATA INFILE for MySQL or BCP for SQL Server).
ActiveWarehouse ETL currently implements the import functionality for
MySQL only.
3.) Views support. I've redefined tables, created a new method for
views and a new method to get the SQL query used for the view, and
added a supports_views? method. This is implemented in the Rails SQL
Views plugin.

One other thing I would like to see is for the following methods to be
moved out of AR::Base if possible and moved into the adapter layer or
into their own module so they can be reused easier:

sanitize_sql
replace_bind_variables
replace_named_bind_variables
quote_bound_value
raise_if_bind_arity_mismatch

V/r
Anthony Eden

-- 
Cell: 808 782-5046
Current Location: Melbourne, FL

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" 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/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to