Very cool. That's just what I thought it was. : )

-jeff

On 4/19/06, zdennis <[EMAIL PROTECTED]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Jeff Lindsay wrote:
> > Your IO Mode plugin sounds interesting too... care to share it? That
> > and this bulk AR/virtual table both sound useful to me. Release them
> > as plugins? : )
>
> Here is a link to 0.0.1 of the ActiveRecord IO Mode plugin:
>   http://www.mktec.com/oss/rails-plugins/active_record_io_mode.0.0.1.tgz
>
> It is more documentation then code, and only 201 lines. It works
> successfully with the MysqlAdapter. I believe it should work for
> Postgres, but I'm not a Postgres user so any feedback would be great.
> Any Oracle, MSSQL, SQLite, etc... users please let me know if this works
> or not for you.
>
> Once installed in the vendor/plugins directory you can test this by
> running "ruby script/console" from the RAILS_ROOT, and doing something
> similar to:
>
>   # to redirect sql to an array
>   >> arr = []
>   >> ActiveRecord::Base.send_sql_to arr
>   => true
>
>   # let's test it
>   >> Test.find :all, :limit => 1
>   => []
>   >> arr
>   => ["SELECT * FROM tests LIMIT 1;\n"]
>
>   # redirect sql back to our db connection
>   >> ActiveRecord::Base.send_sql_to :db
>   => true
>   >> Test.find :all, :limit => 1
>   =>  [#<Test:0x306daef0 @attributes={"name"=>"test1", "id"=>"1"}>]
>
> I am working on packaging the other plugin sometime in the next day or two.
>
> Any feedback or suggestions are graciously accepted!
>
> Zach
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
> iD8DBQFERvrhMyx0fW1d8G0RAsOeAJ9abtP2VPk4rzpLu1uC3w4kiwKCgACcD9do
> 9dI8dPKOvzrKOjsQ97CpQgI=
> =OHQS
> -----END PGP SIGNATURE-----
> _______________________________________________
> Rails-core mailing list
> Rails-core@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-core
>


--
Jeff Lindsay
http://blogrium.com/
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to